From 72a3223c7656aa58d4894e2d2d3d9b9ae2a84d02 Mon Sep 17 00:00:00 2001 From: ARUNAVO RAY Date: Wed, 9 Sep 2026 11:16:17 +0530 Subject: [PATCH] fix(orgs): keep organization cards at column width when few are shown (#410) The organizations grid used `repeat(auto-fit, minmax(27rem, 1fr))`. `auto-fit` collapses empty tracks, so with a single organization the one card stretched across the whole content area, while two or more sat at half width. `auto-fill` keeps the tracks, so a card is the same width no matter how many there are. Both the list and the loading skeleton use the same class, so both changed. Checked in the browser at 820, 1440 and 2000 px wide with one and with four organizations: one card now stays at column width, two columns at 1440, three at 2000, and a single column below the `sm` breakpoint, all unchanged from before for two or more cards. --- src/components/organizations/OrganizationsList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/organizations/OrganizationsList.tsx b/src/components/organizations/OrganizationsList.tsx index 73e7e24..c770d63 100644 --- a/src/components/organizations/OrganizationsList.tsx +++ b/src/components/organizations/OrganizationsList.tsx @@ -306,7 +306,7 @@ export function OrganizationList({ }, [organizations, filter]); return isLoading ? ( -
+
{Array.from({ length: 5 }).map((_, i) => ( ))} @@ -340,7 +340,7 @@ export function OrganizationList({ )}
) : ( -
+
{filteredOrganizations.map((org, index) => { const isLoading = loadingOrgIds.has(org.id ?? ""); const statusBadge = getStatusBadge(org.status);