PDF-Seiten so breit wie gezeichnet (nicht auf die Zeilenlänge des Textes begrenzt); Notizspalte geht beim Öffnen nicht mehr von selbst auf (sw CACHE v167)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
429b875faf
commit
066d0052d2
3 changed files with 5 additions and 7 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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});
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue