aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-02-16 23:28:59 +0000
committerClaude <noreply@anthropic.com>2026-02-16 23:28:59 +0000
commited1b953e1336aeda282b46acd1c5e21529fa0950 (patch)
tree463afed2c6666802fdb2d115a2f34a398a33cf16 /frontend-vanilla/src
parentf67c07b178cd90539f1cc934def5a99be203e44a (diff)
downloadneko-ed1b953e1336aeda282b46acd1c5e21529fa0950.tar.gz
neko-ed1b953e1336aeda282b46acd1c5e21529fa0950.tar.bz2
neko-ed1b953e1336aeda282b46acd1c5e21529fa0950.zip
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
Diffstat (limited to 'frontend-vanilla/src')
-rw-r--r--frontend-vanilla/src/style.css10
1 files changed, 4 insertions, 6 deletions
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;
}