Unverified Commit bb21f6ed authored by takumi9942's avatar takumi9942 Committed by GitHub

fix: resize Font Awesome icon (#1897)

parent 5c2c312c
...@@ -95,7 +95,9 @@ ...@@ -95,7 +95,9 @@
:class='(navItem === current) ? "blue" : ""' :class='(navItem === current) ? "blue" : ""'
@click='selectItem(navItem)' @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}} v-list-item-title {{navItem.label}}
.py-2.clickable( .py-2.clickable(
v-else-if='navItem.kind === "divider"' v-else-if='navItem.kind === "divider"'
......
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
:rel='item.y === `externalblank` ? `noopener` : ``' :rel='item.y === `externalblank` ? `noopener` : ``'
) )
v-list-item-avatar(size='24', tile) 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-list-item-title {{ item.l }}
v-divider.my-2(v-else-if='item.k === `divider`') v-divider.my-2(v-else-if='item.k === `divider`')
v-subheader.pl-4(v-else-if='item.k === `header`') {{ item.l }} v-subheader.pl-4(v-else-if='item.k === `header`') {{ item.l }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment