Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop-app): keep the top bar out of the chat drawer column when docked
Diego Zacarias1153a832ee3c
diff --git a/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx b/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsxindex cb9d50521..824bce39f 100644--- a/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx+++ b/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx@@ -61,6 +61,20 @@ describe('chat drawer header stacking', () => {expect(toastStackZIndex()).toBeGreaterThan(layer('layer-dropdown'))})+ it('anchors the top-bar to the left of the drawer column while the drawer is open', () => {+ // jsdom does not resolve `calc(var(...))`, so assert the declared rule text:+ // with the drawer open the top-bar's `right` is offset by the drawer width so+ // its right-aligned box lives in the embed column instead of over the drawer,+ // while the z-lift to the dropdown layer (593d7f5c) is preserved.+ const rule = /\.content-panel--chat-drawer-open \.top-bar\s*\{([^}]*)\}/.exec(stylesCss)+ expect(rule).not.toBeNull()+ const body = rule![1]+ const right = /right:\s*([^;]+);/.exec(body)+ expect(right).not.toBeNull()+ expect(right![1]).toContain('--chat-drawer-width')+ expect(body).toContain('z-index: var(--layer-dropdown)')+ })+it('documents the baseline: the header layer is below the drawer when it is not open', () => {document.body.innerHTML ='<section class="content-panel"><header class="top-bar"></header></section>'diff --git a/desktop-app/ui/src/styles.css b/desktop-app/ui/src/styles.cssindex 8f6f8e59b..5b52bd6ba 100644--- a/desktop-app/ui/src/styles.css+++ b/desktop-app/ui/src/styles.css@@ -12672,6 +12672,12 @@ pre {over it, exactly as they do over chat content in full-screen. Toasts(z-index: 4000) still sit above the header; the drawer's own z is unchanged. */.content-panel.content-panel--chat-drawer-open .top-bar {+ /* Anchor the absolute top-bar to the LEFT edge of the fixed chat drawer so its+ right-aligned box (wide global search) lives in the embed column instead of+ painting over the drawer's top-right corner. The bell/tray and search move as+ a unit, and their popovers (Inbox, search results) are anchored inside the+ top-bar so they follow it and still surface in the embed column. */+ right: calc(var(--chat-drawer-width) + var(--space-4) + var(--space-2));z-index: var(--layer-dropdown);}