[Glitch] Profile redesign: Profile fields overflow
Port e8f4896b08ca5f67911eb62f801afc976b4c2183 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
6644fcf0b6
commit
3264c285dc
@ -210,7 +210,7 @@ export const EditFieldModal = forwardRef<
|
|||||||
|
|
||||||
const labelStatus = checkField(newLabel);
|
const labelStatus = checkField(newLabel);
|
||||||
const valueStatus = checkField(newValue);
|
const valueStatus = checkField(newValue);
|
||||||
if (labelStatus || valueStatus) {
|
if (labelStatus?.variant === 'error' || valueStatus?.variant === 'error') {
|
||||||
setFieldStatuses({
|
setFieldStatuses({
|
||||||
label: labelStatus ?? undefined,
|
label: labelStatus ?? undefined,
|
||||||
value: valueStatus ?? undefined,
|
value: valueStatus ?? undefined,
|
||||||
|
|||||||
@ -182,6 +182,11 @@
|
|||||||
|
|
||||||
// Field component
|
// Field component
|
||||||
|
|
||||||
|
.fieldName,
|
||||||
|
.fieldValue {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
.fieldName {
|
.fieldName {
|
||||||
color: var(--color-text-secondary);
|
color: var(--color-text-secondary);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|||||||
@ -28,6 +28,7 @@ export const AccountFieldModal: FC<{
|
|||||||
as='h2'
|
as='h2'
|
||||||
htmlString={field.name_emojified}
|
htmlString={field.name_emojified}
|
||||||
onElement={handleLabelElement}
|
onElement={handleLabelElement}
|
||||||
|
className={classes.fieldName}
|
||||||
/>
|
/>
|
||||||
<EmojiHTML
|
<EmojiHTML
|
||||||
as='p'
|
as='p'
|
||||||
|
|||||||
@ -20,6 +20,11 @@
|
|||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fieldName,
|
||||||
|
.fieldValue {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
.fieldValue {
|
.fieldValue {
|
||||||
color: var(--color-text-primary);
|
color: var(--color-text-primary);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user