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) #}