fix(ui): use nav label for iwooos mobile shortcut
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 16s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-29 14:28:26 +08:00
parent ae78366a61
commit 552d149b50

View File

@@ -46,6 +46,7 @@ export function Header({
const t = useTranslations('locale')
const tBrand = useTranslations('brand')
const tDashboard = useTranslations('dashboard')
const tNav = useTranslations('nav')
const tSidebar = useTranslations('sidebar')
const pathname = usePathname()
@@ -151,8 +152,8 @@ export function Header({
{compact && (
<a
href={iwooosHref}
aria-label={tSidebar('iwooos')}
title={tSidebar('iwooos')}
aria-label={tNav('iwooos')}
title={tNav('iwooos')}
style={{
height: 38,
minWidth: 92,
@@ -172,7 +173,7 @@ export function Header({
}}
>
<ShieldCheck size={16} aria-hidden="true" strokeWidth={2.2} />
<span style={{ lineHeight: 1, whiteSpace: 'nowrap' }}>{tSidebar('iwooos')}</span>
<span style={{ lineHeight: 1, whiteSpace: 'nowrap' }}>{tNav('iwooos')}</span>
</a>
)}