Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop-app): reserve mounted-header room for the relocated top bar

Diego Zacarias9bebb92f0e9e
diff --git a/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx b/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx
index e52575fee..a61fbaba8 100644
--- a/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx
+++ b/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx
@@ -75,6 +75,20 @@ describe('chat drawer header stacking', () => {
expect(body).toContain('z-index: var(--layer-dropdown)')
})
+ it('reserves mounted-header space for the relocated top-bar so app actions do not flow under it', () => {
+ // Regression guard: when the top-bar moves into the embed column, the sandbox-ui
+ // mounted header must reserve its footprint (search + gap + bell) on the right,
+ // not 0 — otherwise the app action buttons render under the global search box.
+ const rule = /\.content-panel--chat-drawer-open \.sandbox-ui-mounted-header\s*\{([^}]*)\}/.exec(
+ stylesCss
+ )
+ expect(rule).not.toBeNull()
+ const padding = /padding-right:\s*([^;]+);/.exec(rule![1] ?? '')
+ expect(padding).not.toBeNull()
+ expect(padding![1].trim()).not.toBe('0')
+ expect(padding![1]).toContain('--app-notification-drawer-width')
+ })
+
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.css
index 903842b49..a20d61881 100644
--- a/desktop-app/ui/src/styles.css
+++ b/desktop-app/ui/src/styles.css
@@ -12661,7 +12661,14 @@ pre {
}
.content-panel.content-panel--chat-drawer-open .sandbox-ui-mounted-header {
- padding-right: 0;
+ /* The top-bar (global search + bell) is relocated into the embed column, left
+ of the drawer, so the mounted header must reserve room for it exactly as it
+ does in the default app view — otherwise its action buttons flow under the
+ search box. This reserves only the top-bar footprint (search + gap + 36px
+ bell); the drawer sits BELOW the mounted header (aligned to the embed slot
+ top), so it needs no reservation here. The .page padding above already
+ reserves the drawer gutter for the embed slot. */
+ padding-right: calc(var(--app-notification-drawer-width) + var(--space-2) + 36px);
}
/* The chat drawer occupies the right rail at --layer-chat-overlay, above the