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 MenuOpen() {
export function MenuOpen({ className = '' }) {
return (
<svg className="fill-current" viewBox="0 0 24 24">
<svg className={`fill-current ${className}`} viewBox="0 0 24 24">
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M3 18h13v-2H3v2zm0-5h10v-2H3v2zm0-7v2h13V6H3zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5L21 15.59z" />
</svg>