From d3ef5fc08a924dd1a9675bc62ac2d2b98b5fc638 Mon Sep 17 00:00:00 2001 From: wass08 Date: Wed, 25 Feb 2026 16:10:21 +0900 Subject: [PATCH] door panel --- .../components/ui/panels/door-panel.tsx | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/apps/editor/components/ui/panels/door-panel.tsx b/apps/editor/components/ui/panels/door-panel.tsx index 8330d741..e92afd51 100644 --- a/apps/editor/components/ui/panels/door-panel.tsx +++ b/apps/editor/components/ui/panels/door-panel.tsx @@ -488,25 +488,21 @@ export function DoorPanel() { {/* Columns */}
-
- Columns - { - const n = Math.max(1, Math.min(8, Math.round(v))) - const updated = node.segments.map((s, idx) => - idx === i ? { ...s, columnRatios: Array(n).fill(1 / n) } : s, - ) - handleUpdate({ segments: updated }) - }} - min={1} - max={8} - precision={0} - step={1} - className="w-16" - /> -
+ { + const n = Math.max(1, Math.min(8, Math.round(v))) + const updated = node.segments.map((s, idx) => + idx === i ? { ...s, columnRatios: Array(n).fill(1 / n) } : s, + ) + handleUpdate({ segments: updated }) + }} + min={1} + max={8} + precision={0} + step={1} + /> {numCols > 1 && (
{normCols.map((ratio, ci) => ( @@ -556,7 +552,7 @@ export function DoorPanel() { ) handleUpdate({ segments: updated }) }} - min={0.005} + min={0} precision={3} step={0.005} className="flex-1" @@ -573,6 +569,7 @@ export function DoorPanel() { ) handleUpdate({ segments: updated }) }} + min={0} precision={3} step={0.005} className="flex-1"