fix(mobile-nav): keep tab labels on one line so the row stays aligned
'Shops & Spots' wrapped to two lines and pushed its icon out of line with the rest of the bar. Shorten nav.map to 'Spots' (en/es) and render every tab label single-line (w-full truncate text-center), so long customised labels can't wrap and misalign the bar either.
This commit is contained in:
parent
19f9acd7ef
commit
b70b9c677c
3 changed files with 5 additions and 4 deletions
|
|
@ -404,7 +404,7 @@ function MobileNav({
|
|||
)}
|
||||
</span>
|
||||
<span className={cn(
|
||||
'text-[9px] xs:text-[10px] leading-tight tracking-wide uppercase transition-all',
|
||||
'block w-full truncate text-center text-[9px] xs:text-[10px] leading-tight tracking-wide uppercase transition-all',
|
||||
active ? 'font-extrabold' : 'font-semibold',
|
||||
)}>
|
||||
{tab.labelKey ? t(tab.labelKey) : tab.label}
|
||||
|
|
@ -475,7 +475,7 @@ function MobileNav({
|
|||
)}
|
||||
</span>
|
||||
<span className={cn(
|
||||
'text-[9px] xs:text-[10px] leading-tight tracking-wide uppercase transition-all',
|
||||
'block w-full truncate text-center text-[9px] xs:text-[10px] leading-tight tracking-wide uppercase transition-all',
|
||||
tabActive ? 'font-extrabold' : 'font-semibold',
|
||||
)}>
|
||||
{isLoggedIn ? 'Profile' : 'Log In'}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,8 @@ const en = {
|
|||
// Navigation
|
||||
nav: {
|
||||
home: 'Home',
|
||||
map: 'Shops & Spots',
|
||||
// Kept to one word so the mobile tab bar labels stay on a single line.
|
||||
map: 'Spots',
|
||||
lab: 'The Lab',
|
||||
events: 'Events',
|
||||
crews: 'Crews',
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ const es = {
|
|||
// Navigation
|
||||
nav: {
|
||||
home: 'Inicio',
|
||||
map: 'Tiendas y Spots',
|
||||
map: 'Spots',
|
||||
lab: 'El Lab',
|
||||
events: 'Eventos',
|
||||
crews: 'Crews',
|
||||
|
|
|
|||
Loading…
Reference in a new issue