Spaces:
Sleeping

axeronis commited on
Commit
2c85a51
·
1 Parent(s): 747e07c

fix(ui): enforce top-0 and add safe-area padding to landing page nav for consistent immersive layout

Browse files
frontend/app/page.tsx CHANGED
@@ -347,7 +347,7 @@ export default function HomePage() {
347
  </div>
348
 
349
  {/* 1. NAVBAR - Minimalist Glass */}
350
- <nav className="fixed top-0 left-0 right-0 z-50 bg-[#0B0C15]/80 backdrop-blur-xl border-b border-white/10 transition-all duration-300">
351
  {/* Background Glow Sync */}
352
  <div className="absolute inset-0 overflow-hidden pointer-events-none -z-10">
353
  <div className="absolute top-0 left-1/4 w-1/2 h-full bg-indigo-500/5 blur-[100px] rounded-full" />
 
347
  </div>
348
 
349
  {/* 1. NAVBAR - Minimalist Glass */}
350
+ <nav className="fixed top-0 left-0 right-0 mt-0 z-50 bg-[#0B0C15]/80 backdrop-blur-xl border-b border-white/10 pt-[env(safe-area-inset-top,0px)] transition-all duration-300">
351
  {/* Background Glow Sync */}
352
  <div className="absolute inset-0 overflow-hidden pointer-events-none -z-10">
353
  <div className="absolute top-0 left-1/4 w-1/2 h-full bg-indigo-500/5 blur-[100px] rounded-full" />
frontend/components/MobileNav.tsx CHANGED
@@ -57,7 +57,7 @@ export function MobileHeader({ onOpen }: { onOpen?: () => void }) {
57
  const isUnlimited = limitDialogs === null || limitDialogs === undefined
58
 
59
  return (
60
- <div className="flex flex-col fixed top-0 left-0 right-0 z-[60] bg-[#0B0C15]/80 backdrop-blur-2xl border-b border-white/10 pt-[env(safe-area-inset-top,0px)] md:hidden">
61
  <div className="flex items-center justify-between px-3 h-[52px] text-white w-full relative">
62
  {/* Left: Logo + Brand Name */}
63
  <Link href="/settings/brain" className="flex items-center gap-2.5 active:scale-95 transition-transform">
 
57
  const isUnlimited = limitDialogs === null || limitDialogs === undefined
58
 
59
  return (
60
+ <div className="flex flex-col fixed top-0 left-0 right-0 mt-0 z-[60] bg-[#0B0C15]/80 backdrop-blur-2xl border-b border-white/10 pt-[env(safe-area-inset-top,0px)] md:hidden">
61
  <div className="flex items-center justify-between px-3 h-[52px] text-white w-full relative">
62
  {/* Left: Logo + Brand Name */}
63
  <Link href="/settings/brain" className="flex items-center gap-2.5 active:scale-95 transition-transform">