Skip to content

Commit b8eb362

Browse files
committed
fix(styles): alignments
1 parent ff961b6 commit b8eb362

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/layouts/main.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { ScrollArea } from '../components/ui/scroll-area'
1010
import logoLaucher from '../_assets/aerial-launcher.png'
1111

1212
import { whatIsThis } from '../lib/callbacks'
13-
import { cn } from '../lib/utils'
1413

1514
export function MainLayout({ children }: PropsWithChildren) {
1615
return (
@@ -36,15 +35,14 @@ export function MainLayout({ children }: PropsWithChildren) {
3635
</div>
3736
<div className="flex flex-col">
3837
<Header />
39-
<main className="">
40-
<ScrollArea
41-
viewportClassName={cn(
42-
'main-wrapper-content [&>div]:!flex [&>div]:flex-col [&>div]:gap-4 [&>div]:h-[calc(100vh-var(--header-height))] [&>div]:p-4 [&>div]:relative [&>div]:lg:gap-6 [&>div]:lg:p-6'
43-
)}
44-
>
38+
<ScrollArea
39+
className="h-[calc(100vh-var(--header-height))]"
40+
viewportClassName="main-wrapper-content"
41+
>
42+
<main className="flex flex-col gap-4 h-full min-h-[calc(100vh-var(--header-height))] p-4 relative lg:gap-6 lg:p-6">
4543
{children}
46-
</ScrollArea>
47-
</main>
44+
</main>
45+
</ScrollArea>
4846
</div>
4947
</div>
5048
)

src/routes/advanced-mode/matchmaking-track/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function Content() {
117117

118118
return (
119119
<div className="flex flex-grow">
120-
<div className="flex items-center justify-center mb-10 w-full">
120+
<div className="flex items-center justify-center w-full">
121121
<div className="flex flex-col gap-5 max-w-lg w-full">
122122
<Card>
123123
<CardHeader className="border-b">

0 commit comments

Comments
 (0)