layout: fix weird separation at high widths

This commit is contained in:
Xylight committed 2024-08-05 15:20:19 -07:00
1 parent b339bfe978
commit d3fb704ad1
1 file changed
+5 -7
+5 -7
View File
@@ -153,8 +153,11 @@
'content';
}
.content {
.content:not(.limit-width) {
width: 100%;
}
.content {
display: grid;
margin-left: auto;
margin-right: auto;
@@ -163,15 +166,10 @@
grid-template-areas: 'main';
justify-items: start;
}
.content > * {
width: 100%; /* Full width for immediate children */
max-width: 100rem; /* Limit width */
padding: 0 1rem; /* Add some padding on smaller screens */
}
@media (min-width: 768px) {
.content {
grid-template-columns: 14rem 2fr;
grid-template-columns: 15rem 2fr;
justify-items: end start;
grid-template-areas: 'sidebar main';
}