🐛 Fix typography.cljs error from staging merge

This commit is contained in:
Alejandro Alonso 2026-09-03 12:34:54 +02:00
parent 37f1d3f0fd
commit 7b26949c76

View File

@ -221,15 +221,6 @@
:role "img"
:aria-label (:name font)}
[: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`
;; itself: that class carries its own `overflow: hidden` (from the
;; text-ellipsis mixin, needed to truncate long font names), and a
@ -242,7 +233,6 @@
:transform (when-not (zero? label-offset)
(dm/str "translateY(" label-offset "em)"))}}
(:name font)]])))
>>>>>>> origin/staging
(mf/defc font-item*
{::mf/wrap [mf/memo]}