💄 Fix styles

This commit is contained in:
LittleSheep 2024-02-08 18:11:57 +08:00
parent da7599edf2
commit 834c9de463
5 changed files with 14 additions and 5 deletions

View File

@ -43,7 +43,7 @@ export default function PostItem(props: {
); );
return ( return (
<div class="post-item max-w-screen"> <div class="post-item">
<Show when={!props.noAuthor}> <Show when={!props.noAuthor}>
<a href={`/accounts/${props.post.author.name}`}> <a href={`/accounts/${props.post.author.name}`}>
<div class="flex bg-base-200"> <div class="flex bg-base-200">

View File

@ -14,3 +14,12 @@ html, body {
.medium-zoom-overlay { .medium-zoom-overlay {
z-index: 10; z-index: 10;
} }
.scrollbar-hidden {
scrollbar-width: none;
}
.scrollbar-hidden::-webkit-scrollbar {
display: none;
width: 0;
}

View File

@ -54,7 +54,7 @@ export default function RootLayout(props: any) {
<Navbar /> <Navbar />
</Show> </Show>
<main class={mainContentStyles()}>{props.children}</main> <main class={`${mainContentStyles()} scrollbar-hidden`}>{props.children}</main>
</Show> </Show>
); );
} }

View File

@ -1,12 +1,12 @@
.wrapper { .wrapper {
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: fit-content(100%);
column-gap: 20px; column-gap: 20px;
max-height: calc(100vh - 64px); max-height: calc(100vh - 64px);
} }
@media (min-width: 768px) { @media (min-width: 1024px) {
.wrapper { .wrapper {
grid-template-columns: 1fr 2fr 1fr; grid-template-columns: 1fr 2fr 1fr;
} }

View File

@ -5,7 +5,7 @@ export default function DashboardPage(props: any) {
<div class={`${styles.wrapper} container mx-auto`}> <div class={`${styles.wrapper} container mx-auto`}>
<div id="trending" class="card shadow-xl h-fit"></div> <div id="trending" class="card shadow-xl h-fit"></div>
<div id="content" class="card shadow-xl"> <div id="content max-w-screen" class="card shadow-xl">
{props.children} {props.children}
</div> </div>