iobroker.staticsfilefolder 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -64,6 +64,9 @@ Once configured and the instance is running (green status):
64
64
  Placeholder for the next version (at the beginning of the line):
65
65
  ### **WORK IN PROGRESS**
66
66
  -->
67
+ ### 0.0.22
68
+ * Fixed PDF print layout to prevent vertical page overflow, and fixed zoom/scale rendering issues in PDF viewer.
69
+
67
70
  ### 0.0.21
68
71
  * Upgraded Express to major version 5.x and updated tsconfig to target Node 22.
69
72
 
package/io-package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "staticsfilefolder",
4
- "version": "0.0.21",
4
+ "version": "0.0.22",
5
5
  "news": {
6
- "0.0.21": {
7
- "en": "Upgraded Express to major version 5.x and updated tsconfig to target Node 22.",
8
- "de": "Express auf Major-Version 5.x aktualisiert und tsconfig auf Node 22 angepasst.",
9
- "ru": "Обновлен Express до мажорной версии 5.x и обновлен tsconfig для поддержки Node 22.",
10
- "pt": "Atualizado o Express para a versão principal 5.x e atualizado o tsconfig para o Node 22.",
11
- "nl": "Express geüpgraded naar hoofdversie 5.x en tsconfig bijgewerkt naar Node 22.",
12
- "fr": "Mise à niveau d'Express vers la version majeure 5.x et mise à jour de tsconfig pour cibler Node 22.",
13
- "it": "Aggiornato Express alla versione principale 5.x e aggiornato tsconfig per Node 22.",
14
- "es": "Se actualizó Express a la versión principal 5.x y se actualizó tsconfig para apuntar a Node 22.",
15
- "pl": "Uaktualniono Express do głównej wersji 5.x i zaktualizowano tsconfig dla Node 22.",
16
- "uk": "Оновлено Express до мажорної версії 5.x та оновлено tsconfig для підтримки Node 22.",
17
- "zh-cn": "将Express升级到主版本5.x并更新tsconfig以针对Node 22。"
6
+ "0.0.22": {
7
+ "en": "Fixed PDF print layout to prevent vertical page overflow, and fixed zoom/scale rendering issues in PDF viewer.",
8
+ "de": "PDF-Drucklayout korrigiert, um vertikalen Seitenüberlauf zu verhindern, und Zoom-Rendering-Probleme im PDF-Viewer behoben.",
9
+ "ru": "Исправлен макет печати PDF для предотвращения вертикального переполнения страниц, и исправлены проблемы с масштабированием в просмотрщике PDF.",
10
+ "pt": "Corrigido o layout de impressão PDF para evitar o transbordamento vertical de páginas e corrigidos os problemas de renderização de zoom no visualizador de PDF.",
11
+ "nl": "PDF-afdrukopmaak gecorrigeerd om verticale pagina-overloop te voorkomen, en zoom-rendervraagstukken in PDF-viewer opgelost.",
12
+ "fr": "Correction de la mise en page d'impression PDF pour éviter le débordement vertical des pages, et correction des problèmes de rendu de zoom dans la visionneuse PDF.",
13
+ "it": "Corretto il layout di stampa PDF per prevenire l'overflow verticale della pagina e risolti i problemi di rendering dello zoom nel visualizzatore PDF.",
14
+ "es": "Se corrigió el diseño de impresión PDF para evitar el desbordamiento vertical de la página y se corrigieron los problemas de renderizado de zoom en el visor de PDF.",
15
+ "pl": "Naprawiono układ wydruku PDF, aby zapobiec pionowemu przepełnieniu stron, oraz naprawiono problemy z renderowaniem powiększenia w przeglądarce PDF.",
16
+ "uk": "Виправлено макет друку PDF для запобігання вертикальному переповненню сторінок, та виправлено проблеми з масштабуванням у переглядачі PDF.",
17
+ "zh-cn": "修复了PDF打印布局以防止垂直页面溢出,并修复了PDF查看器中的缩放渲染问题。"
18
18
  },
19
19
  "0.0.15": {
20
20
  "en": "Reverted minimum Node.js engine requirement to 20 to support GitHub Actions runners.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.staticsfilefolder",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Static Files Folder",
5
5
  "author": {
6
6
  "name": "gokturk413",
package/www/app.js CHANGED
@@ -507,10 +507,13 @@ function printModalContent() {
507
507
  color: black;
508
508
  }
509
509
  .pdf-page-img {
510
- width: 100%;
511
510
  max-width: 100%;
511
+ max-height: 100vh;
512
+ width: auto;
512
513
  height: auto;
513
514
  display: block;
515
+ margin: 0 auto;
516
+ page-break-inside: avoid;
514
517
  page-break-after: always;
515
518
  }
516
519
  .pdf-page-img:last-child {
@@ -582,9 +585,12 @@ async function renderPdfPages() {
582
585
  canvas.height = viewport.height;
583
586
  canvas.width = viewport.width;
584
587
 
588
+ canvas.style.width = `${viewport.width}px`;
589
+ canvas.style.height = `${viewport.height}px`;
590
+ canvas.style.maxWidth = 'none';
585
591
  canvas.style.display = 'block';
586
- canvas.style.margin = '10px auto';
587
- canvas.style.boxShadow = '0 4px 8px rgba(0,0,0,0.15)';
592
+ canvas.style.margin = '15px auto';
593
+ canvas.style.boxShadow = '0 4px 10px rgba(0,0,0,0.25)';
588
594
 
589
595
  viewerBody.appendChild(canvas);
590
596
 
package/www/style.css CHANGED
@@ -234,16 +234,15 @@ body {
234
234
  flex-grow: 1;
235
235
  overflow: auto;
236
236
  background: var(--hover-color);
237
- display: flex;
238
- justify-content: center;
237
+ display: block;
238
+ text-align: center;
239
239
  color: var(--text-color);
240
240
  }
241
241
 
242
242
  #viewer-body canvas {
243
- max-width: 100%;
244
- margin: 10px auto;
243
+ margin: 15px auto;
245
244
  display: block;
246
- box-shadow: 0 2px 5px rgba(0,0,0,0.3);
245
+ box-shadow: 0 4px 10px rgba(0,0,0,0.25);
247
246
  }
248
247
 
249
248
  /* Table styles for excel */