From 5897a9e5df32508faea89948014df578495288b2 Mon Sep 17 00:00:00 2001 From: "Adriano (daitarn)" Date: Wed, 28 Oct 2026 22:15:55 +0100 Subject: [PATCH] =?UTF-8?q?Wizard:=20chiusura=20in=20pi=C3=B9=20nella=20Pr?= =?UTF-8?q?ova=20tolta,=20percentuale=20del=20DXF=20rispetto=20ad=20Adatta?= =?UTF-8?q?=20(Refs=20#122)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019A9CSrh9rfM5WwqKtg8BSE --- src/frontend/flask_app/static/js/image_viewer.js | 3 ++- src/frontend/flask_app/templates/maker/task_editor.html | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/flask_app/static/js/image_viewer.js b/src/frontend/flask_app/static/js/image_viewer.js index 7f45f67..735fc31 100644 --- a/src/frontend/flask_app/static/js/image_viewer.js +++ b/src/frontend/flask_app/static/js/image_viewer.js @@ -337,7 +337,8 @@ var z = this._z; this._stage.style.width = this._w && z ? (this._w * z) + 'px' : '0px'; this._stage.style.height = this._w && z ? (this._h * z) + 'px' : '0px'; - this._pctEl.textContent = TmfViewerMath.pct(z); + // #122: modo contenuto (DXF in mm) = percentuale rispetto ad Adatta; immagine = 100 % un pixel per pixel + this._pctEl.textContent = TmfViewerMath.pct(!this._hasSrc() && this._content && this._fit ? z / this._fit : z); this._drawOverlay(); this._drawLabels(); this._cursor(); diff --git a/src/frontend/flask_app/templates/maker/task_editor.html b/src/frontend/flask_app/templates/maker/task_editor.html index 50ac0fc..14e6d4e 100644 --- a/src/frontend/flask_app/templates/maker/task_editor.html +++ b/src/frontend/flask_app/templates/maker/task_editor.html @@ -796,8 +796,7 @@ title-in="{{ _('Ingrandisci') }}" title-out="{{ _('Riduci') }}" title-save="{{ _('Salva immagine') }}" class="rounded border border-[var(--border-color)]" style="background: var(--bg-primary);"> - - + {# #122: chiude solo la colonna dell'immagine (una chiusura in piu' chiudeva la griglia) #}