fix: resize Font Awesome icon (#1897)

This commit is contained in:
takumi9942 2020-05-21 13:04:15 +09:00 committed by GitHub
parent 5c2c312c5c
commit bb21f6ed3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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"'

View File

@ -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 }}