Spaces:
Running

axeronis commited on
Commit
e61b09b
·
1 Parent(s): b2e8e03

fix(ui): resolve black gaps in mobile infinity layout using -webkit-fill-available

Browse files
frontend/app/globals.css CHANGED
@@ -177,6 +177,7 @@ html {
177
  scroll-behavior: smooth;
178
  background-color: #050510;
179
  height: 100%;
 
180
  }
181
 
182
  body {
@@ -185,15 +186,18 @@ body {
185
  radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
186
  radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
187
  radial-gradient(ellipse 50% 30% at 0% 100%, rgba(236, 72, 153, 0.08), transparent);
 
188
  color: var(--foreground);
189
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
190
  overflow-x: hidden;
191
  height: 100%;
 
192
  margin: 0;
 
193
  -webkit-font-smoothing: antialiased;
194
  -moz-osx-font-smoothing: grayscale;
195
- /* Prevent elastic bounce issues at top/bottom in Safari */
196
- overscroll-behavior-y: none;
197
  }
198
 
199
  /* === TYPOGRAPHY === */
 
177
  scroll-behavior: smooth;
178
  background-color: #050510;
179
  height: 100%;
180
+ height: -webkit-fill-available;
181
  }
182
 
183
  body {
 
186
  radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
187
  radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
188
  radial-gradient(ellipse 50% 30% at 0% 100%, rgba(236, 72, 153, 0.08), transparent);
189
+ background-attachment: fixed;
190
  color: var(--foreground);
191
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
192
  overflow-x: hidden;
193
  height: 100%;
194
+ min-height: -webkit-fill-available;
195
  margin: 0;
196
+ padding: 0;
197
  -webkit-font-smoothing: antialiased;
198
  -moz-osx-font-smoothing: grayscale;
199
+ /* Prevent background clipping in Safari safe areas */
200
+ overscroll-behavior-y: contain;
201
  }
202
 
203
  /* === TYPOGRAPHY === */
frontend/components/layout/LayoutClient.tsx CHANGED
@@ -55,7 +55,7 @@ export function LayoutClient({ children }: { children: React.ReactNode }) {
55
  ) : (
56
  // App layout (with sidebar)
57
  <ProtectedLayout>
58
- <div className="flex h-full min-h-[100dvh] relative text-white">
59
  {/* Desktop Sidebar */}
60
  <div className="hidden lg:flex h-full relative z-20 w-72 shrink-0">
61
  <Sidebar />
 
55
  ) : (
56
  // App layout (with sidebar)
57
  <ProtectedLayout>
58
+ <div className="flex flex-col min-h-screen relative text-white">
59
  {/* Desktop Sidebar */}
60
  <div className="hidden lg:flex h-full relative z-20 w-72 shrink-0">
61
  <Sidebar />