fix: weird width

This commit is contained in:
Xylight committed 2024-08-10 20:00:07 -07:00
1 parent 50ac51066a
commit c0dc1b1c84
2 files changed
+12 -5

No files matched your search

+12 -4
View File
@@ -163,9 +163,13 @@
grid-template-areas: 'main'; grid-template-areas: 'main';
justify-items: start; justify-items: start;
} }
.content.limit-width {
max-width: 120rem;
}
.content > * { .content > * {
width: 100%; /* Full width for immediate children */ width: 100%; /* Full width for immediate children */
padding: 0 1rem; /* Add some padding on smaller screens */
} }
@media (min-width: 768px) { @media (min-width: 768px) {
@@ -183,20 +187,24 @@
grid-template-areas: 'sidebar main suffix'; grid-template-areas: 'sidebar main suffix';
} }
.content:is(.limit-width) { .content.limit-width {
grid-template-columns: 1fr 2fr 1fr; grid-template-columns: 1fr 2fr 1fr;
} }
:global(.content:is(.limit-width) > *:first-child) { :global(.content.limit-width > *:first-child) {
max-width: 20rem; max-width: 20rem;
justify-self: end; justify-self: end;
width: 100%; width: 100%;
} }
:global(.content:is(.limit-width) > *:last-child) { :global(.content.limit-width > *:last-child) {
max-width: 20rem; max-width: 20rem;
justify-self: start; justify-self: start;
width: 100%; width: 100%;
} }
.main {
width: 100%;
}
} }
</style> </style>
-1
View File
@@ -143,7 +143,6 @@
let:class={c} let:class={c}
class="p-4 sm:p-6 min-w-0 w-full flex flex-col h-full relative {c}" class="p-4 sm:p-6 min-w-0 w-full flex flex-col h-full relative {c}"
style={s} style={s}
class:max-w-6xl={$userSettings.newWidth}
id="main" id="main"
> >
<slot /> <slot />