diff --git a/resources/[inventory]/pl_printer/web/index.html b/resources/[inventory]/pl_printer/web/index.html index 5cc6f2334..1f7cd93a9 100644 --- a/resources/[inventory]/pl_printer/web/index.html +++ b/resources/[inventory]/pl_printer/web/index.html @@ -10,21 +10,25 @@ margin: 0; padding: 0; overflow: hidden; - /* Entferne den Hintergrund, der den Schleier verursacht */ - background-color: transparent; + background-color: rgba(0, 0, 0, 0.7); + width: 100vw; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; } #image-container { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - max-width: 90%; - max-height: 90%; + position: relative; + max-width: 80vw; + max-height: 80vh; display: none; + overflow: auto; /* Ermöglicht Scrollen, wenn das Bild größer ist */ } #image { + display: block; max-width: 100%; max-height: 100%; + object-fit: contain; /* Behält das Seitenverhältnis bei */ } #document-id { position: absolute; @@ -35,7 +39,26 @@ padding: 5px; border-radius: 3px; font-family: Arial, sans-serif; - display: none; /* Verstecke die Dokument-ID standardmäßig */ + } + /* Zoom-Kontrollen */ + .zoom-controls { + position: absolute; + bottom: 10px; + right: 10px; + display: flex; + gap: 10px; + } + .zoom-btn { + background-color: rgba(0, 0, 0, 0.5); + color: white; + border: none; + border-radius: 3px; + padding: 5px 10px; + cursor: pointer; + font-family: Arial, sans-serif; + } + .zoom-btn:hover { + background-color: rgba(0, 0, 0, 0.7); } @@ -43,23 +66,56 @@
Document
+
+ + + +