Skip to content

Commit

Permalink
Update icon for channels button on side nav (#5273)
Browse files Browse the repository at this point in the history
* * Update icon for channels button on side nav

* * Reduce size of new icon

* * Align new icon manually

* * Update mobile menu item icon
  • Loading branch information
PikachuEXE authored Jul 25, 2024
1 parent 0e72be4 commit 0ac277a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
margin-block-start: 0.5em;
}

.navIcon.fa-user-check {
/* Align icon according to torso */
transform: translateX(0.2em);
}

.moreOption {
display: block;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
class="thumbnailContainer"
>
<font-awesome-icon
:icon="['fas', 'list']"
:icon="['fas', 'user-check']"
class="navIcon"
:class="applyNavIconExpand"
fixed-width
Expand Down
16 changes: 16 additions & 0 deletions src/renderer/components/side-nav/side-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,19 @@
}

.navIcon {
block-size: 1em;
inline-size: 1.25em;
margin-inline-start: 10px;
}

.navIcon.fa-user-check {
/* This icon is too big by default */
inline-size: 1em;

/* Align icon according to torso */
transform: translateX(0.2em);
}

.navChannel .navLabel {
overflow: hidden;
margin-inline-start: 40px;
Expand All @@ -94,6 +104,7 @@
position: absolute;
inset-block-start: 50%;
transform: translateY(-50%);
text-align: center;
}

.channelThumbnail {
Expand Down Expand Up @@ -139,6 +150,11 @@
block-size: 1.3em;
}

.closed .navIconExpand.fa-user-check {
/* This icon is too big by default */
block-size: 1.15em;
}

.closed .navLabel {
margin-inline-start: 0;
inline-size: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/side-nav/side-nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
class="thumbnailContainer"
>
<font-awesome-icon
:icon="['fas', 'list']"
:icon="['fas', 'user-check']"
class="navIcon"
:class="applyNavIconExpand"
fixed-width
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ import {
faTimes,
faTimesCircle,
faTrash,
faUserCheck,
faUsers,
faUsersSlash,
} from '@fortawesome/free-solid-svg-icons'
Expand Down Expand Up @@ -187,6 +188,7 @@ library.add(
faTimes,
faTimesCircle,
faTrash,
faUserCheck,
faUsers,
faUsersSlash,

Expand Down

0 comments on commit 0ac277a

Please sign in to comment.