@@ -4,7 +4,11 @@ import SettingsMenu from '@/containers/SettingsMenu'
44import HeaderPage from '@/containers/HeaderPage'
55import { Card , CardItem } from '@/containers/Card'
66import { 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'
812import { 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