diff --git a/CHANGES.md b/CHANGES.md index 7c0dbac62d..5afb9611d1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -24,11 +24,12 @@ ### :sparkles: New features - Viewer role for team members [Taiga #1056 & #6590](https://tree.taiga.io/project/penpot/us/1056 & https://tree.taiga.io/project/penpot/us/6590) -- File history versions management [Taiga](https://tree.taiga.io/project/penpot/us/187?milestone=411120) +- File history versions management [Taiga #187](https://tree.taiga.io/project/penpot/us/187?milestone=411120) - Rename selected layer via keyboard shortcut and context menu option [Taiga #8882](https://tree.taiga.io/project/penpot/us/8882) ### :bug: Bugs fixed +- Fix problem with some texts desynchronization [Taiga #9379](https://tree.taiga.io/project/penpot/issue/9379) ## 2.3.3 diff --git a/frontend/src/app/main/ui/shapes/text/styles.cljs b/frontend/src/app/main/ui/shapes/text/styles.cljs index a65daafc64..67c3a03562 100644 --- a/frontend/src/app/main/ui/shapes/text/styles.cljs +++ b/frontend/src/app/main/ui/shapes/text/styles.cljs @@ -49,11 +49,16 @@ (defn generate-paragraph-styles [_shape data] - (let [line-height (:line-height data 1.2) + (let [line-height (:line-height data) + line-height + (if (and (some? line-height) (not= "" line-height)) + line-height + (:line-height txt/default-text-attrs)) + text-align (:text-align data "start") base #js {;; Fix a problem when exporting HTML :fontSize 0 ;;(str (:font-size data (:font-size txt/default-text-attrs)) "px") - :lineHeight (:line-height data (:line-height txt/default-text-attrs)) + :lineHeight line-height :margin 0}] (cond-> base