fix(core): disable border thickness setting when no border is selected (#8152)

close AF-1351
This commit is contained in:
JimmFly
2024-09-09 03:25:03 +00:00
parent 6b266e3a1b
commit a7ecfea3b5
4 changed files with 25 additions and 1 deletions

View File

@@ -256,6 +256,7 @@ export const NoteSettings = () => {
max={12}
step={2}
nodes={[2, 4, 6, 8, 10, 12]}
disabled={borderStyle === StrokeStyle.None}
/>
</SettingRow>
</>

View File

@@ -494,6 +494,7 @@ export const ShapeSettings = () => {
max={12}
step={2}
nodes={[2, 4, 6, 8, 10, 12]}
disabled={borderStyle === StrokeStyle.None}
/>
</SettingRow>
<SettingRow