mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(web): make content width responsive on wide screens (#496)
This commit is contained in:
@@ -165,6 +165,13 @@ body {
|
||||
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 */
|
||||
@media (min-width: 1024px) {
|
||||
.desktop-scrollbar-left {
|
||||
|
||||
@@ -5,7 +5,7 @@ export default {
|
||||
theme: {
|
||||
extend: {
|
||||
maxWidth: {
|
||||
content: '960px'
|
||||
content: 'var(--content-max-w, 960px)'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user