mirror of
https://github.com/penpot/penpot.git
synced 2026-07-22 22:17:58 +00:00
🐛 Fix auto height is fixed in the HTML inspect tab for text elements (#7078)
This commit is contained in:
parent
0131cd6f8b
commit
8e0a6e4123
@ -58,6 +58,7 @@
|
||||
- Fix export button width on inspect tab [Taiga #11394](https://tree.taiga.io/project/penpot/issue/11394)
|
||||
- Fix stroke width token application [Taiga #11724](https://tree.taiga.io/project/penpot/issue/11724)
|
||||
- Fix number token application on shape [Taiga #11331](https://tree.taiga.io/project/penpot/task/11331)
|
||||
- Fix auto height is fixed in the HTML inspect tab for text elements [Taiga #11680](https://tree.taiga.io/project/penpot/task/11680)
|
||||
|
||||
## 2.8.1
|
||||
|
||||
|
||||
@ -116,13 +116,17 @@
|
||||
(let [root? (contains? (:root-shapes options) (:id shape))]
|
||||
(if (and root? (ctl/any-layout? shape))
|
||||
:fill
|
||||
(get-shape-size shape objects :width))))
|
||||
;; Don't set fixed width for auto-width text shapes
|
||||
(when-not (and (cfh/text-shape? shape) (= (:grow-type shape) :auto-width))
|
||||
(get-shape-size shape objects :width)))))
|
||||
|
||||
(defmethod get-value :height
|
||||
[_ shape objects options]
|
||||
(let [root? (contains? (:root-shapes options) (:id shape))]
|
||||
(when-not (and root? (ctl/any-layout? shape))
|
||||
(get-shape-size shape objects :height))))
|
||||
;; Don't set fixed height for auto-height text shapes
|
||||
(when-not (and (cfh/text-shape? shape) (= (:grow-type shape) :auto-height))
|
||||
(get-shape-size shape objects :height)))))
|
||||
|
||||
(defmethod get-value :flex-grow
|
||||
[_ shape _ options]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user