From c60aa6f9b10943a6eedeecb1aff736a891ab886b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 7 Aug 2026 16:39:50 +0200 Subject: [PATCH] refactor(settings): fold the profile-photo format line into its description The accepted formats and the size limit were a caption of their own under the upload buttons, so the card read as an explanation, a control, and then a second explanation. They now finish the sentence that says what the card does, which is where someone looks before choosing a file rather than after. Same two strings, six languages unchanged. --- .../settings/account-section/avatar-section.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/settings/account-section/avatar-section.tsx b/src/components/settings/account-section/avatar-section.tsx index b6f8a28fc..d65c177a6 100644 --- a/src/components/settings/account-section/avatar-section.tsx +++ b/src/components/settings/account-section/avatar-section.tsx @@ -113,8 +113,13 @@ export function AvatarSection() { title={t("settings.avatar.title")} className="mb-4" /> + {/* The accepted formats and limits belong to the sentence that explains + what this card does, not to a caption of their own under the buttons. + Two strings rather than one merged key: the same wording is the + upload's own constraint copy, and a translator keeps the shorter unit + either way. */}

- {t("settings.avatar.description")} + {t("settings.avatar.description")} {t("settings.avatar.hint")}

@@ -167,9 +172,6 @@ export function AvatarSection() { )}
-

- {t("settings.avatar.hint")} -

{msg && (