@samitouri / QOSami-HFS / commits / 761154d4

file-show: tooltip on auto-play seconds

Massimo Melina committed Feb 3, 2024 at 14:53 UTC 761154d4b33ef82356497b25f185c9edf81e39df
1 file changed +3 -1
frontend/src/show.ts
+3 -1
@@ -77,6 +77,7 @@ export function fileShow(entry: DirEntry) {
77 mediaSession.setActionHandler('previoustrack', goPrev)
78
79 const {t} = useI18N()
80 + const autoPlaySecondsLabel = t('autoplay_seconds', "Seconds to wait on images")
81 return h(FlexV, {
82 gap: 0,
83 alignItems: 'stretch',
@@ -104,6 +105,7 @@ export function fileShow(entry: DirEntry) {
105 autoPlaying && h(Btn, {
106 className: 'small',
107 label: String(auto_play_seconds),
108 + title: autoPlaySecondsLabel,
109 onClick: configAutoPlay,
110 }),
111 ),
@@ -198,7 +200,7 @@ export function fileShow(entry: DirEntry) {
200 Content() {
201 const { auto_play_seconds } = useSnapState()
202 return h(FlexV, {},
201 - t('autoplay_seconds', "Seconds to wait on images"),
203 + autoPlaySecondsLabel,
204 h('input', {
205 type: 'number',
206 min: 1,