From e9ac30ed1df6b3df759e4abdded3efb4878a24c3 Mon Sep 17 00:00:00 2001 From: sepehr Date: Sun, 31 May 2026 23:33:32 +0200 Subject: [PATCH] style: use same serif/typography font styles on profile page as translate page --- frontend/src/app/dashboard/profile/page.tsx | 30 ++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/dashboard/profile/page.tsx b/frontend/src/app/dashboard/profile/page.tsx index fef0f32..bad8287 100644 --- a/frontend/src/app/dashboard/profile/page.tsx +++ b/frontend/src/app/dashboard/profile/page.tsx @@ -57,6 +57,18 @@ const UI_LANGUAGES: { value: Locale; label: string; flag: string }[] = [ { value: 'fa', label: 'فارسی', flag: '🇮🇷' }, ]; +function formatTitleWithItalic(title: string) { + const words = title.split(' '); + if (words.length > 1) { + return ( + <> + {words.slice(0, -1).join(' ')} {words[words.length - 1]} + + ); + } + return title; +} + /* ── Main component ───────────────────────────────────────────── */ export default function ProfilePage() { const router = useRouter(); @@ -171,10 +183,10 @@ export default function ProfilePage() { {/* ── Editorial Header ───────────────────────────────────── */}
{t('profile.header.title')} -

- {t('profile.header.title')} +

+ {formatTitleWithItalic(t('profile.header.title'))}

-

{t('profile.header.subtitle')}

+

{t('profile.header.subtitle')}

{/* Status message */} @@ -222,7 +234,7 @@ export default function ProfilePage() {
-

+

{user?.name || t('profile.account.user')}

@@ -257,7 +269,7 @@ export default function ProfilePage() {
-

+

{t('profile.plan.label')} {planLabel}

-

+

{t('profile.prefs.interfaceLang')}

@@ -523,7 +535,7 @@ export default function ProfilePage() {
-

+

{t('profile.prefs.defaultTargetLang')}

@@ -559,7 +571,7 @@ export default function ProfilePage() {

-

+

{t('profile.prefs.theme')}

@@ -577,7 +589,7 @@ export default function ProfilePage() {

-

+

{t('profile.prefs.cache')}