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 Menu() {
export function Menu({ 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="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" />
</svg>