mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 14:39:35 +00:00
🐛 Fix typography.cljs error from staging merge
This commit is contained in:
parent
37f1d3f0fd
commit
7b26949c76
@ -221,15 +221,6 @@
|
|||||||
:role "img"
|
:role "img"
|
||||||
:aria-label (:name font)}
|
:aria-label (:name font)}
|
||||||
[:use {:href (dm/str "#" fonts/preview-sprite-prefix font-id)}]]
|
[:use {:href (dm/str "#" fonts/preview-sprite-prefix font-id)}]]
|
||||||
<<<<<<< HEAD
|
|
||||||
[:span {:class (stl/css :font-item-label)
|
|
||||||
:style (cond-> {}
|
|
||||||
loaded?
|
|
||||||
(assoc :font-family (dm/str "\"" (:family font) "\", sans-serif"))
|
|
||||||
(not (zero? label-offset))
|
|
||||||
(assoc :transform (dm/str "translateY(" label-offset "em)")))}
|
|
||||||
(:name font)])))
|
|
||||||
=======
|
|
||||||
;; The vertical correction goes on an INNER span, not on `.font-item-label`
|
;; The vertical correction goes on an INNER span, not on `.font-item-label`
|
||||||
;; itself: that class carries its own `overflow: hidden` (from the
|
;; itself: that class carries its own `overflow: hidden` (from the
|
||||||
;; text-ellipsis mixin, needed to truncate long font names), and a
|
;; text-ellipsis mixin, needed to truncate long font names), and a
|
||||||
@ -242,7 +233,6 @@
|
|||||||
:transform (when-not (zero? label-offset)
|
:transform (when-not (zero? label-offset)
|
||||||
(dm/str "translateY(" label-offset "em)"))}}
|
(dm/str "translateY(" label-offset "em)"))}}
|
||||||
(:name font)]])))
|
(:name font)]])))
|
||||||
>>>>>>> origin/staging
|
|
||||||
|
|
||||||
(mf/defc font-item*
|
(mf/defc font-item*
|
||||||
{::mf/wrap [mf/memo]}
|
{::mf/wrap [mf/memo]}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user