From ce84ff6f236012169a9ebf65847392ffdadf4115 Mon Sep 17 00:00:00 2001 From: snehasishcodes Date: Fri, 18 Sep 2026 04:11:54 +0530 Subject: [PATCH] feat(mobile): round search bars and icon buttons to pill shape --- apps/mobile/app/(tabs)/index.tsx | 12 ++++++------ apps/mobile/app/(tabs)/quick-prompts.tsx | 12 ++++++------ apps/mobile/app/notifications.tsx | 4 ++-- .../app/project/[projectId]/[sessionId]/files.tsx | 2 +- .../app/project/[projectId]/[sessionId]/models.tsx | 8 ++++---- apps/mobile/app/project/[projectId]/browser.tsx | 6 +++--- apps/mobile/app/sessions.tsx | 12 ++++++------ 7 files changed, 28 insertions(+), 28 deletions(-) diff --git a/apps/mobile/app/(tabs)/index.tsx b/apps/mobile/app/(tabs)/index.tsx index a5ad23c..1c12e37 100644 --- a/apps/mobile/app/(tabs)/index.tsx +++ b/apps/mobile/app/(tabs)/index.tsx @@ -427,18 +427,18 @@ export default function HomeScreen() { - - + + {searchQuery.length > 0 && ( - setSearchQuery("")}> + setSearchQuery("")} hitSlop={8} className="p-1"> )} @@ -446,7 +446,7 @@ export default function HomeScreen() { { setShowFilterMenu(!showFilterMenu); setShowSortMenu(false) }} className={cn( - "h-10 w-10 rounded-lg items-center justify-center", + "h-11 w-11 rounded-full items-center justify-center shrink-0", showFilterMenu ? "bg-primary/10" : "bg-muted/50" )} > @@ -455,7 +455,7 @@ export default function HomeScreen() { { setShowSortMenu(!showSortMenu); setShowFilterMenu(false) }} className={cn( - "h-10 w-10 rounded-lg items-center justify-center", + "h-11 w-11 rounded-full items-center justify-center shrink-0", showSortMenu ? "bg-primary/10" : "bg-muted/50" )} > diff --git a/apps/mobile/app/(tabs)/quick-prompts.tsx b/apps/mobile/app/(tabs)/quick-prompts.tsx index b4f6524..c33965f 100644 --- a/apps/mobile/app/(tabs)/quick-prompts.tsx +++ b/apps/mobile/app/(tabs)/quick-prompts.tsx @@ -220,18 +220,18 @@ export default function QuickPromptsScreen() { - - + + {searchQuery.length > 0 && ( - setSearchQuery("")}> + setSearchQuery("")} hitSlop={8} className="p-1"> )} @@ -239,7 +239,7 @@ export default function QuickPromptsScreen() { { setShowFilterMenu(!showFilterMenu); setShowSortMenu(false) }} className={cn( - "h-10 w-10 rounded-lg items-center justify-center", + "h-11 w-11 rounded-full items-center justify-center shrink-0", showFilterMenu ? "bg-primary/10" : "bg-muted/50" )} > @@ -248,7 +248,7 @@ export default function QuickPromptsScreen() { { setShowSortMenu(!showSortMenu); setShowFilterMenu(false) }} className={cn( - "h-10 w-10 rounded-lg items-center justify-center", + "h-11 w-11 rounded-full items-center justify-center shrink-0", showSortMenu ? "bg-primary/10" : "bg-muted/50" )} > diff --git a/apps/mobile/app/notifications.tsx b/apps/mobile/app/notifications.tsx index 8ca1a7f..9c24625 100644 --- a/apps/mobile/app/notifications.tsx +++ b/apps/mobile/app/notifications.tsx @@ -220,14 +220,14 @@ export default function NotificationsPage() { {unreadCount > 0 && ( )} setConfirmClear(true)} - className="h-9 w-9 items-center justify-center rounded-lg bg-muted/50 active:bg-muted" + className="h-10 w-10 shrink-0 items-center justify-center rounded-full bg-muted/50 active:bg-muted" > diff --git a/apps/mobile/app/project/[projectId]/[sessionId]/files.tsx b/apps/mobile/app/project/[projectId]/[sessionId]/files.tsx index 3417311..2d600b9 100644 --- a/apps/mobile/app/project/[projectId]/[sessionId]/files.tsx +++ b/apps/mobile/app/project/[projectId]/[sessionId]/files.tsx @@ -161,7 +161,7 @@ export default function FilesPage() { className="flex-row items-center gap-2 border-b border-accent px-4" style={{ paddingTop: insets.top + 10, paddingBottom: 10 }} > - Modified files diff --git a/apps/mobile/app/project/[projectId]/[sessionId]/models.tsx b/apps/mobile/app/project/[projectId]/[sessionId]/models.tsx index 391daed..6a942d2 100644 --- a/apps/mobile/app/project/[projectId]/[sessionId]/models.tsx +++ b/apps/mobile/app/project/[projectId]/[sessionId]/models.tsx @@ -239,7 +239,7 @@ export default function ModelsPage() { className="flex-row items-center gap-2 border-b border-accent px-4" style={{ paddingTop: insets.top + 10, paddingBottom: 10 }} > - Select Model @@ -254,14 +254,14 @@ export default function ModelsPage() { ) : null} - + - + - {searchMode ? ( - + Files - diff --git a/apps/mobile/app/sessions.tsx b/apps/mobile/app/sessions.tsx index b154963..ac16ccd 100644 --- a/apps/mobile/app/sessions.tsx +++ b/apps/mobile/app/sessions.tsx @@ -322,18 +322,18 @@ export default function SessionsScreen() { - - + + {searchQuery.length > 0 && ( - setSearchQuery("")}> + setSearchQuery("")} hitSlop={8} className="p-1"> )} @@ -341,7 +341,7 @@ export default function SessionsScreen() { { setShowFilterMenu(!showFilterMenu); setShowSortMenu(false) }} className={cn( - "h-10 w-10 rounded-lg items-center justify-center", + "h-11 w-11 rounded-full items-center justify-center shrink-0", showFilterMenu ? "bg-primary/10" : "bg-muted/50" )} > @@ -350,7 +350,7 @@ export default function SessionsScreen() { { setShowSortMenu(!showSortMenu); setShowFilterMenu(false) }} className={cn( - "h-10 w-10 rounded-lg items-center justify-center", + "h-11 w-11 rounded-full items-center justify-center shrink-0", showSortMenu ? "bg-primary/10" : "bg-muted/50" )} >