door panel
This commit is contained in:
@@ -488,10 +488,8 @@ export function DoorPanel() {
|
|||||||
</div>
|
</div>
|
||||||
{/* Columns */}
|
{/* Columns */}
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<div className="flex items-center justify-between">
|
|
||||||
<span className="text-xs text-muted-foreground">Columns</span>
|
|
||||||
<NumberInput
|
<NumberInput
|
||||||
label=""
|
label="Columns"
|
||||||
value={numCols}
|
value={numCols}
|
||||||
onChange={(v) => {
|
onChange={(v) => {
|
||||||
const n = Math.max(1, Math.min(8, Math.round(v)))
|
const n = Math.max(1, Math.min(8, Math.round(v)))
|
||||||
@@ -504,9 +502,7 @@ export function DoorPanel() {
|
|||||||
max={8}
|
max={8}
|
||||||
precision={0}
|
precision={0}
|
||||||
step={1}
|
step={1}
|
||||||
className="w-16"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
{numCols > 1 && (
|
{numCols > 1 && (
|
||||||
<div className="space-y-1 pl-1">
|
<div className="space-y-1 pl-1">
|
||||||
{normCols.map((ratio, ci) => (
|
{normCols.map((ratio, ci) => (
|
||||||
@@ -556,7 +552,7 @@ export function DoorPanel() {
|
|||||||
)
|
)
|
||||||
handleUpdate({ segments: updated })
|
handleUpdate({ segments: updated })
|
||||||
}}
|
}}
|
||||||
min={0.005}
|
min={0}
|
||||||
precision={3}
|
precision={3}
|
||||||
step={0.005}
|
step={0.005}
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
@@ -573,6 +569,7 @@ export function DoorPanel() {
|
|||||||
)
|
)
|
||||||
handleUpdate({ segments: updated })
|
handleUpdate({ segments: updated })
|
||||||
}}
|
}}
|
||||||
|
min={0}
|
||||||
precision={3}
|
precision={3}
|
||||||
step={0.005}
|
step={0.005}
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
|
|||||||
Reference in New Issue
Block a user