Commit ded2404d authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Fix long Farsi nav labels wrapping on the mobile tab bar

The mobile bottom-tab and More-sheet labels had no width constraint, so
a longer translation (notably Soundmarks' Farsi label) wrapped onto a
second line and threw off icon/label vertical centering. Truncate with
an explicit width instead, and shorten the Farsi Soundmarks label.
parent e83d2fe1
......@@ -193,7 +193,9 @@ export function Layout({ title, children }: { title: string; children: ReactNode
strokeWidth={active ? 2.25 : 1.75}
className={`transition-transform duration-150 ${active ? 'scale-110 text-primary' : 'text-on-surface-variant'}`}
/>
<span className={active ? 'font-bold text-primary' : 'text-on-surface-variant'}>{t(item.labelKey)}</span>
<span className={`w-full truncate text-center ${active ? 'font-bold text-primary' : 'text-on-surface-variant'}`}>
{t(item.labelKey)}
</span>
</Link>
)
})}
......@@ -246,7 +248,7 @@ export function Layout({ title, children }: { title: string; children: ReactNode
}`}
>
<item.icon size={20} strokeWidth={active ? 2.25 : 1.75} />
{t(item.labelKey)}
<span className="w-full truncate">{t(item.labelKey)}</span>
</Link>
)
})}
......
......@@ -6,7 +6,7 @@
"nav.discover": "کاوش",
"nav.social": "اجتماعی",
"nav.remix": "ریمیکس",
"nav.soundmarks": "نشان‌های صوتی",
"nav.soundmarks": "نشان‌ها",
"nav.telegram": "تلگرام",
"nav.settings": "تنظیمات",
"nav.business": "کسب‌وکار",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment