Skip to content

Commit eb0af46

Browse files
Gnathonicclaude
andcommitted
feat(settings): page gap slider + chord hints
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 5f3fe69 commit eb0af46

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

src/lib/components/Settings/Reader/ReaderSettings.svelte

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
} from '$lib/settings';
1616
import { isReader } from '$lib/util';
1717
import { routeParams } from '$lib/util/hash-router';
18+
import { MAX_PAGE_GAP } from '$lib/reader/zoom-math';
1819
1920
// Derived visibility flags
2021
let isContinuous = $derived($settings.continuousScroll);
@@ -101,6 +102,21 @@
101102
onchange={onPageViewModeChange}
102103
/>
103104
</div>
105+
{#if isDualOrAuto}
106+
<div>
107+
<Label class="text-gray-900 dark:text-white">
108+
Page gap: {$settings.pagedGap}px
109+
<span class="ml-2 text-xs text-gray-500 dark:text-gray-400">(Ctrl+Shift+Scroll)</span>
110+
</Label>
111+
<Range
112+
min={0}
113+
max={MAX_PAGE_GAP}
114+
value={$settings.pagedGap}
115+
onchange={(e) =>
116+
updateSetting('pagedGap', Number((e.target as HTMLInputElement).value))}
117+
/>
118+
</div>
119+
{/if}
104120
{/if}
105121

106122
<!-- 3. If continuous: Scroll mode dropdown + gap slider -->
@@ -126,10 +142,11 @@
126142
<div>
127143
<Label class="text-gray-900 dark:text-white">
128144
Divider size: {$settings.scrollGap}px
145+
<span class="ml-2 text-xs text-gray-500 dark:text-gray-400">(Ctrl+Shift+Scroll)</span>
129146
</Label>
130147
<Range
131148
min={0}
132-
max={100}
149+
max={MAX_PAGE_GAP}
133150
value={$settings.scrollGap}
134151
onchange={(e) =>
135152
updateSetting('scrollGap', Number((e.target as HTMLInputElement).value))}

0 commit comments

Comments
 (0)