From ed1b953e1336aeda282b46acd1c5e21529fa0950 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Feb 2026 23:28:59 +0000 Subject: Align sidebar CSS breakpoints with JS threshold at 1024px The sidebar default-closed JS logic used 1024px but CSS media queries used 768px, causing inconsistent behavior on tablets. Updated all sidebar-related breakpoints to 1024px/1025px to match. https://claude.ai/code/session_019Z4VJxzY7tcAuNkPAkvry9 --- frontend-vanilla/src/style.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'frontend-vanilla') diff --git a/frontend-vanilla/src/style.css b/frontend-vanilla/src/style.css index 37ba761..440bcca 100644 --- a/frontend-vanilla/src/style.css +++ b/frontend-vanilla/src/style.css @@ -206,7 +206,7 @@ html { transition: padding 0.3s ease; } -@media (max-width: 768px) { +@media (max-width: 1024px) { .main-content { padding: 1rem; padding-top: 4rem; @@ -264,7 +264,7 @@ html { z-index: 999; } -@media (max-width: 768px) { +@media (max-width: 1024px) { .sidebar-visible .sidebar-backdrop { display: block; } @@ -284,12 +284,10 @@ html { transform: translateX(0); box-shadow: 10px 0 20px rgba(0, 0, 0, 0.1); } - - /* Move toggle button with sidebar when visible - Removed to keep it fixed */ } /* Desktop Sidebar state */ -@media (min-width: 769px) { +@media (min-width: 1025px) { /* Desktop Sidebar state - Removed to keep toggle fixed */ } @@ -298,7 +296,7 @@ html { display: none; } -@media (min-width: 769px) { +@media (min-width: 1025px) { .sidebar-hidden .sidebar { display: none; } -- cgit v1.2.3