-
Notifications
You must be signed in to change notification settings - Fork 4
fix: fixed blabsy chat overflow. #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -3,12 +3,12 @@ import { ChatWindow } from './chat-window'; | |||||
|
||||||
export function Chat(): JSX.Element { | ||||||
return ( | ||||||
<main className='min-h-screen w-full max-w-5xl mt-8'> | ||||||
<main className='min-h-full w-full max-w-5xl pt-8'> | ||||||
<div className='grid h-[calc(100vh-4rem)] grid-cols-1 gap-4 md:grid-cols-[350px_1fr]'> | ||||||
<div className='h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'> | ||||||
<div className='max-h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainSidebar height: max-h-full may collapse and break inner scrolling Using max-h-full allows the container to shrink to content height, which can prevent its children (e.g., a scrollable chat list) from getting a definite height. h-full keeps the sidebar matched to the grid row height so the inner scroll area works reliably. Apply: -<div className='max-h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'>
+<div className='h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'> If the ChatList needs an explicit flex context to contain its own scrollable region, consider:
Manual check:
🏁 Script executed: #!/bin/bash
# Show usage of max-h-full and nearby context in chat.tsx
rg -n "max-h-full" -C5 platforms/blabsy/src/components/chat/chat.tsx
echo
echo "==== Top of file (1–50) ===="
sed -n '1,50p' platforms/blabsy/src/components/chat/chat.tsx Length of output: 1520 🏁 Script executed: #!/bin/bash
# Find and display the ChatList component implementation
rg -l "ChatList" -g "*.tsx" platforms/blabsy/src/components/chat | xargs -I {} sed -n '1,200p' {} Length of output: 9006 Ensure ChatList container fills its parent and enables inner scrolling Replace the first column wrapper’s • File: platforms/blabsy/src/components/chat/chat.tsx - <div className='max-h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'>
+ <div className='h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'> If you run into cropping or child overflow issues, consider on that same Manual test: load many chats and verify the left list scrolls within its column rather than the whole page. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||
<ChatList /> | ||||||
</div> | ||||||
<div className='h-full rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'> | ||||||
<div className='h-[calc(100vh-4rem)] rounded-lg border border-gray-200 bg-white dark:border-gray-800 dark:bg-black'> | ||||||
<ChatWindow /> | ||||||
</div> | ||||||
</div> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Ensure the message list can actually scroll in flex/grid by adding min-h-0
In many flex/grid stacks, a scrollable child must have min-h-0 to avoid expanding past its container. This prevents the “infinite growth” overflow.
Apply:
Manual check:
🏁 Script executed:
Length of output: 1617
🏁 Script executed:
Length of output: 8786
Add
min-h-0
andoverscroll-contain
to the scrollable message paneTo ensure the flex‐item truly scrolls within its parent (and prevent page‐level scroll bleed on iOS), reset its min-height and contain its overscroll:
• File: platforms/blabsy/src/components/chat/chat-window.tsx (around line 266)
• Update the wrapper div for the message list:
📝 Committable suggestion
🤖 Prompt for AI Agents