From f3e8be5a07ea2ad86b6f704537c37648501ecebe Mon Sep 17 00:00:00 2001 From: Julian Benegas Date: Sat, 7 Feb 2026 22:34:02 +0000 Subject: [PATCH] fix: repo list text overflow and mobile wrapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace whitespace-nowrap with truncate for text-overflow ellipsis on repo names (both plain text and highlighted search results) - Add min-w-0 to flex link container to allow proper truncation - On mobile: stack repo name and stats vertically (each on its own line) - On mobile: hide table column headers, show inline labels instead (★ for stars, 'posts' suffix) - On mobile: remove min-w-120 and min-w-fit constraints to prevent horizontal scroll - Update ListItem to allow flexible height on mobile (h-auto min-h-4.5) while keeping fixed height on desktop (sm:h-4.5) --- apps/web/components/repo-list-with-search.tsx | 29 +++++++++++-------- apps/web/components/typography.tsx | 6 +++- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/apps/web/components/repo-list-with-search.tsx b/apps/web/components/repo-list-with-search.tsx index 92a26a3..b57ec3e 100644 --- a/apps/web/components/repo-list-with-search.tsx +++ b/apps/web/components/repo-list-with-search.tsx @@ -223,11 +223,11 @@ export function RepoListWithSearch({
-
+

@@ -235,7 +235,7 @@ export function RepoListWithSearch({ {headerText}
-
+
{!displayedQuery && ( Stars )} @@ -254,44 +254,49 @@ export function RepoListWithSearch({
{displayRepos.length > 0 || isGithubSearching ? ( - + {displayRepos.map((repo) => { const highlight = "highlight" in repo ? (repo.highlight as string) : null return ( - + {highlight ? ( ) : ( - + {repo.name} )} -
+
{!displayedQuery && ( - + + {formatCompactNumber(repo.stars)} )} {formatCompactNumber(repo.posts)} + posts {!displayedQuery && ( - + {formatRelativeTime(repo.lastActive, now)} )} diff --git a/apps/web/components/typography.tsx b/apps/web/components/typography.tsx index 9409343..3dac8eb 100644 --- a/apps/web/components/typography.tsx +++ b/apps/web/components/typography.tsx @@ -83,7 +83,11 @@ export const ListItem = ({ className?: string children: React.ReactNode }) => { - return
{children}
+ return ( +
+ {children} +
+ ) } export const TableColumnTitle = ({