diff --git a/static/css/app.css b/static/css/app.css index 7ca6dde..7082ef6 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -1851,6 +1851,8 @@ html.nui-tts-on body.reader-immersive .reader-overlay { bottom: var(--bar-h); } /* Page by page the page fills the whole reading area, without its padding: 66-pdf-paginated.js measures the area and places the page by its text box itself. */ .reader-content.pdf-paginated { overflow:hidden !important; display:block; padding:0 !important; } +/* The pages are as wide as they're drawn, not the text column's line length (--reader-max-width). */ +.reader-content > #pdf-viewport { max-width:none; } .reader-content.pdf-paginated > #pdf-viewport { width:100%; height:100%; max-width:none; margin:0; } .pdf-paginated .pdf-page-wrapper { margin:0; } .pdf-paginated .pdf-page-wrapper { position:relative; } diff --git a/static/js/app/62-reader.js b/static/js/app/62-reader.js index d7da52d..0e10829 100644 --- a/static/js/app/62-reader.js +++ b/static/js/app/62-reader.js @@ -327,12 +327,8 @@ async function _openBookOnce(bookId) { // Apply reader settings (theme, font size, etc.) applyReaderSettings(isPdfBook); - // If this book already has notes/highlights, surface them right away - // instead of making the reader hide them behind a manual toggle. - // Not on phones: there the margin covers the text; it stays one tap away (✎). - if (!isPdfBook && currentHighlights.length && !readerAnnotationsMarginOpen && !_isMobileReader()) { - toggleAnnotationsMargin(); - } + // The notes margin stays closed when a book opens (also with notes in it): it's one + // tap away (✎), and opens by itself when a note is written. // Touch: swipe (paginated) + pinch-to-zoom _readerListen(contentEl, 'touchstart', _pdfTouchStart, {passive: true}); diff --git a/static/js/sw.js b/static/js/sw.js index c7a8dbd..e617f7f 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v166'; +const CACHE = 'diora-v167'; const SHELL = [ '/static/css/app.css', '/static/js/app/01-core.js',