fix: resize Font Awesome icon (#1897)

pull/1916/head
takumi9942 5 years ago committed by GitHub
parent 5c2c312c5c
commit bb21f6ed3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,7 +95,9 @@
:class='(navItem === current) ? "blue" : ""'
@click='selectItem(navItem)'
)
v-list-item-avatar(size='24', tile): v-icon {{navItem.icon}}
v-list-item-avatar(size='24', tile)
v-icon(v-if='navItem.icon.match(/fa[a-z] fa-/)', size='19') {{ navItem.icon }}
v-icon(v-else) {{ navItem.icon }}
v-list-item-title {{navItem.label}}
.py-2.clickable(
v-else-if='navItem.kind === "divider"'

@ -20,7 +20,8 @@
:rel='item.y === `externalblank` ? `noopener` : ``'
)
v-list-item-avatar(size='24', tile)
v-icon {{ item.c }}
v-icon(v-if='item.c.match(/fa[a-z] fa-/)', size='19') {{ item.c }}
v-icon(v-else) {{ item.c }}
v-list-item-title {{ item.l }}
v-divider.my-2(v-else-if='item.k === `divider`')
v-subheader.pl-4(v-else-if='item.k === `header`') {{ item.l }}

Loading…
Cancel
Save