mirror of
https://github.com/penpot/penpot.git
synced 2025-01-04 13:50:12 -05:00
Merge pull request #4955 from penpot/eva-bugfixing-1
🐛 Fix several bugs
This commit is contained in:
commit
d6f528acd2
4 changed files with 14 additions and 16 deletions
|
@ -12,6 +12,9 @@
|
|||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
- Fix wrong props on padding input [Taiga #8254](https://tree.taiga.io/project/penpot/issue/8254)
|
||||
- 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)
|
||||
|
||||
## 2.1.2
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
justify-content: space-between;
|
||||
overflow: auto;
|
||||
margin-top: $s-8;
|
||||
max-height: $s-168;
|
||||
}
|
||||
|
||||
.add-color-btn,
|
||||
|
|
|
@ -49,23 +49,23 @@
|
|||
(tr "workspace.options.fill"))
|
||||
|
||||
;; Excluding nil values
|
||||
values (d/without-nils values)
|
||||
fills (:fills values)
|
||||
has-fills? (or (= :multiple fills) (some? (seq fills)))
|
||||
values (d/without-nils values)
|
||||
fills (:fills values)
|
||||
has-fills? (or (= :multiple fills) (some? (seq fills)))
|
||||
|
||||
|
||||
state* (mf/use-state has-fills?)
|
||||
open? (deref state*)
|
||||
state* (mf/use-state true)
|
||||
open? (deref state*)
|
||||
|
||||
toggle-content (mf/use-fn #(swap! state* not))
|
||||
toggle-content (mf/use-fn #(swap! state* not))
|
||||
|
||||
open-content (mf/use-fn #(reset! state* true))
|
||||
open-content (mf/use-fn #(reset! state* true))
|
||||
|
||||
close-content (mf/use-fn #(reset! state* false))
|
||||
close-content (mf/use-fn #(reset! state* false))
|
||||
|
||||
hide-fill-on-export? (:hide-fill-on-export values false)
|
||||
|
||||
checkbox-ref (mf/use-ref)
|
||||
checkbox-ref (mf/use-ref)
|
||||
|
||||
on-add
|
||||
(mf/use-fn
|
||||
|
@ -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)
|
||||
|
|
|
@ -342,7 +342,6 @@
|
|||
:data-attr "p1"
|
||||
:on-change on-change'
|
||||
:on-focus on-focus
|
||||
:nillable true
|
||||
:min 0
|
||||
:value p1}]]
|
||||
[:div {:class (stl/css :padding-simple)
|
||||
|
@ -357,7 +356,6 @@
|
|||
:on-change on-change'
|
||||
:on-focus on-focus
|
||||
:on-blur on-padding-blur
|
||||
:nillable true
|
||||
:min 0
|
||||
:value p2}]]]))
|
||||
|
||||
|
@ -400,7 +398,6 @@
|
|||
:on-change on-change'
|
||||
:on-focus on-focus
|
||||
:on-blur on-padding-blur
|
||||
:nillable true
|
||||
:min 0
|
||||
:value p1}]]
|
||||
|
||||
|
@ -415,7 +412,6 @@
|
|||
:on-change on-change'
|
||||
:on-focus on-focus
|
||||
:on-blur on-padding-blur
|
||||
:nillable true
|
||||
:min 0
|
||||
:value p2}]]
|
||||
|
||||
|
@ -430,7 +426,6 @@
|
|||
:on-change on-change'
|
||||
:on-focus on-focus
|
||||
:on-blur on-padding-blur
|
||||
:nillable true
|
||||
:min 0
|
||||
:value p3}]]
|
||||
|
||||
|
@ -445,7 +440,6 @@
|
|||
:on-change on-change'
|
||||
:on-focus on-focus
|
||||
:on-blur on-padding-blur
|
||||
:nillable true
|
||||
:min 0
|
||||
:value p4}]]]))
|
||||
|
||||
|
|
Loading…
Reference in a new issue