mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-24 23:19:13 -05:00
feat: hides label height control when no label present
This commit is contained in:
@@ -28,18 +28,20 @@ export const NodeSettings = ({
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
<Section title="Label height">
|
||||
<Slider
|
||||
marks
|
||||
step={20}
|
||||
min={60}
|
||||
max={280}
|
||||
value={labelHeight}
|
||||
onChange={(e, newHeight) => {
|
||||
onUpdate({ labelHeight: newHeight as number });
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
{label && (
|
||||
<Section title="Label height">
|
||||
<Slider
|
||||
marks
|
||||
step={20}
|
||||
min={60}
|
||||
max={280}
|
||||
value={labelHeight}
|
||||
onChange={(e, newHeight) => {
|
||||
onUpdate({ labelHeight: newHeight as number });
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
)}
|
||||
<Section>
|
||||
<Box>
|
||||
<DeleteButton onClick={onDelete} />
|
||||
|
||||
Reference in New Issue
Block a user