From 2145340c11bfafc037f417f4e4e41b6593f3964e Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Wed, 29 Oct 2025 06:38:16 +0000 Subject: [PATCH] fix: skeleton and mobile chat improvments (#541) ### Improved mobile responsiveness across chat interface and memory list with better loading states. ### What changed? - Added responsive padding in chat page for mobile devices - Enhanced header layout for chat titles with proper truncation and responsive text sizes - Replaced the simple loading spinner in memory list with skeleton loading cards - Improved message container width constraints on mobile devices --- apps/web/app/(navigation)/chat/[id]/page.tsx | 2 +- apps/web/components/header.tsx | 8 +++-- apps/web/components/masonry-memory-list.tsx | 30 ++++++++++++++----- .../components/views/chat/chat-messages.tsx | 2 +- 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/apps/web/app/(navigation)/chat/[id]/page.tsx b/apps/web/app/(navigation)/chat/[id]/page.tsx index b3812998..da64a79d 100644 --- a/apps/web/app/(navigation)/chat/[id]/page.tsx +++ b/apps/web/app/(navigation)/chat/[id]/page.tsx @@ -20,7 +20,7 @@ export default function ChatPage() { return (
-
+
diff --git a/apps/web/components/header.tsx b/apps/web/components/header.tsx index 44bb1f74..1448588e 100644 --- a/apps/web/components/header.tsx +++ b/apps/web/components/header.tsx @@ -124,9 +124,11 @@ export function Header({ onAddMemory }: { onAddMemory?: () => void }) { rel="noopener noreferrer" > {getCurrentChat()?.title && pathname.includes("/chat") ? ( -
- - {getCurrentChat()?.title} +
+ + + {getCurrentChat()?.title} +
) : ( <> diff --git a/apps/web/components/masonry-memory-list.tsx b/apps/web/components/masonry-memory-list.tsx index 0511a061..16cd65c9 100644 --- a/apps/web/components/masonry-memory-list.tsx +++ b/apps/web/components/masonry-memory-list.tsx @@ -214,14 +214,30 @@ export const MasonryMemoryList = ({
) : isLoading ? ( -
-
-
-
- - Loading memory list... +
+
+ {Array.from({ length: 8 }, (_, i) => ({ + id: `skeleton-${Math.random()}-${i}`, + height: 100 + (i % 3), + })).map((item) => ( +
+
+
+
+
+
+
+
+
+
-
+ ))}
) : filteredDocuments.length === 0 && !isLoading ? ( diff --git a/apps/web/components/views/chat/chat-messages.tsx b/apps/web/components/views/chat/chat-messages.tsx index babaa9a2..05e8afdf 100644 --- a/apps/web/components/views/chat/chat-messages.tsx +++ b/apps/web/components/views/chat/chat-messages.tsx @@ -428,7 +428,7 @@ export function ChatMessages() { >