From 20c41706e18e354781f071ec6703a3c1888ff2d4 Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:54:06 +0000 Subject: [PATCH] fix: mobile layout on empty projects (#479) Issue: On mobile, connect to ai modal is overlapping and hard to use the app when project is empty Fix: \- Disabling the Connect to ai modal on mobile **Reason for this fix**, as MCP modal is hardly needed for mobile users [Report issue link from Discord](https://discord.com/channels/1114913976422256742/1378895805741793350/1425912333556777082) --- apps/web/components/header.tsx | 2 +- apps/web/components/memories.tsx | 68 +++++++++++++++++++++++++------- 2 files changed, 55 insertions(+), 15 deletions(-) diff --git a/apps/web/components/header.tsx b/apps/web/components/header.tsx index 19a6ec3a..44bb1f74 100644 --- a/apps/web/components/header.tsx +++ b/apps/web/components/header.tsx @@ -275,7 +275,7 @@ export function Header({ onAddMemory }: { onAddMemory?: () => void }) { + + + + + ) : (
@@ -202,7 +224,6 @@ export function Memories() { onClick={(e) => { e.stopPropagation() setShowAddMemoryView(true) - setShowConnectAIModal(false) }} type="button" > @@ -211,7 +232,7 @@ export function Memories() {
- + )} @@ -244,10 +265,30 @@ export function Memories() { highlightsVisible={isOpen} >
- + {!isMobile ? ( + +
+
+
+ +
+
+
+
+ ) : (
@@ -256,7 +297,6 @@ export function Memories() { onClick={(e) => { e.stopPropagation() setShowAddMemoryView(true) - setShowConnectAIModal(false) }} type="button" > @@ -265,7 +305,7 @@ export function Memories() {
-
+ )}