🐛 Fix setting a portion of text as bold or underline messes things up

This commit is contained in:
Alejandro Alonso 2025-12-30 11:09:56 +01:00 committed by Alonso Torres
parent d3ee50daf5
commit 48e3f35bb3
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG # CHANGELOG
## 2.12.1
### :bug: Bugs fixed
- Fix setting a portion of text as bold or underline messes things up [Github #7980](https://github.com/penpot/penpot/issues/7980)
## 2.12.0 ## 2.12.0
### :boom: Breaking changes & Deprecations ### :boom: Breaking changes & Deprecations

View File

@ -106,9 +106,11 @@
:overflowWrap "initial" :overflowWrap "initial"
:lineBreak "auto" :lineBreak "auto"
:whiteSpace "break-spaces" :whiteSpace "break-spaces"
:textRendering "geometricPrecision" :textRendering "geometricPrecision"}
:display "inline-block" base (cond-> base
:verticalAlign "top"} (= (:line-height data) "0")
(-> (obj/set! "display" "inline-block")
(obj/set! "verticalAlign" "top")))
fills fills
(cond (cond
;; DEPRECATED: still here for backward compatibility with ;; DEPRECATED: still here for backward compatibility with