Skip to content

Commit b73039f

Browse files
committed
fix: remove extra sidebar close button
1 parent 284d7fb commit b73039f

3 files changed

Lines changed: 0 additions & 28 deletions

File tree

web-app/css/styles.css

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -731,24 +731,6 @@ body.sidebar-active .sidebar-dock {
731731
}
732732

733733

734-
.sidebar-mobile-close {
735-
display: none;
736-
position: absolute;
737-
top: 16px;
738-
right: 16px;
739-
width: 36px;
740-
height: 36px;
741-
border: none;
742-
border-radius: 50%;
743-
background: var(--bg-glass);
744-
color: var(--text-primary);
745-
font-size: 16px;
746-
align-items: center;
747-
justify-content: center;
748-
cursor: pointer;
749-
z-index: 1001;
750-
}
751-
752734
.sidebar-backdrop {
753735
display: none;
754736
position: fixed;
@@ -4518,9 +4500,6 @@ button:focus-visible,
45184500
}
45194501

45204502
@media (max-width: 768px) {
4521-
.sidebar-mobile-close {
4522-
display: flex;
4523-
}
45244503

45254504
body.sidebar-active .sidebar-backdrop {
45264505
display: block;

web-app/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
<div aria-hidden="true" class="cursor-glow" id="cursorGlow"></div>
5555

5656
<aside class="sidebar-dock" id="mainSidebar">
57-
<button class="sidebar-mobile-close" id="sidebarMobileClose" aria-label="Close sidebar" type="button">
58-
<i class="fas fa-times" aria-hidden="true"></i>
59-
</button>
6057
<div class="sidebar-search">
6158
<div class="search-box" style="position: relative">
6259
<i class="fas fa-search" aria-hidden="true"></i>

web-app/js/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ document.addEventListener("DOMContentLoaded", function () {
410410
});
411411
}
412412

413-
var sidebarMobileClose = document.getElementById("sidebarMobileClose");
414413
var sidebarBackdrop = document.getElementById("sidebarBackdrop");
415414

416415
function closeMobileSidebar() {
@@ -437,9 +436,6 @@ document.addEventListener("DOMContentLoaded", function () {
437436
closeMobileSidebar();
438437
}
439438

440-
if (sidebarMobileClose) {
441-
sidebarMobileClose.addEventListener("click", closeMobileSidebar);
442-
}
443439
if (sidebarBackdrop) {
444440
sidebarBackdrop.addEventListener("click", closeMobileSidebar);
445441
}

0 commit comments

Comments
 (0)