mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-22 10:52:16 +00:00
Fixed Image in Button getting squished
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
bf7b3a0d79
commit
cfd33ab0d6
@ -172,3 +172,6 @@ btn($color, $theme)
|
|||||||
|
|
||||||
100%
|
100%
|
||||||
transform rotate(365deg)
|
transform rotate(365deg)
|
||||||
|
|
||||||
|
.img
|
||||||
|
min-width 16px
|
@ -33,7 +33,7 @@ export default class Button extends React.Component<Props> {
|
|||||||
inner = (
|
inner = (
|
||||||
<>
|
<>
|
||||||
{typeof Icon === 'string' ? (
|
{typeof Icon === 'string' ? (
|
||||||
<Image src={Icon} width={16} height={16} />
|
<Image className={css.img} src={Icon} width={16} height={16} />
|
||||||
) : (
|
) : (
|
||||||
<Icon size={16} />
|
<Icon size={16} />
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user