Skip to content

Commit

Permalink
style: 💄 Prevent overflow-x on layout, disable animate list on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinhern committed Jan 24, 2025
1 parent 4564731 commit 440be5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@
animation: var(--animate-in-reverse);
animation-delay: calc(var(--index) * -130ms);
}
}

@media (hover: hover) {
.animated-list:hover li {
opacity: 0.6;
transition: opacity 0.2s;
Expand All @@ -164,4 +166,4 @@
.animated-list:hover li:hover {
opacity: 1;
}
}
}
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: Readonly<PropsWithChildren>) {
return (
<html lang="en" suppressHydrationWarning className={`${geistSans.variable} ${geistMono.variable}`}>
<body className="min-h-svh antialiased">
<body className="min-h-svh w-full overflow-x-hidden scroll-smooth antialiased">
<Providers>
<AppNavbar className="mx-auto px-4 py-4 md:max-w-[700px] md:px-0 md:py-8">
<div className="pt-8">{children}</div>
Expand Down

0 comments on commit 440be5d

Please sign in to comment.