fix(app): keep the activity panel's column gap and follow the moved scroll owner in tests

This commit is contained in:
Kit Langton 2026-10-21 15:48:34 -07:00
parent 260401f985
commit e7787bf84f
2 changed files with 3 additions and 2 deletions

View file

@ -841,7 +841,9 @@ test("long MCP lists stay in the viewport in a real RTL locale", async ({ page }
await summary.getByRole("button", { name: "MCP", exact: true }).click()
const menu = page.getByRole("group", { name: "MCP", exact: true })
await expect(menu.locator(".session-mcp-row")).toHaveCount(30)
await expect.poll(() => menu.evaluate((element) => element.scrollHeight > element.clientHeight)).toBe(true)
await expect
.poll(() => menu.locator("[data-scrollable]").evaluate((element) => element.scrollHeight > element.clientHeight))
.toBe(true)
await expect
.poll(async () => {
const bounds = (await menu.boundingBox())!

View file

@ -44,7 +44,6 @@
max-height: min(270px, var(--kb-popper-content-available-height, 270px));
display: flex;
flex-direction: column;
column-gap: 8px;
/* The capsule's hairline, so both insets round to the same device pixels. */
border: 0.5px solid transparent;
border-radius: 10px;