6caa376f82
* feat(reader): make fixed-layout scroll gap configurable (foliate-js bump) (#3647) * feat(reader): add webtoonMode view setting + scroll-gap helper (#3647) * feat(reader): Webtoon Mode toggle in the fixed-layout view menu (#3647) * feat(reader): apply Webtoon Mode gap on fixed-layout book open (#3647) * fix(reader): clear Webtoon Mode + reset gap when Shift+J leaves scrolled (#3647) * chore(i18n): translate Webtoon Mode string across locales (#3647) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore(deps): bump foliate-js to merged readest/foliate-js#30 (#3647) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
7 lines
336 B
TypeScript
7 lines
336 B
TypeScript
/**
|
|
* The `scroll-gap` attribute (px) a fixed-layout renderer should use for the
|
|
* current Webtoon Mode state. `0` = seamless webtoon strip; `4` = the default
|
|
* inter-page gap. The renderer maps this to the `--scroll-page-gap` CSS var.
|
|
*/
|
|
export const getScrollGapAttr = (webtoonMode: boolean): string => (webtoonMode ? '0' : '4');
|