From 4122366ec9204575dc334ed6d369ef07f3c65e4a Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Sun, 25 Oct 2026 14:45:56 -0700 Subject: [PATCH 1/2] fix(app): realign composer menu height and keep table headers selectable --- packages/app/src/composer/editor/editor.tsx | 2 +- packages/session-ui/src/components/markdown.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/app/src/composer/editor/editor.tsx b/packages/app/src/composer/editor/editor.tsx index e36589d5ec5d..cfe3972fbe82 100644 --- a/packages/app/src/composer/editor/editor.tsx +++ b/packages/app/src/composer/editor/editor.tsx @@ -64,7 +64,7 @@ const COMPOSER_SUGGESTION_ROW_HEIGHT = 28 const COMPOSER_SUGGESTION_ROW_PEEK = 18 -const COMPOSER_SUGGESTION_TOP_PADDING = 8 +const COMPOSER_SUGGESTION_TOP_PADDING = 6 const COMPOSER_SUGGESTION_SEARCH_HEIGHT = 28 diff --git a/packages/session-ui/src/components/markdown.css b/packages/session-ui/src/components/markdown.css index 2240aac50fd2..3a4a8700d234 100644 --- a/packages/session-ui/src/components/markdown.css +++ b/packages/session-ui/src/components/markdown.css @@ -448,7 +448,6 @@ padding: 8px 12px; color: var(--v2-text-text-faint); font-weight: 500; - user-select: none; } td { From b8d11ed27dae4e94528629fd7a8519077538cb20 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Sun, 25 Oct 2026 14:54:06 -0700 Subject: [PATCH 2/2] test(app): expect the 6px composer menu padding in max-height checks --- packages/app/component-tests/composer.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/component-tests/composer.spec.ts b/packages/app/component-tests/composer.spec.ts index 5bd24552dd02..95dde796838d 100644 --- a/packages/app/component-tests/composer.spec.ts +++ b/packages/app/component-tests/composer.spec.ts @@ -472,7 +472,7 @@ story("grows suggestions while preserving visible timeline context", async ({ mo const boundary = component.locator('[data-slot="composer-suggestion-boundary-story"]') const suggestions = component.locator('[data-component="composer-suggestions"]') - await expect(suggestions).toHaveCSS("max-height", "166px") + await expect(suggestions).toHaveCSS("max-height", "164px") await expect(suggestions).toHaveCSS("scroll-padding-bottom", "18px") await expect.poll(() => suggestions.evaluate((element) => element.scrollHeight > element.clientHeight)).toBe(true) await expect @@ -497,12 +497,12 @@ story("grows suggestions while preserving visible timeline context", async ({ mo await boundary.evaluate((element) => { element.style.height = "400px" }) - await expect(suggestions).toHaveCSS("max-height", "306px") + await expect(suggestions).toHaveCSS("max-height", "304px") }) story("ignores a detached suggestion boundary", async ({ mount }) => { const component = await mount("opencode-composer-flow--detached-command-suggestion-boundary") - await expect(component.locator('[data-component="composer-suggestions"]')).toHaveCSS("max-height", "306px") + await expect(component.locator('[data-component="composer-suggestions"]')).toHaveCSS("max-height", "304px") }) // ThemeProvider writes resolved token values into a