🐛 Fix fill collapsed options

This commit is contained in:
Eva Marco 2024-08-02 11:12:28 +02:00
parent 6b3bfc85b3
commit d527bbd8b5
2 changed files with 11 additions and 10 deletions

View file

@ -12,6 +12,7 @@
### :bug: Bugs fixed
- Fix fill collapsed options [Taiga #8351](https://tree.taiga.io/project/penpot/issue/8351)
- Fix scroll on color picker modal [Taiga #8353](https://tree.taiga.io/project/penpot/issue/8353)
- Fix components are not dragged from the group to the assets tab [Taiga #8273](https://tree.taiga.io/project/penpot/issue/8273)

View file

@ -54,7 +54,7 @@
has-fills? (or (= :multiple fills) (some? (seq fills)))
state* (mf/use-state has-fills?)
state* (mf/use-state true)
open? (deref state*)
toggle-content (mf/use-fn #(swap! state* not))
@ -149,7 +149,7 @@
:data-testid "add-fill"
:on-click on-add} i/add])]]
(when open?
(when (and open? has-fills?)
[:div {:class (stl/css :element-content)}
(cond
(= :multiple fills)