Skip to content

Commit

Permalink
Fix fa-fw icon width in navbar (#3075)
Browse files Browse the repository at this point in the history
FontAwesome defines .fa-fw to have width 1.25em. With the previous 1/1
ratio, the icon flows over to the text to the right. Use margin-right for
other icons to align.
  • Loading branch information
robinkar authored Sep 27, 2023
1 parent a616727 commit 6803b7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/dashboard/app/javascript/stylesheets/apps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ tr.app {
font-size: 14px;
}

.app-icon.fa-fw {
width: 1.25em;
}

.app-icon:not(.fa-fw) {
margin-right: 0.25em;
}

.navbar img.menu-icon {
width: 14px;
height: 14px;
Expand Down

0 comments on commit 6803b7b

Please sign in to comment.