From 1f55bcdfc220eb9efbaf4c0d12d864d4d530332d Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:05:58 -0400 Subject: [PATCH] fix: clean up mobile repo controls and prevent event bubbling - Remove unused currentFilterLabel variable in RepoListControls - Simplify mobile dropdown button to icon-only - Add event.stopPropagation() handlers to DropdownMenuContent - Set z-index to 200 to ensure dropdown appears above other content --- frontend/src/components/repo/RepoListControls.tsx | 4 +--- frontend/src/components/repo/RepoRowActions.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/repo/RepoListControls.tsx b/frontend/src/components/repo/RepoListControls.tsx index 7b9d4c9a..eb9a948d 100644 --- a/frontend/src/components/repo/RepoListControls.tsx +++ b/frontend/src/components/repo/RepoListControls.tsx @@ -54,7 +54,6 @@ export function RepoListControls({ const [showMenu, setShowMenu] = useState(false) const currentSortLabel = SORT_OPTIONS.find((s) => s.value === sortMode)?.label ?? 'Recent' - const currentFilterLabel = FILTER_OPTIONS.find((f) => f.value === filterMode)?.label ?? 'All' return (
@@ -86,9 +85,8 @@ export function RepoListControls({ {isMobile ? ( - diff --git a/frontend/src/components/repo/RepoRowActions.tsx b/frontend/src/components/repo/RepoRowActions.tsx index c183d9c4..884c8446 100644 --- a/frontend/src/components/repo/RepoRowActions.tsx +++ b/frontend/src/components/repo/RepoRowActions.tsx @@ -85,7 +85,12 @@ export function RepoRowActions({ - + e.stopPropagation()} + onPointerDown={(e) => e.stopPropagation()} + > handleSourceControlOpen(true)} disabled={!isReady}