From 1e211c12015f4915ffc05b401ade913447194234 Mon Sep 17 00:00:00 2001 From: moh Date: Sun, 20 Sep 2026 20:17:33 +0200 Subject: [PATCH] REVERTED - Remove macOS shell window; restore full-bleed content --- app/[locale]/(site)/layout.tsx | 16 +++++------ app/globals.css | 52 +++------------------------------- 2 files changed, 11 insertions(+), 57 deletions(-) diff --git a/app/[locale]/(site)/layout.tsx b/app/[locale]/(site)/layout.tsx index 2bd6117..3a017c4 100644 --- a/app/[locale]/(site)/layout.tsx +++ b/app/[locale]/(site)/layout.tsx @@ -45,15 +45,13 @@ export default async function SiteLayout({ children, params }: SiteLayoutProps) -
-
-
-
-
- {children} -
- -
+
+
+
+
+ {children} +
+
diff --git a/app/globals.css b/app/globals.css index 6dbaf2d..3a7237e 100644 --- a/app/globals.css +++ b/app/globals.css @@ -187,12 +187,8 @@ html[lang="ar"] .eyebrow { body { @apply min-h-screen text-foreground antialiased; - /* The "desktop" behind the shell window: a subtle brand-tinted wallpaper. */ - background-color: hsl(var(--surface-3)); - background-image: - radial-gradient(1100px 780px at 12% -8%, hsl(var(--primary) / 0.16), transparent 55%), - radial-gradient(1000px 720px at 108% 112%, hsl(217 55% 45% / 0.16), transparent 55%); - background-attachment: fixed; + background-color: hsl(var(--background)); + background-image: none; font-family: inherit; } @@ -907,39 +903,8 @@ html[lang="ar"] .eyebrow { 0 0 30px rgba(220, 68, 22, 0.08); } -/* ── App shell (macOS-style "window") ── - Frames the scrolling content: the shell is a fixed, inset, rounded panel and - — because it sets a `transform` — it becomes the containing block for the - position:fixed #smooth-wrapper inside it, so ScrollSmoother's own inline - `inset:0; width/height:100%` sizes the wrapper to the SHELL, not the viewport. - The dock and corner controls render outside the shell, on the ambient desktop. */ -.app-shell { - position: fixed; - top: calc(env(safe-area-inset-top, 0px) + 12px); - left: 12px; - right: 12px; - bottom: calc(env(safe-area-inset-bottom, 0px) + 94px); - overflow: hidden; - border-radius: 28px; - border: 1px solid hsl(var(--foreground) / 0.12); - background: hsl(var(--background)); - box-shadow: - 0 40px 90px -30px rgba(0, 0, 0, 0.65), - inset 0 1px 0 hsl(var(--foreground) / 0.08); - transform: translateZ(0); -} +/* ── ScrollSmoother wrapper ── */ -@media (max-width: 640px) { - .app-shell { - top: calc(env(safe-area-inset-top, 0px) + 8px); - left: 8px; - right: 8px; - bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); - border-radius: 22px; - } -} - -/* ── ScrollSmoother wrapper (fills the shell) ── */ #smooth-wrapper { overflow: hidden; position: fixed; @@ -955,17 +920,8 @@ html[lang="ar"] .eyebrow { } @media (prefers-reduced-motion: reduce) { - /* No ScrollSmoother: let the shell itself scroll its content natively. */ - .app-shell { - overflow-y: auto; - overflow-x: hidden; - -webkit-overflow-scrolling: touch; - } #smooth-wrapper { - position: static; - inset: auto; - width: 100%; - height: auto; overflow: visible; + position: relative; } }