Spaces:
Running

axeronis commited on
Commit
dc6f920
·
1 Parent(s): cb528a9

fix(layout): strict viewport constraints for smooth chat scrolling

Browse files
frontend/components/ChatWindow.tsx CHANGED
@@ -408,10 +408,11 @@ export function ChatWindow({
408
 
409
  {/* Messages Area */}
410
  <div
411
- className="flex-1 overflow-y-auto px-4 md:px-6 space-y-6 scrollbar-thin scrollbar-thumb-white/10"
412
  style={{
413
  WebkitOverflowScrolling: 'touch',
414
- willChange: 'transform'
 
415
  }}
416
  >
417
  {/* Top spacer to show content blurring behind header when scrolling */}
 
408
 
409
  {/* Messages Area */}
410
  <div
411
+ className="flex-1 overflow-y-auto px-4 md:px-6 space-y-6 scrollbar-thin scrollbar-thumb-white/10 overscroll-contain touch-pan-y"
412
  style={{
413
  WebkitOverflowScrolling: 'touch',
414
+ willChange: 'scroll-position',
415
+ transform: 'translate3d(0,0,0)' // Force GPU layer
416
  }}
417
  >
418
  {/* Top spacer to show content blurring behind header when scrolling */}
frontend/components/layout/LayoutClient.tsx CHANGED
@@ -67,7 +67,7 @@ export function LayoutClient({ children }: { children: React.ReactNode }) {
67
  </MobileSidebarWrapper>
68
 
69
  {/* Main Content Area Container */}
70
- <div className="flex-1 flex flex-col min-h-full min-w-0 relative">
71
  {/* Desktop Header */}
72
  <Header />
73
 
 
67
  </MobileSidebarWrapper>
68
 
69
  {/* Main Content Area Container */}
70
+ <div className="flex-1 flex flex-col h-full overflow-hidden min-w-0 relative">
71
  {/* Desktop Header */}
72
  <Header />
73