0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fixes problem when shrinking text

This commit is contained in:
alonso.torres 2021-02-11 17:26:02 +01:00
parent 521ccc25cf
commit cf465d93f9

View file

@ -39,11 +39,16 @@
;; the property it's known.
;; `inline-flex` is similar to flex but `overflows` outside the bounds of the
;; 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"
:justify-content "inherit"
:min-height "100%"
:min-width "100%"
:min-height (when-not (or auto-width? auto-height?) "100%")
:min-width (when-not auto-width? "100%")
:vertical-align "top"}]
base)))