forked from akai/readest
fix(footnote): don't preload other sections in footnotes (#3563)
This commit is contained in:
@@ -135,6 +135,7 @@ const FootnotePopup: React.FC<FootnotePopupProps> = ({ bookKey, bookDoc }) => {
|
||||
const viewSettings = getViewSettings(bookKey)!;
|
||||
const backButtonMargin = canGoBackRef.current ? 32 : 0;
|
||||
renderer.setAttribute('flow', 'scrolled');
|
||||
renderer.setAttribute('no-preload', '');
|
||||
renderer.setAttribute('margin-top', `${viewSettings.vertical ? 0 : backButtonMargin}px`);
|
||||
renderer.setAttribute('margin-right', `${viewSettings.vertical ? backButtonMargin : 0}px`);
|
||||
renderer.setAttribute('margin-bottom', '0px');
|
||||
|
||||
+1
-1
Submodule packages/foliate-js updated: a1cec6f622...84ff50a800
Reference in New Issue
Block a user