Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop): restore mobile search width
Josué8accf770afbe
diff --git a/desktop-app/test/e2e-playwright/qa-recorder-inbox-search.spec.ts b/desktop-app/test/e2e-playwright/qa-recorder-inbox-search.spec.tsindex b39284777..76018eac2 100644--- a/desktop-app/test/e2e-playwright/qa-recorder-inbox-search.spec.ts+++ b/desktop-app/test/e2e-playwright/qa-recorder-inbox-search.spec.ts@@ -111,3 +111,46 @@ test('optional QA recorder: Desktop inbox and search journey — global search',await finalizeRecording(app, page)}})++test('optional QA recorder: Desktop search keeps the mobile header width', async ({}, testInfo) => {+ await assertAllowedTarget('EXTERNAL_REST_API_BASE_URL', EXTERNAL_REST_API_BASE_URL)+ await assertAllowedTarget('RPC_PROXY_BASE_URL', RPC_PROXY_BASE_URL)++ const credentials = desktopCredentials()+ let app: ElectronApplication | undefined+ let page: Page | undefined++ try {+ const launched = await launchDesktopApp(testInfo)+ app = launched.app+ page = launched.page+ await login(page, credentials)++ // This is the established mobile breakpoint. Measure the rendered controls+ // instead of checking CSS so the assertion catches a later media rule that+ // makes the input narrower than its available mobile header region.+ await app.evaluate(({ BrowserWindow }) => {+ const window = BrowserWindow.getFocusedWindow() ?? BrowserWindow.getAllWindows()[0]+ if (!window || window.isDestroyed()) throw new Error('Desktop BrowserWindow closed')+ window.setContentSize(900, 720)+ })+ const search = page.getByRole('textbox', { name: 'Search' })+ const headerRegion = page.locator('.header-left')+ await expect(search).toBeVisible({ timeout: 20_000 })+ await expect(headerRegion).toBeVisible({ timeout: 20_000 })+ await expect+ .poll(async () => {+ const [searchBox, regionBox] = await Promise.all([+ search.boundingBox(),+ headerRegion.boundingBox(),+ ])+ if (!searchBox || !regionBox) return 0+ return Math.round(searchBox.width - regionBox.width)+ })+ .toBe(0)++ await screenshotAndLog(page, testInfo, 'desktop-global-search-mobile-width')+ } finally {+ await finalizeRecording(app, page)+ }+})diff --git a/desktop-app/ui/src/styles.css b/desktop-app/ui/src/styles.cssindex 098a79a8a..b8a957a05 100644--- a/desktop-app/ui/src/styles.css+++ b/desktop-app/ui/src/styles.css@@ -2158,9 +2158,7 @@ h3 {.content-panel {--app-notification-drawer-width: clamp(280px, 42vw, 420px);- --app-header-utilities-width: calc(- var(--app-notification-drawer-width) + var(--space-2) + 36px- );+ --app-header-utilities-width: calc(var(--app-notification-drawer-width) + var(--space-2) + 36px);height: 100vh;min-height: 0;@@ -12383,7 +12381,7 @@ pre {padding-left: var(--space-4);}-@media (max-width: 1220px) {+@media (min-width: 901px) and (max-width: 1220px) {.global-search {width: clamp(160px, 32vw, var(--app-notification-drawer-width));min-width: 160px;