🐛 Fix asset icon (#9612)

This commit is contained in:
Belén Albeza 2026-05-14 12:56:54 +02:00 committed by GitHub
parent 78e3077a37
commit f62ee7d1ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 12 deletions

View File

@ -325,13 +325,16 @@
(let [size-px (cond (= size "l") icon-size-l
(= size "s") icon-size-s
:else icon-size-m)
offset (if (or (= size "s") (= size "m"))
(/ (- icon-size-m size-px) 2)
0)
props (mf/spread-props props
{:class [class (stl/css :icon)]
:width size-px
:height size-px})]
:width (max icon-size-m size-px)
:height (max icon-size-m size-px)})]
[:> :svg props
[:use {:href (dm/str "#icon-" icon-id)
:x offset
:y offset
:width size-px
:height size-px}]]))

View File

@ -96,14 +96,6 @@
height: deprecated.$s-32;
width: deprecated.$s-24;
padding: 0 deprecated.$s-4 0 deprecated.$s-8;
svg {
@extend %button-icon-small;
color: transparent;
fill: none;
stroke: var(--icon-foreground);
}
}
.page-actions {