size reduction images

This commit is contained in:
Simon Martens
2025-09-29 23:30:34 +02:00
parent 269d635f1d
commit 9a856527cc
5 changed files with 96 additions and 66 deletions

View File

@@ -527,9 +527,12 @@ export class SinglePageViewer extends HTMLElement {
extractedHeading = indicatorClone.textContent.trim();
}
// Use full-quality image for single page viewer (not the preview src)
const fullImageSrc = imgElement.getAttribute('data-full-image') || imgElement.src;
// Update the current view with the new page
this.show(
imgElement.src,
fullImageSrc,
imgElement.alt,
pageNumber,
this.currentIsBeilage,