feat(web): make content width responsive on wide screens (#496)

This commit is contained in:
hu chenxi
2026-04-20 19:48:09 +08:00
committed by GitHub
parent cccee4da63
commit d69f6dfc1e
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -165,6 +165,13 @@ body {
opacity: 1; opacity: 1;
} }
/* Scale content area to use available space on wide screens */
@media (min-width: 1280px) {
:root {
--content-max-w: min(90%, 1200px);
}
}
/* Desktop sidebar: use custom width from CSS variable */ /* Desktop sidebar: use custom width from CSS variable */
@media (min-width: 1024px) { @media (min-width: 1024px) {
.desktop-scrollbar-left { .desktop-scrollbar-left {
+1 -1
View File
@@ -5,7 +5,7 @@ export default {
theme: { theme: {
extend: { extend: {
maxWidth: { maxWidth: {
content: '960px' content: 'var(--content-max-w, 960px)'
} }
} }
}, },