From ff2024df9f49be8761670f71a69bcd743d287502 Mon Sep 17 00:00:00 2001 From: fixclean Date: Thu, 12 Feb 2026 08:51:33 +0100 Subject: [PATCH] design breiter --- app/assets/js/device-type-shape-editor.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/assets/js/device-type-shape-editor.js b/app/assets/js/device-type-shape-editor.js index 4515ce6..a4b75c9 100644 --- a/app/assets/js/device-type-shape-editor.js +++ b/app/assets/js/device-type-shape-editor.js @@ -284,17 +284,14 @@ return; } - if (meta.heightHe !== 1) { - return; - } - const preset = FORM_FACTOR_PRESETS[meta.formFactor]; if (!preset) { return; } meta.canvasWidth = Math.max(MIN_CANVAS_WIDTH, preset.width); - meta.canvasHeight = Math.max(MIN_CANVAS_HEIGHT, preset.height); + const targetHeight = Math.round(preset.height * Math.max(1, meta.heightHe)); + meta.canvasHeight = Math.max(MIN_CANVAS_HEIGHT, targetHeight); } function applyOverlayToSelectedShape() {