Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(collab): let the empty chat state fill the panel

Mauricef43b56a7450e
diff --git a/client/src/components/Collab/CollabChatMessages.tsx b/client/src/components/Collab/CollabChatMessages.tsx
index b335c0bef..9427bee4c 100644
--- a/client/src/components/Collab/CollabChatMessages.tsx
+++ b/client/src/components/Collab/CollabChatMessages.tsx
@@ -13,7 +13,10 @@ export function ChatMessages(props: any) {
<>
{/* Messages */}
{messages.length === 0 ? (
- <EmptyState scene="chat" title={t('collab.chat.empty')} />
+ // flex-1, like the message list it stands in for: without it the empty
+ // state was only as tall as its own content and the composer rode up to
+ // sit right under the mascot, with the rest of the panel left blank.
+ <EmptyState scene="chat" title={t('collab.chat.empty')} className="min-h-0 flex-1" />
) : (
<div ref={scrollRef} onScroll={checkAtBottom} className="chat-scroll" style={{
flex: 1, overflowY: 'auto', overflowX: 'hidden', padding: '8px 14px 4px', WebkitOverflowScrolling: 'touch',