mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 20:36:11 +02:00
🐛 Fix multiuser - "Shadow" element is not updating immediately
This commit is contained in:
parent
444e9a3081
commit
b40ea3fb2a
2 changed files with 6 additions and 3 deletions
|
@ -63,6 +63,7 @@
|
||||||
- Fix ctrl+c for inspect code [Taiga #4739](https://tree.taiga.io/project/penpot/issue/4739)
|
- Fix ctrl+c for inspect code [Taiga #4739](https://tree.taiga.io/project/penpot/issue/4739)
|
||||||
- Fix text in custom font is not at the expected position at export [Taiga #4394](https://tree.taiga.io/project/penpot/issue/4394)
|
- Fix text in custom font is not at the expected position at export [Taiga #4394](https://tree.taiga.io/project/penpot/issue/4394)
|
||||||
- Fix unneeded popup when updating local components [Taiga #4430](https://tree.taiga.io/project/penpot/issue/4430)
|
- Fix unneeded popup when updating local components [Taiga #4430](https://tree.taiga.io/project/penpot/issue/4430)
|
||||||
|
- Fix multiuser - "Shadow" element is not updating immediately [Taiga #4709](https://tree.taiga.io/project/penpot/issue/4709)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,8 @@
|
||||||
adv-blur-ref (mf/use-ref nil)
|
adv-blur-ref (mf/use-ref nil)
|
||||||
adv-spread-ref (mf/use-ref nil)
|
adv-spread-ref (mf/use-ref nil)
|
||||||
|
|
||||||
|
shadow-style (str (:style value))
|
||||||
|
|
||||||
remove-shadow-by-index
|
remove-shadow-by-index
|
||||||
(fn [values index] (->> (d/enumerate values)
|
(fn [values index] (->> (d/enumerate values)
|
||||||
(filterv (fn [[idx _]] (not= idx index)))
|
(filterv (fn [[idx _]] (not= idx index)))
|
||||||
|
@ -116,12 +118,12 @@
|
||||||
;; :value (:blur value)}]
|
;; :value (:blur value)}]
|
||||||
|
|
||||||
[:select.input-select
|
[:select.input-select
|
||||||
{:default-value (str (:style value))
|
{:default-value shadow-style
|
||||||
:on-change (fn [event]
|
:on-change (fn [event]
|
||||||
(let [value (-> event dom/get-target dom/get-value d/read-string)]
|
(let [value (-> event dom/get-target dom/get-value d/read-string)]
|
||||||
(st/emit! (dch/update-shapes ids #(assoc-in % [:shadow index :style] value)))))}
|
(st/emit! (dch/update-shapes ids #(assoc-in % [:shadow index :style] value)))))}
|
||||||
[:option {:value ":drop-shadow"} (tr "workspace.options.shadow-options.drop-shadow")]
|
[:option {:value ":drop-shadow" :selected (when (= shadow-style ":drop-shadow") "selected")} (tr "workspace.options.shadow-options.drop-shadow")]
|
||||||
[:option {:value ":inner-shadow"} (tr "workspace.options.shadow-options.inner-shadow")]]
|
[:option {:value ":inner-shadow" :selected (when (= shadow-style ":inner-shadow") "selected")} (tr "workspace.options.shadow-options.inner-shadow")]]
|
||||||
|
|
||||||
[:div.element-set-actions
|
[:div.element-set-actions
|
||||||
[:div.element-set-actions-button {:on-click (toggle-visibility index)}
|
[:div.element-set-actions-button {:on-click (toggle-visibility index)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue