From 1e5cad072e5a3785551d70d5af00282a51271c42 Mon Sep 17 00:00:00 2001 From: Echo Date: Fri, 27 Feb 2026 14:54:08 +0100 Subject: [PATCH] Profile redesign: Profile fields feedback (#38005) --- .../account_timeline/components/fields.tsx | 15 +++--- .../components/redesign.module.scss | 8 +++- .../account_timeline/modals/field_modal.tsx | 46 +++++++++---------- .../account_timeline/v2/styles.module.scss | 5 ++ 4 files changed, 41 insertions(+), 33 deletions(-) diff --git a/app/javascript/mastodon/features/account_timeline/components/fields.tsx b/app/javascript/mastodon/features/account_timeline/components/fields.tsx index c2802c2c51..5bad90aaae 100644 --- a/app/javascript/mastodon/features/account_timeline/components/fields.tsx +++ b/app/javascript/mastodon/features/account_timeline/components/fields.tsx @@ -118,14 +118,14 @@ const RedesignAccountHeaderFields: FC<{ account: Account }> = ({ account }) => {
{fields.map((field, key) => ( - + ))}
); }; -const FieldRow: FC<{ +const FieldCard: FC<{ htmlHandlers: ReturnType; field: AccountField; }> = ({ htmlHandlers, field }) => { @@ -183,15 +183,14 @@ const FieldRow: FC<{ ref={wrapperRef} > {verified_at && ( - + > + + )} ); diff --git a/app/javascript/mastodon/features/account_timeline/components/redesign.module.scss b/app/javascript/mastodon/features/account_timeline/components/redesign.module.scss index d4ea2d7a7d..51a7962c76 100644 --- a/app/javascript/mastodon/features/account_timeline/components/redesign.module.scss +++ b/app/javascript/mastodon/features/account_timeline/components/redesign.module.scss @@ -278,11 +278,17 @@ svg.badgeIcon { } .fieldVerifiedIcon { + display: block; + position: absolute; width: 16px; height: 16px; - position: absolute; top: 8px; right: 8px; + + > svg { + width: 100%; + height: 100%; + } } .fieldOverflowButton { diff --git a/app/javascript/mastodon/features/account_timeline/modals/field_modal.tsx b/app/javascript/mastodon/features/account_timeline/modals/field_modal.tsx index 33e2e22891..f7251f7b41 100644 --- a/app/javascript/mastodon/features/account_timeline/modals/field_modal.tsx +++ b/app/javascript/mastodon/features/account_timeline/modals/field_modal.tsx @@ -2,7 +2,9 @@ import type { FC } from 'react'; import { FormattedMessage } from 'react-intl'; +import { Button } from '@/mastodon/components/button'; import { EmojiHTML } from '@/mastodon/components/emoji/html'; +import { ModalShell } from '@/mastodon/components/modal_shell'; import type { AccountField } from '../common'; import { useFieldHtml } from '../hooks/useFieldHtml'; @@ -16,29 +18,25 @@ export const AccountFieldModal: FC<{ const handleLabelElement = useFieldHtml(field.nameHasEmojis); const handleValueElement = useFieldHtml(field.valueHasEmojis); return ( -
-
-
- - -
-
-
-
- -
-
-
+ + + + + + + + + ); }; diff --git a/app/javascript/mastodon/features/account_timeline/v2/styles.module.scss b/app/javascript/mastodon/features/account_timeline/v2/styles.module.scss index a57a5e738a..2ef62a7d25 100644 --- a/app/javascript/mastodon/features/account_timeline/v2/styles.module.scss +++ b/app/javascript/mastodon/features/account_timeline/v2/styles.module.scss @@ -7,6 +7,7 @@ border: none; background: none; padding: 8px 0; + font-size: 15px; font-weight: 500; display: flex; align-items: center; @@ -41,6 +42,10 @@ align-items: center; font-size: 15px; } + + [data-color-scheme='dark'] & { + border: 1px solid var(--color-border-primary); + } } .tagsWrapper {