mirror of
https://github.com/penpot/penpot.git
synced 2026-05-14 20:43:55 +00:00
🐛 Fix asset icon (#9612)
This commit is contained in:
parent
78e3077a37
commit
f62ee7d1ae
@ -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}]]))
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user