diff options
| author | Henry Jameson <me@hjkos.com> | 2020-10-28 21:31:16 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-10-28 21:31:16 +0200 |
| commit | b6cf2bcefd5ddd20c11ee4b0d0f94e29e8f59c40 (patch) | |
| tree | 256acfc82023d3c15c6dcba9708464db50ed981a /src/components/nav_panel/nav_panel.vue | |
| parent | eb04ed865e1afd7cede44017deb13298a8aa76dd (diff) | |
improved the semantics for our icon scale, fixed preview, fixed navbar desktop
Diffstat (limited to 'src/components/nav_panel/nav_panel.vue')
| -rw-r--r-- | src/components/nav_panel/nav_panel.vue | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue index 4755d7b7..e7301328 100644 --- a/src/components/nav_panel/nav_panel.vue +++ b/src/components/nav_panel/nav_panel.vue @@ -9,22 +9,18 @@ > <FAIcon fixed-width - size="lg" - class="button-icon" + class="fa-scale-110" icon="home" - /> - {{ $t("nav.timelines") }} + />{{ $t("nav.timelines") }} </router-link> </li> <li v-if="currentUser"> <router-link :to="{ name: 'interactions', params: { username: currentUser.screen_name } }"> <FAIcon fixed-width - size="lg" - class="button-icon" + class="fa-scale-110" icon="bell" - /> - {{ $t("nav.interactions") }} + />{{ $t("nav.interactions") }} </router-link> </li> <li v-if="currentUser && pleromaChatMessagesAvailable"> @@ -37,22 +33,18 @@ </div> <FAIcon fixed-width - size="lg" - class="button-icon" + class="fa-scale-110" icon="comments" - /> - {{ $t("nav.chats") }} + />{{ $t("nav.chats") }} </router-link> </li> <li v-if="currentUser && currentUser.locked"> <router-link :to="{ name: 'friend-requests' }"> <FAIcon fixed-width - size="lg" - class="button-icon" + class="fa-scale-110" icon="user-plus" - /> - {{ $t("nav.friend_requests") }} + />{{ $t("nav.friend_requests") }} <span v-if="followRequestCount > 0" class="badge follow-request-count" @@ -65,8 +57,7 @@ <router-link :to="{ name: 'about' }"> <FAIcon fixed-width - size="lg" - class="button-icon" + class="fa-scale-110" icon="info-circle" />{{ $t("nav.about") }} </router-link> @@ -94,7 +85,7 @@ } .follow-request-count { - margin: -6px 10px; + vertical-align: bottom; background-color: $fallback--bg; background-color: var(--input, $fallback--faint); } @@ -126,7 +117,8 @@ a { display: block; - padding: 0.8em 0.85em; + align-items: stretch; + padding: 0.9em 1em; &:hover { background-color: $fallback--lightBg; @@ -156,13 +148,8 @@ } } - .button-icon { - margin-left: -0.1em; - margin-right: 0.2em; - } - - .button-icon:before { - width: 1.1em; + .fa-scale-110 { + margin-right: 0.8em; } } </style> |
