💄 Add fa-fw to icons by default to fix variable width icons

Fixes #93
This commit is contained in:
Gabe Cook 2020-06-25 17:54:18 -05:00
parent 796a16c8da
commit da6e676d6e
No known key found for this signature in database
GPG Key ID: 3197318BDE319B8D
5 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@
<div v-cloak class="container">
<div class="logo">
<img v-if="config.logo" :src="config.logo" alt="dashboard logo" />
<i v-if="config.icon" :class="config.icon"></i>
<i v-if="config.icon" :class="['fa-fw', config.icon]"></i>
</div>
<div class="dashboard-title">
<span class="headline">{{ config.subtitle }}</span>
@ -61,7 +61,7 @@
<div v-if="!vlayout || filter" class="columns is-multiline">
<template v-for="group in services">
<h2 v-if="group.name" class="column is-full group-title">
<i v-if="group.icon" :class="group.icon"></i>
<i v-if="group.icon" :class="['fa-fw', group.icon]"></i>
{{ group.name }}
</h2>
<Service
@ -84,7 +84,7 @@
:key="group.name"
>
<h2 v-if="group.name" class="group-title">
<i v-if="group.icon" :class="group.icon"></i>
<i v-if="group.icon" :class="['fa-fw', group.icon]"></i>
{{ group.name }}
</h2>
<Service

View File

@ -4,7 +4,7 @@
aria-label="Toggle dark mode"
class="navbar-item is-inline-block-mobile"
>
<i class="fas fa-adjust"></i>
<i class="fas fa-fw fa-adjust"></i>
</a>
</template>

View File

@ -29,7 +29,7 @@
<i
v-if="link.icon"
style="margin-right: 6px;"
:class="link.icon"
:class="['fa-fw', link.icon]"
></i>
{{ link.name }}
</a>

View File

@ -11,7 +11,7 @@
</div>
<div v-if="item.icon" class="media-left">
<figure class="image is-48x48">
<i style="font-size: 35px;" :class="item.icon"></i>
<i style="font-size: 35px;" :class="['fa-fw', item.icon]"></i>
</figure>
</div>
<div class="media-content">

View File

@ -1,6 +1,6 @@
<template>
<a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile">
<span><i :class="['fas', value ? icon : iconAlt]"></i></span>
<span><i :class="['fas', 'fa-fw', value ? icon : iconAlt]"></i></span>
<slot></slot>
</a>
</template>