From 9d097f5fbaa9cc02d362313d3737754c445230dd Mon Sep 17 00:00:00 2001 From: marwin Date: Thu, 24 Sep 2026 10:49:09 +0000 Subject: [PATCH] =?UTF-8?q?Reader:=20Notiz-Randspalte=20auf=20dem=20Handy?= =?UTF-8?q?=20nicht=20automatisch=20=C3=B6ffnen=20(SW=20v45)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Beim Öffnen eines Buchs mit Markierungen klappte die Randspalte auch auf schmalen Bildschirmen auf und verdeckte den Text. Auf Mobil (_isMobileReader) bleibt sie jetzt zu und ist weiter über ✎ erreichbar. Co-Authored-By: Claude Opus 5.5 --- static/js/app.js | 3 ++- static/js/sw.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index ff4f1d6..751d2b1 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -4552,7 +4552,8 @@ async function openBook(bookId) { // If this book already has notes/highlights, surface them right away // instead of making the reader hide them behind a manual toggle. - if (!isPdfBook && currentHighlights.length && !readerAnnotationsMarginOpen) { + // Not on phones: there the margin covers the text; it stays one tap away (✎). + if (!isPdfBook && currentHighlights.length && !readerAnnotationsMarginOpen && !_isMobileReader()) { toggleAnnotationsMargin(); } diff --git a/static/js/sw.js b/static/js/sw.js index 72ac2ca..f99fe3a 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-v44'; +const CACHE = 'diora-v45'; const PODCAST_CACHE = 'diora-podcast-v1'; const SHELL = [ '/static/css/app.css',