Commit fb85e51a authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: add max-width content container for desktop layout

Content was stretching full-width on 1920px screens. Added
800px max-width centered container in AppShell, fixed nav
overflow for scrollable items.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 1353add6
screenshots/02-home.png

37.8 KB | W: | H:

screenshots/02-home.png

32.3 KB | W: | H:

screenshots/02-home.png
screenshots/02-home.png
screenshots/02-home.png
screenshots/02-home.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/03-play.png

35.6 KB | W: | H:

screenshots/03-play.png

46.1 KB | W: | H:

screenshots/03-play.png
screenshots/03-play.png
screenshots/03-play.png
screenshots/03-play.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/04-bots.png

35.6 KB | W: | H:

screenshots/04-bots.png

44.1 KB | W: | H:

screenshots/04-bots.png
screenshots/04-bots.png
screenshots/04-bots.png
screenshots/04-bots.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/05-tournaments.png

35.6 KB | W: | H:

screenshots/05-tournaments.png

27.9 KB | W: | H:

screenshots/05-tournaments.png
screenshots/05-tournaments.png
screenshots/05-tournaments.png
screenshots/05-tournaments.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/06-leaderboard.png

35.6 KB | W: | H:

screenshots/06-leaderboard.png

28.8 KB | W: | H:

screenshots/06-leaderboard.png
screenshots/06-leaderboard.png
screenshots/06-leaderboard.png
screenshots/06-leaderboard.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/07-friends.png

35.6 KB | W: | H:

screenshots/07-friends.png

28 KB | W: | H:

screenshots/07-friends.png
screenshots/07-friends.png
screenshots/07-friends.png
screenshots/07-friends.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/08-orgs.png

35.6 KB | W: | H:

screenshots/08-orgs.png

25 KB | W: | H:

screenshots/08-orgs.png
screenshots/08-orgs.png
screenshots/08-orgs.png
screenshots/08-orgs.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/09-shop.png

35.6 KB | W: | H:

screenshots/09-shop.png

29.9 KB | W: | H:

screenshots/09-shop.png
screenshots/09-shop.png
screenshots/09-shop.png
screenshots/09-shop.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/10-achievements.png

35.6 KB | W: | H:

screenshots/10-achievements.png

25.4 KB | W: | H:

screenshots/10-achievements.png
screenshots/10-achievements.png
screenshots/10-achievements.png
screenshots/10-achievements.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/11-profile.png

35.6 KB | W: | H:

screenshots/11-profile.png

44.4 KB | W: | H:

screenshots/11-profile.png
screenshots/11-profile.png
screenshots/11-profile.png
screenshots/11-profile.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/12-notifications.png

35.6 KB | W: | H:

screenshots/12-notifications.png

25.2 KB | W: | H:

screenshots/12-notifications.png
screenshots/12-notifications.png
screenshots/12-notifications.png
screenshots/12-notifications.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/13-settings.png

35.6 KB | W: | H:

screenshots/13-settings.png

35 KB | W: | H:

screenshots/13-settings.png
screenshots/13-settings.png
screenshots/13-settings.png
screenshots/13-settings.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -12,7 +12,9 @@ export function AppShell() {
<div className="flex-1 flex flex-col min-h-dvh lg:mr-[72px]">
<Header />
<main className="flex-1 pb-[calc(var(--bottom-nav-height)+env(safe-area-inset-bottom))] lg:pb-0">
<Outlet />
<div className="w-full max-w-[800px] mx-auto lg:px-6">
<Outlet />
</div>
</main>
<div className="lg:hidden">
<BottomNav />
......
......@@ -15,8 +15,8 @@ const navItems = [
export function DesktopNav() {
return (
<nav className="hidden lg:flex fixed right-0 top-0 bottom-0 w-[72px] flex-col items-center py-6 gap-2 bg-bg-1 border-l border-white/6 z-50">
<span className="text-gold font-bold text-sm font-latin mb-6">E3</span>
<nav className="hidden lg:flex fixed right-0 top-0 bottom-0 w-[72px] flex-col items-center py-4 gap-1 bg-bg-1 border-l border-white/6 z-50 overflow-y-auto scrollbar-none">
<span className="text-gold font-bold text-sm font-latin mb-4">E3</span>
{navItems.map((item) => (
<NavLink
key={item.to}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment