From ff8fb72ce620f7317244c25c2771fb1ff2cd0543 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Mon, 9 Mar 2026 19:02:44 +1100 Subject: [PATCH] fix(studio): wrap project actions (#43532) ## What kind of change does this PR introduce? - UI fix ## What is the current behavior? - The _New project_ button overflows to the right on smaller (phone-sized) breakpoints - Due to addition of _Sort by_ dropdown last week ## What is the new behavior? - All actions now wrap on smaller breakpoint | Before | After | | --- | --- | | Supabase-383C523F-0BF1-48CD-8052-F6D68301DA4E | Supabase-ED7AD923-E837-4D48-B7D1-6DA3C6E45BFA | --- .../components/interfaces/HomePageActions.tsx | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/apps/studio/components/interfaces/HomePageActions.tsx b/apps/studio/components/interfaces/HomePageActions.tsx index 105588fd130..91efa611861 100644 --- a/apps/studio/components/interfaces/HomePageActions.tsx +++ b/apps/studio/components/interfaces/HomePageActions.tsx @@ -66,13 +66,13 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag }, [sortStorage, isSuccessSortStorage, setSort, slug]) return ( -
-
+
+
} size="tiny" - className="w-32 md:w-64" + className="w-full sm:w-32 md:w-64" value={search} onChange={(event) => setSearch(event.target.value)} actions={[ @@ -89,32 +89,34 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag ]} /> - setFilterStatusStorage(options)} - /> +
+ setFilterStatusStorage(options)} + /> - setSortStorage(val as ProjectListSort)} - /> + setSortStorage(val as ProjectListSort)} + /> - {isFetchingProjects && } + {isFetchingProjects && } +
-
+
{viewMode && setViewMode && (