file-show: updated help page
Massimo Melina committed
Feb 3, 2024 at 19:09 UTC
4f2440c6973af90d55043e3ffbea7f60d6f3d6cc
3 files changed
+15
-20
frontend/src/show.ts
+11
-8
@@ -106,7 +106,7 @@ export function fileShow(entry: DirEntry) {
106
h('div', { className: 'bar' },
107
h('div', { className: 'filename' }, cur.n),
108
h(EntryDetails, { entry: cur, midnight: useMidnight() }),
109
- useWindowSize().width > 1280 && iconBtn('?', showHelp),
109
+ useWindowSize().width > 800 && iconBtn('?', showHelp),
110
h('div', {}, // fuse buttons
111
h(Btn, {
112
className: 'small',
@@ -277,13 +277,16 @@ function showHelp() {
277
Content: () => h(Fragment, {},
278
t('showHelpMain', {}, "You can use the keyboard for some actions:"),
279
_.map({
280
- "←/→": "go to previous/next file",
281
- "↑/↓": "scroll tall images",
282
- "space": "select",
283
- "D": "download",
284
- "Z": "zoom modes",
285
- "F": "full screen",
286
- }, (v,k) => h('div', { key: k }, h('kbd', {}, t('showHelp_' + k, {}, k)), ' ', t('showHelp_' + k + '_body', {}, v)) )
280
+ "←/→": t('showHelp_←/→_body', "Go to previous/next file"),
281
+ "↑/↓": t('showHelp_↑/↓_body', "Scroll tall images"),
282
+ "space": t`Select`,
283
+ "D": t`Download`,
284
+ "Z": t`Switch zoom mode`,
285
+ "F": t`Full screen`,
286
+ "S": t`Shuffle`,
287
+ "R": t`Repeat`,
288
+ "A": t`Auto-play`,
289
+ }, (v,k) => h('div', { key: k }, h('kbd', {}, t('showHelp_' + k, k)), ' ', v) )
290
)
291
})
292
}
src/langs/hfs-lang-en.json
+2
-6
@@ -129,12 +129,8 @@
129
"showHelp_←/→": "←/→",
130
"showHelp_↑/↓": "↑/↓",
131
"showHelp_space": "space",
132
- "showHelp_←/→_body": "go to previous/next file",
133
- "showHelp_↑/↓_body": "scroll tall images",
134
- "showHelp_space_body": "select",
135
- "showHelp_D_body": "download",
136
- "showHelp_Z_body": "zoom modes",
137
- "showHelp_F_body": "full screen",
132
+ "showHelp_←/→_body": "Go to previous/next file",
133
+ "showHelp_↑/↓_body": "Scroll tall images",
134
"Destination": "Destination",
135
"in_queue": "{n} in queue",
136
"enter_comment": "Comment for this file",
src/langs/hfs-lang-it.json
+2
-6
@@ -121,12 +121,8 @@
121
"File Show help": "Guida File Show",
122
"showHelpMain": "Puoi usare la tastiera per alcune azioni:",
123
"showHelp_space": "spazio",
124
- "showHelp_←/→_body": "vai al precedente/prossimo file",
125
- "showHelp_↑/↓_body": "scorri immagini lunghe",
126
- "showHelp_space_body": "seleziona",
127
- "showHelp_D_body": "download",
128
- "showHelp_Z_body": "cambia modalità zoom",
129
- "showHelp_F_body": "pieno schermo",
124
+ "showHelp_←/→_body": "Vai al precedente/prossimo file",
125
+ "showHelp_↑/↓_body": "Scorri immagini lunghe",
126
"Destination": "Destinazione",
127
"in_queue": "{n} in coda",
128
"enter_comment": "Comment for this file",