From 82d1cbd2b2988f54e6bf07bbd44ed582e10bd8df Mon Sep 17 00:00:00 2001 From: schmop Date: Sat, 13 Sep 2025 23:13:27 +0200 Subject: [PATCH] Fix unneccessary sidebar button on index --- public/static/buttons.js | 16 ---------------- templates/base.html.twig | 9 ++++----- templates/index.html.twig | 2 +- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/public/static/buttons.js b/public/static/buttons.js index 9fa6efb..bca27ea 100644 --- a/public/static/buttons.js +++ b/public/static/buttons.js @@ -31,20 +31,4 @@ document.addEventListener('DOMContentLoaded', () => { toggleColorTheme(); updateButtonText(); }); -}); - -/** - * ----------------------- - * Sidebar toggle - * ----------------------- - */ - -function toggleSidebar() { - const sidebar = document.querySelector('.sidebar'); - sidebar.classList.toggle('collapsed'); -} - -document.addEventListener('DOMContentLoaded', () => { - const button = document.querySelector('.sidebar-toggle'); - button.addEventListener('click', toggleSidebar); }); \ No newline at end of file diff --git a/templates/base.html.twig b/templates/base.html.twig index 6f8599a..a27a828 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -11,12 +11,8 @@
diff --git a/templates/index.html.twig b/templates/index.html.twig index 37d9570..9c3ae97 100644 --- a/templates/index.html.twig +++ b/templates/index.html.twig @@ -1,5 +1,5 @@ {% extends 'base.html.twig' %} - +{% block actions_left %}{% endblock %} {% block main %}