mirror of
https://github.com/penpot/penpot.git
synced 2026-06-01 21:20:18 +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
|
(let [size-px (cond (= size "l") icon-size-l
|
||||||
(= size "s") icon-size-s
|
(= size "s") icon-size-s
|
||||||
:else icon-size-m)
|
:else icon-size-m)
|
||||||
|
offset (if (or (= size "s") (= size "m"))
|
||||||
|
(/ (- icon-size-m size-px) 2)
|
||||||
|
0)
|
||||||
props (mf/spread-props props
|
props (mf/spread-props props
|
||||||
{:class [class (stl/css :icon)]
|
{:class [class (stl/css :icon)]
|
||||||
:width size-px
|
:width (max icon-size-m size-px)
|
||||||
:height size-px})]
|
:height (max icon-size-m size-px)})]
|
||||||
|
|
||||||
[:> :svg props
|
[:> :svg props
|
||||||
[:use {:href (dm/str "#icon-" icon-id)
|
[:use {:href (dm/str "#icon-" icon-id)
|
||||||
|
:x offset
|
||||||
|
:y offset
|
||||||
:width size-px
|
:width size-px
|
||||||
:height size-px}]]))
|
:height size-px}]]))
|
||||||
|
|||||||
@ -96,14 +96,6 @@
|
|||||||
height: deprecated.$s-32;
|
height: deprecated.$s-32;
|
||||||
width: deprecated.$s-24;
|
width: deprecated.$s-24;
|
||||||
padding: 0 deprecated.$s-4 0 deprecated.$s-8;
|
padding: 0 deprecated.$s-4 0 deprecated.$s-8;
|
||||||
|
|
||||||
svg {
|
|
||||||
@extend %button-icon-small;
|
|
||||||
|
|
||||||
color: transparent;
|
|
||||||
fill: none;
|
|
||||||
stroke: var(--icon-foreground);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-actions {
|
.page-actions {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user