0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

🐛 Fix problem when export not getting new change

This commit is contained in:
alonso.torres 2024-02-01 10:32:44 +01:00
parent 334d1fd9b3
commit b0d723282b
4 changed files with 14 additions and 0 deletions

View file

@ -111,6 +111,7 @@
shadow-width
(->> (:shadow shape)
(remove :hidden)
(map #(case (:style % :drop-shadow)
:drop-shadow (+ (mth/abs (:offset-x %)) (* (:spread %) 2) (* (:blur %) 2) 10)
0))
@ -118,6 +119,7 @@
shadow-height
(->> (:shadow shape)
(remove :hidden)
(map #(case (:style % :drop-shadow)
:drop-shadow (+ (mth/abs (:offset-y %)) (* (:spread %) 2) (* (:blur %) 2) 10)
0))

View file

@ -10,6 +10,7 @@
[app.main.data.modal :as modal]
[app.main.data.workspace.persistence :as dwp]
[app.main.data.workspace.state-helpers :as wsh]
[app.main.refs :as refs]
[app.main.repo :as rp]
[app.main.store :as st]
[app.util.dom :as dom]
@ -166,6 +167,13 @@
:wait true}]
(rx/concat
(rx/of ::dwp/force-persist)
;; Wait the persist to be succesfull
(->> (rx/from-atom refs/persistence-state {:emit-current-value? true})
(rx/filter #(or (nil? %) (= :saved %)))
(rx/first)
(rx/timeout 400 (rx/empty)))
(->> (rp/cmd! :export params)
(rx/mapcat (fn [{:keys [id filename]}]
(->> (rp/cmd! :export {:cmd :get-resource :blob? true :id id})

View file

@ -591,3 +591,6 @@
(def updating-library
(l/derived :updating-library st/state))
(def persistence-state
(l/derived (comp :status :workspace-persistence) st/state))

View file

@ -57,6 +57,7 @@
width: 100%;
height: fit-content;
text-align: left;
border: 1px solid transparent;
.icon-btn {
position: absolute;
display: flex;