fix: Add mx-auto max-w-7xl to containers for proper centering on wide screens
This commit is contained in:
parent
f501bd02c8
commit
12bd36bd97
3 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ export default function RootLayout({
|
||||||
<AuthProvider>
|
<AuthProvider>
|
||||||
<PreferencesProvider>
|
<PreferencesProvider>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<main className="container py-6 flex-1">
|
<main className="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-6 flex-1">
|
||||||
{children}
|
{children}
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import Link from "next/link"
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
return (
|
return (
|
||||||
<footer className="border-t py-6 md:py-8 mt-12 bg-muted/30">
|
<footer className="border-t py-6 md:py-8 mt-12 bg-muted/30">
|
||||||
<div className="container flex flex-col md:flex-row items-center justify-between gap-4">
|
<div className="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 flex flex-col md:flex-row items-center justify-between gap-4">
|
||||||
<div className="flex flex-col gap-1 items-center md:items-start text-center md:text-left">
|
<div className="flex flex-col gap-1 items-center md:items-start text-center md:text-left">
|
||||||
<span className="font-bold">Elmeg</span>
|
<span className="font-bold">Elmeg</span>
|
||||||
<span className="text-sm text-muted-foreground">The community archive.</span>
|
<span className="text-sm text-muted-foreground">The community archive.</span>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export function Navbar() {
|
||||||
const { user, logout } = useAuth()
|
const { user, logout } = useAuth()
|
||||||
return (
|
return (
|
||||||
<header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
|
<header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
|
||||||
<div className="container flex h-14 items-center">
|
<div className="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 flex h-14 items-center">
|
||||||
<div className="mr-4 hidden md:flex">
|
<div className="mr-4 hidden md:flex">
|
||||||
<Link href="/" className="mr-6 flex items-center space-x-2">
|
<Link href="/" className="mr-6 flex items-center space-x-2">
|
||||||
<Music className="h-6 w-6" />
|
<Music className="h-6 w-6" />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue