mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 21:51:44 +02:00
🐛 Fix fill collapsed options
This commit is contained in:
parent
6b3bfc85b3
commit
d527bbd8b5
2 changed files with 11 additions and 10 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :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 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)
|
- Fix components are not dragged from the group to the assets tab [Taiga #8273](https://tree.taiga.io/project/penpot/issue/8273)
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
has-fills? (or (= :multiple fills) (some? (seq fills)))
|
has-fills? (or (= :multiple fills) (some? (seq fills)))
|
||||||
|
|
||||||
|
|
||||||
state* (mf/use-state has-fills?)
|
state* (mf/use-state true)
|
||||||
open? (deref state*)
|
open? (deref state*)
|
||||||
|
|
||||||
toggle-content (mf/use-fn #(swap! state* not))
|
toggle-content (mf/use-fn #(swap! state* not))
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
:data-testid "add-fill"
|
:data-testid "add-fill"
|
||||||
:on-click on-add} i/add])]]
|
:on-click on-add} i/add])]]
|
||||||
|
|
||||||
(when open?
|
(when (and open? has-fills?)
|
||||||
[:div {:class (stl/css :element-content)}
|
[:div {:class (stl/css :element-content)}
|
||||||
(cond
|
(cond
|
||||||
(= :multiple fills)
|
(= :multiple fills)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue