Skip to content

Commit

Permalink
Change hamburger menu icon to angle icons
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Aug 12, 2022
1 parent aa17619 commit d2ca833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/pi-hole/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,3 +1210,9 @@ $(function () {
window.addEventListener("resize", function () {
$(".chartjs-tooltip").remove();
});

// change sidebar icon on collapse/expand
$(".sidebar-toggle-svg").click(function () {
$(this).find("svg").toggleClass("fa-angle-double-left fa-angle-double-right");
});

2 changes: 1 addition & 1 deletion scripts/pi-hole/php/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function getTemperature()
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle-svg" data-toggle="push-menu" role="button">
<i aria-hidden="true" class="fa fa-bars"></i>
<i aria-hidden="true" class="fa fa-angle-double-left"></i>
<span class="sr-only">Toggle navigation</span>
<span class="warning-count hidden" id="top-warning-count"></span>
</a>
Expand Down

0 comments on commit d2ca833

Please sign in to comment.