💄 Fix styles
This commit is contained in:
parent
da7599edf2
commit
834c9de463
@ -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">
|
||||||
|
@ -13,4 +13,13 @@ 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;
|
||||||
}
|
}
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user