From 6a033cd2dbd7f2c608613b5fc10bd114859306e2 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Sun, 3 May 2026 20:25:50 +0200 Subject: [PATCH] fix(status): keep git popup above panels --- src/components/StatusBar.test.tsx | 1 + src/components/StatusBar.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/StatusBar.test.tsx b/src/components/StatusBar.test.tsx index 5e43f0d3..0a7e6897 100644 --- a/src/components/StatusBar.test.tsx +++ b/src/components/StatusBar.test.tsx @@ -567,6 +567,7 @@ describe('StatusBar', () => { /> ) fireEvent.click(screen.getByTestId('status-sync')) + expect(screen.getByTestId('status-bar')).toHaveStyle({ zIndex: '30' }) expect(screen.getByTestId('git-status-popup')).toBeInTheDocument() expect(screen.getByText('main')).toBeInTheDocument() expect(screen.getByText(/2 ahead/)).toBeInTheDocument() diff --git a/src/components/StatusBar.tsx b/src/components/StatusBar.tsx index bda1a2e8..150c45e5 100644 --- a/src/components/StatusBar.tsx +++ b/src/components/StatusBar.tsx @@ -17,6 +17,7 @@ import type { VaultOption } from './status-bar/types' export type { VaultOption } from './status-bar/types' const COMPACT_STATUS_BAR_MAX_WIDTH = 1000 +const STATUS_BAR_STACKING_Z_INDEX = 30 function getWindowWidth() { return typeof window === 'undefined' ? Number.POSITIVE_INFINITY : window.innerWidth @@ -246,7 +247,7 @@ function StatusBarFooter(props: StatusBarFooterProps) { fontSize: 12, color: 'var(--muted-foreground)', position: 'relative', - zIndex: 10, + zIndex: STATUS_BAR_STACKING_Z_INDEX, }} >