From 927c7d747f82fa10988f2675568567ca4c38a2bf Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 7 Apr 2026 15:31:59 +0200 Subject: [PATCH] Change design of e-mail subscription form (#38582) Co-authored-by: diondiondion --- .../components/account_subscription_form.tsx | 45 ++++++------------- .../components/redesign.module.scss | 11 +++-- app/javascript/mastodon/locales/en.json | 5 +-- 3 files changed, 24 insertions(+), 37 deletions(-) diff --git a/app/javascript/mastodon/features/account_timeline/components/account_subscription_form.tsx b/app/javascript/mastodon/features/account_timeline/components/account_subscription_form.tsx index d183aa1cb3..0013a4bc14 100644 --- a/app/javascript/mastodon/features/account_timeline/components/account_subscription_form.tsx +++ b/app/javascript/mastodon/features/account_timeline/components/account_subscription_form.tsx @@ -12,13 +12,10 @@ import type { ValidationErrorResponse, ValidationError, } from 'mastodon/api_types/errors'; -import { A11yLiveRegion } from 'mastodon/components/a11y_live_region'; import { Button } from 'mastodon/components/button'; -import { CalloutInline } from 'mastodon/components/callout_inline'; import { DisplayName } from 'mastodon/components/display_name'; import type { FieldStatus } from 'mastodon/components/form_fields'; -import formFieldClasses from 'mastodon/components/form_fields/form_field_wrapper.module.scss'; -import { TextInput } from 'mastodon/components/form_fields/text_input_field'; +import { TextInputField } from 'mastodon/components/form_fields/text_input_field'; import { useAppSelector } from 'mastodon/store'; import classes from './redesign.module.scss'; @@ -34,7 +31,7 @@ const messages = defineMessages({ }, email: { id: 'email_subscriptions.email', - defaultMessage: 'Email address', + defaultMessage: 'Email', }, }); @@ -159,33 +156,19 @@ export const AccountSubscriptionForm: React.FC<{ accountId: string }> = ({ }} /> -
-
- - - - {errors.email && ( - - )} - -
+