Fixed Image in Button getting squished

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-04-04 23:01:28 +02:00
parent bf7b3a0d79
commit cfd33ab0d6
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6
2 changed files with 4 additions and 1 deletions

View File

@ -172,3 +172,6 @@ btn($color, $theme)
100%
transform rotate(365deg)
.img
min-width 16px

View File

@ -33,7 +33,7 @@ export default class Button extends React.Component<Props> {
inner = (
<>
{typeof Icon === 'string' ? (
<Image src={Icon} width={16} height={16} />
<Image className={css.img} src={Icon} width={16} height={16} />
) : (
<Icon size={16} />
)}