Skip to content

Commit eee3f0c

Browse files
authored
Merge pull request #6949 from janhq/fix/hide-zoom-shortcut
fix: hide zoom shortcut
2 parents 9369dfe + 8e85be5 commit eee3f0c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

web-app/src/routes/settings/shortcuts.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import SettingsMenu from '@/containers/SettingsMenu'
44
import HeaderPage from '@/containers/HeaderPage'
55
import { Card, CardItem } from '@/containers/Card'
66
import { useTranslation } from '@/i18n/react-i18next-compat'
7-
import { ShortcutAction, PlatformShortcuts, type ShortcutSpec } from '@/lib/shortcuts'
7+
import {
8+
ShortcutAction,
9+
PlatformShortcuts,
10+
type ShortcutSpec,
11+
} from '@/lib/shortcuts'
812
import { PlatformMetaKey } from '@/containers/PlatformMetaKey'
913

1014
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -24,7 +28,9 @@ function ShortcutLabel({ action, className = '' }: ShortcutLabelProps) {
2428
const spec = PlatformShortcuts[action]
2529

2630
return (
27-
<div className={`flex items-center justify-center px-3 py-1 bg-main-view-fg/5 rounded-md ${className}`}>
31+
<div
32+
className={`flex items-center justify-center px-3 py-1 bg-main-view-fg/5 rounded-md ${className}`}
33+
>
2834
<span className="font-medium">
2935
<ShortcutKeys spec={spec} />
3036
</span>
@@ -103,17 +109,9 @@ function Shortcuts() {
103109
<CardItem
104110
title={t('settings:shortcuts.toggleSidebar')}
105111
description={t('settings:shortcuts.toggleSidebarDesc')}
106-
actions={<ShortcutLabel action={ShortcutAction.TOGGLE_SIDEBAR} />}
107-
/>
108-
<CardItem
109-
title={t('settings:shortcuts.zoomIn')}
110-
description={t('settings:shortcuts.zoomInDesc')}
111-
actions={<ShortcutLabel action={ShortcutAction.ZOOM_IN} />}
112-
/>
113-
<CardItem
114-
title={t('settings:shortcuts.zoomOut')}
115-
description={t('settings:shortcuts.zoomOutDesc')}
116-
actions={<ShortcutLabel action={ShortcutAction.ZOOM_OUT} />}
112+
actions={
113+
<ShortcutLabel action={ShortcutAction.TOGGLE_SIDEBAR} />
114+
}
117115
/>
118116
</Card>
119117

@@ -148,7 +146,9 @@ function Shortcuts() {
148146
<CardItem
149147
title={t('settings:shortcuts.goToSettings')}
150148
description={t('settings:shortcuts.goToSettingsDesc')}
151-
actions={<ShortcutLabel action={ShortcutAction.GO_TO_SETTINGS} />}
149+
actions={
150+
<ShortcutLabel action={ShortcutAction.GO_TO_SETTINGS} />
151+
}
152152
/>
153153
</Card>
154154
</div>

0 commit comments

Comments
 (0)