fix: shorten mobile toolbar labels (#6553)

This commit is contained in:
Jinjing
2026-06-27 22:59:55 -07:00
committed by GitHub
parent bffe436aeb
commit b45cb545c5
3 changed files with 9 additions and 16 deletions
@@ -18,10 +18,10 @@ describe('MobilePageToolbar', () => {
<MobilePageToolbar showMobileButton onClose={vi.fn()} onToggleMobileSidebarButton={vi.fn()} />
)
expect(html).toContain('Remove Orca Mobile from left sidebar')
expect(html).toContain('Hide from sidebar')
expect(html).toContain('mp-page-toolbar-primary')
expect(html).toContain('Configure in Settings')
expect(html).not.toContain('Hide from sidebar')
expect(html).not.toContain('Remove Orca Mobile')
})
it('labels the restore action explicitly when Orca Mobile is hidden from the sidebar', () => {
@@ -33,7 +33,6 @@ describe('MobilePageToolbar', () => {
/>
)
expect(html).toContain('Show Orca Mobile in left sidebar')
expect(html).not.toContain('Show in sidebar')
expect(html).toContain('Show in sidebar')
})
})
@@ -15,14 +15,8 @@ export function MobilePageToolbar({
onToggleMobileSidebarButton
}: MobilePageToolbarProps): React.JSX.Element {
const sidebarToggleLabel = showMobileButton
? translate(
'auto.components.mobile.MobilePageToolbar.a4f8c2d91e',
'Remove Orca Mobile from left sidebar'
)
: translate(
'auto.components.mobile.MobilePageToolbar.b7e3d1c84a',
'Show Orca Mobile in left sidebar'
)
? translate('auto.components.mobile.MobilePageToolbar.c669abcf8f', 'Hide from sidebar')
: translate('auto.components.mobile.MobilePageToolbar.fb5f28330e', 'Show in sidebar')
const sidebarToggleTooltip = showMobileButton
? translate(
'auto.components.mobile.MobilePageToolbar.e1c7b4a92d',
@@ -30,7 +24,7 @@ export function MobilePageToolbar({
)
: translate(
'auto.components.mobile.MobilePageToolbar.f3d8e5b71a',
'Adds the shortcut back to the left sidebar.'
'Adds the shortcut back to the sidebar.'
)
return (
+3 -3
View File
@@ -9756,9 +9756,9 @@
"fb5f28330e": "Show in sidebar",
"c669abcf8f": "Hide from sidebar",
"e1c7b4a92d": "Configure in Settings > Mobile.",
"a4f8c2d91e": "Remove Orca Mobile from left sidebar",
"b7e3d1c84a": "Show Orca Mobile in left sidebar",
"f3d8e5b71a": "Adds the shortcut back to the left sidebar."
"a4f8c2d91e": "Hide from sidebar",
"b7e3d1c84a": "Show in sidebar",
"f3d8e5b71a": "Adds the shortcut back to the sidebar."
},
"PhoneCarousel": {
"96d651cb87": "Terminal session",