From 066d0052d2ce8686b1d646af277b3069b89272c6 Mon Sep 17 00:00:00 2001 From: mrwnslz Date: Wed, 4 Nov 2026 14:32:24 +0100 Subject: [PATCH] =?UTF-8?q?PDF-Seiten=20so=20breit=20wie=20gezeichnet=20(n?= =?UTF-8?q?icht=20auf=20die=20Zeilenl=C3=A4nge=20des=20Textes=20begrenzt);?= =?UTF-8?q?=20Notizspalte=20geht=20beim=20=C3=96ffnen=20nicht=20mehr=20von?= =?UTF-8?q?=20selbst=20auf=20(sw=20CACHE=20v167)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- static/css/app.css | 2 ++ static/js/app/62-reader.js | 8 ++------ static/js/sw.js | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) 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',