fix(web): svgs may need explicit height/width in rare cases on linux

This commit is contained in:
Paul Armstrong
2021-02-08 13:35:41 -08:00
committed by Blake Blackshear
parent d2e7c360b9
commit 24ec13e36d
10 changed files with 20 additions and 20 deletions

View File

@@ -1,9 +1,9 @@
import { h } from 'preact';
import { memo } from 'preact/compat';
export function AutoAwesome() {
export function AutoAwesome({ className = '' }) {
return (
<svg className="fill-current" viewBox="0 0 24 24">
<svg className={`fill-current ${className}`} viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none" />
<path d="M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z" />
</svg>