mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 00:16:10 +02:00
🐛 Fixes problem when shrinking text
This commit is contained in:
parent
521ccc25cf
commit
cf465d93f9
1 changed files with 8 additions and 3 deletions
|
@ -39,11 +39,16 @@
|
||||||
;; the property it's known.
|
;; the property it's known.
|
||||||
;; `inline-flex` is similar to flex but `overflows` outside the bounds of the
|
;; `inline-flex` is similar to flex but `overflows` outside the bounds of the
|
||||||
;; parent
|
;; parent
|
||||||
(let [base #js {:display "inline-flex"
|
(let [shape (obj/get props "shape")
|
||||||
|
grow-type (:grow-type shape)
|
||||||
|
auto-width? (= grow-type :auto-width)
|
||||||
|
auto-height? (= grow-type :auto-height)
|
||||||
|
|
||||||
|
base #js {:display "inline-flex"
|
||||||
:flex-direction "column"
|
:flex-direction "column"
|
||||||
:justify-content "inherit"
|
:justify-content "inherit"
|
||||||
:min-height "100%"
|
:min-height (when-not (or auto-width? auto-height?) "100%")
|
||||||
:min-width "100%"
|
:min-width (when-not auto-width? "100%")
|
||||||
:vertical-align "top"}]
|
:vertical-align "top"}]
|
||||||
base)))
|
base)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue