🐛 Fix internal error when I set up a stroke for some objects without and with stroke

This commit is contained in:
Alejandro Alonso 2024-06-10 11:02:17 +02:00 committed by Andrey Antukh
parent 9f7a002a78
commit 058a72b817
8 changed files with 401 additions and 4 deletions

View file

@ -87,6 +87,7 @@
:class (stl/css-case :title-spacing-blur (not has-value?))}
(when-not has-value?
[:button {:class (stl/css :add-blur)
:data-testid "add-blur"
:on-click handle-add} i/add])]]
(when (and open? has-value?)
[:div {:class (stl/css :element-set-content)}

View file

@ -146,6 +146,7 @@
(when (and (not disable-remove?) (not (= :multiple fills)))
[:button {:class (stl/css :add-fill)
:data-testid "add-fill"
:on-click on-add} i/add])]]
(when open?

View file

@ -298,6 +298,7 @@
(when-not (= :multiple shadows)
[:button {:class (stl/css :add-shadow)
:data-testid "add-shadow"
:on-click on-add-shadow} i/add])]]
(when open?

View file

@ -169,9 +169,10 @@
:on-collapsed toggle-content
:title label
:class (stl/css-case :title-spacing-stroke (not has-strokes?))}
[:button {:class (stl/css :add-stroke)
:on-click on-add-stroke} i/add]]]
(when (not (= :multiple strokes))
[:button {:class (stl/css :add-stroke)
:data-testid "add-stroke"
:on-click on-add-stroke} i/add])]]
(when open?
[:div {:class (stl/css-case :element-content true
:empty-content (not has-strokes?))}