mirror of
https://github.com/penpot/penpot.git
synced 2025-05-07 12:35:55 +02:00
🐛 Fix problem when changing typography assets
This commit is contained in:
parent
4f01a63771
commit
f32aaee41f
3 changed files with 31 additions and 16 deletions
|
@ -129,6 +129,7 @@
|
||||||
- Fix problem with linked colors to strokes [Github #3522](https://github.com/penpot/penpot/issues/3522)
|
- Fix problem with linked colors to strokes [Github #3522](https://github.com/penpot/penpot/issues/3522)
|
||||||
- Fix problem with hand tool stuck [Github #3318](https://github.com/penpot/penpot/issues/3318)
|
- Fix problem with hand tool stuck [Github #3318](https://github.com/penpot/penpot/issues/3318)
|
||||||
- Fix problem with fix scrolling on nested elements [Github #3508](https://github.com/penpot/penpot/issues/3508)
|
- Fix problem with fix scrolling on nested elements [Github #3508](https://github.com/penpot/penpot/issues/3508)
|
||||||
|
- Fix problem when changing typography assets [Github #3683](https://github.com/penpot/penpot/issues/3683)
|
||||||
|
|
||||||
|
|
||||||
## 1.19.5
|
## 1.19.5
|
||||||
|
|
|
@ -464,21 +464,35 @@
|
||||||
[changes shape container update-node]
|
[changes shape container update-node]
|
||||||
(let [old-content (:content shape)
|
(let [old-content (:content shape)
|
||||||
new-content (txt/transform-nodes update-node old-content)
|
new-content (txt/transform-nodes update-node old-content)
|
||||||
|
|
||||||
|
redo-change
|
||||||
|
(make-change
|
||||||
|
container
|
||||||
|
{:type :mod-obj
|
||||||
|
:id (:id shape)
|
||||||
|
:operations [{:type :set
|
||||||
|
:attr :content
|
||||||
|
:val new-content}
|
||||||
|
{:type :set
|
||||||
|
:attr :position-data
|
||||||
|
:val nil}]})
|
||||||
|
|
||||||
|
undo-change
|
||||||
|
(make-change
|
||||||
|
container
|
||||||
|
{:type :mod-obj
|
||||||
|
:id (:id shape)
|
||||||
|
:operations [{:type :set
|
||||||
|
:attr :content
|
||||||
|
:val old-content}
|
||||||
|
{:type :set
|
||||||
|
:attr :position-data
|
||||||
|
:val nil}]})
|
||||||
|
|
||||||
changes' (-> changes
|
changes' (-> changes
|
||||||
(update :redo-changes conj (make-change
|
(update :redo-changes conj redo-change)
|
||||||
container
|
(update :undo-changes conj undo-change))]
|
||||||
{:type :mod-obj
|
|
||||||
:id (:id shape)
|
|
||||||
:operations [{:type :set
|
|
||||||
:attr :content
|
|
||||||
:val new-content}]}))
|
|
||||||
(update :undo-changes conj (make-change
|
|
||||||
container
|
|
||||||
{:type :mod-obj
|
|
||||||
:id (:id shape)
|
|
||||||
:operations [{:type :set
|
|
||||||
:attr :content
|
|
||||||
:val old-content}]})))]
|
|
||||||
(if (= new-content old-content)
|
(if (= new-content old-content)
|
||||||
changes
|
changes
|
||||||
changes')))
|
changes')))
|
||||||
|
|
|
@ -988,7 +988,7 @@ msgid "errors.webhooks.invalid-uri"
|
||||||
msgstr "URL does not pass validation."
|
msgstr "URL does not pass validation."
|
||||||
|
|
||||||
msgid "errors.webhooks.last-delivery"
|
msgid "errors.webhooks.last-delivery"
|
||||||
msgstr "Last delivery was not successfull."
|
msgstr "Last delivery was not successful."
|
||||||
|
|
||||||
msgid "errors.webhooks.ssl-validation"
|
msgid "errors.webhooks.ssl-validation"
|
||||||
msgstr "Error on SSL validation."
|
msgstr "Error on SSL validation."
|
||||||
|
@ -3144,7 +3144,7 @@ msgid "viewer.header.sitemap"
|
||||||
msgstr "Sitemap"
|
msgstr "Sitemap"
|
||||||
|
|
||||||
msgid "webhooks.last-delivery.success"
|
msgid "webhooks.last-delivery.success"
|
||||||
msgstr "Last delivery was successfull."
|
msgstr "Last delivery was successful."
|
||||||
|
|
||||||
#: src/app/main/ui/workspace/sidebar/align.cljs
|
#: src/app/main/ui/workspace/sidebar/align.cljs
|
||||||
msgid "workspace.align.hcenter"
|
msgid "workspace.align.hcenter"
|
||||||
|
|
Loading…
Add table
Reference in a new issue