design breiter

This commit is contained in:
2026-02-12 08:51:33 +01:00
parent d9abde7bac
commit ff2024df9f

View File

@@ -284,17 +284,14 @@
return; return;
} }
if (meta.heightHe !== 1) {
return;
}
const preset = FORM_FACTOR_PRESETS[meta.formFactor]; const preset = FORM_FACTOR_PRESETS[meta.formFactor];
if (!preset) { if (!preset) {
return; return;
} }
meta.canvasWidth = Math.max(MIN_CANVAS_WIDTH, preset.width); 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() { function applyOverlayToSelectedShape() {