Profile redesign: Profile fields overflow (#38510)

This commit is contained in:
Echo 2026-04-01 16:01:22 +02:00 committed by GitHub
parent 9b6354802a
commit e8f4896b08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 1 deletions

View File

@ -210,7 +210,7 @@ export const EditFieldModal = forwardRef<
const labelStatus = checkField(newLabel);
const valueStatus = checkField(newValue);
if (labelStatus || valueStatus) {
if (labelStatus?.variant === 'error' || valueStatus?.variant === 'error') {
setFieldStatuses({
label: labelStatus ?? undefined,
value: valueStatus ?? undefined,

View File

@ -182,6 +182,11 @@
// Field component
.fieldName,
.fieldValue {
word-break: break-all;
}
.fieldName {
color: var(--color-text-secondary);
font-size: 13px;

View File

@ -28,6 +28,7 @@ export const AccountFieldModal: FC<{
as='h2'
htmlString={field.name_emojified}
onElement={handleLabelElement}
className={classes.fieldName}
/>
<EmojiHTML
as='p'

View File

@ -20,6 +20,11 @@
outline-offset: 2px;
}
.fieldName,
.fieldValue {
word-break: break-all;
}
.fieldValue {
color: var(--color-text-primary);
font-weight: 600;