From 237724b8ac2ed4b611dcb197825104c2c30c42d7 Mon Sep 17 00:00:00 2001
From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com>
Date: Thu, 25 Sep 2025 14:07:36 -0400
Subject: [PATCH] Restore sidebar footer toggle
---
components/sidebar.html | 358 ++++++++++++++++++++--------------------
1 file changed, 179 insertions(+), 179 deletions(-)
diff --git a/components/sidebar.html b/components/sidebar.html
index 21180f22..de61c597 100644
--- a/components/sidebar.html
+++ b/components/sidebar.html
@@ -45,178 +45,181 @@
-
-
-
-
-
-
-
-
-
@@ -228,18 +231,15 @@
if (btn && footerLinks) {
btn.addEventListener("click", function () {
footerLinks.classList.toggle("hidden");
+ var isHidden = footerLinks.classList.contains("hidden");
+ btn.setAttribute("aria-expanded", String(!isHidden));
var icon = document.getElementById("footerDropdownIcon");
var textSpan = document.getElementById("footerDropdownText");
- if (footerLinks.classList.contains("hidden")) {
- textSpan.textContent = "More";
- if (icon) {
- icon.classList.remove("rotate-180");
- }
- } else {
- textSpan.textContent = "Less";
- if (icon) {
- icon.classList.add("rotate-180");
- }
+ if (textSpan) {
+ textSpan.textContent = isHidden ? "More" : "Less";
+ }
+ if (icon) {
+ icon.classList.toggle("rotate-180", !isHidden);
}
});
}