diff --git a/src/client/changes/GitGraphSection.tsx b/src/client/changes/GitGraphSection.tsx
index d5ddf10f..9b6968f2 100644
--- a/src/client/changes/GitGraphSection.tsx
+++ b/src/client/changes/GitGraphSection.tsx
@@ -14,7 +14,7 @@ import {
import { api, SidebarApiError, type SessionScope } from '../api.ts'
import type { SidebarDiffRef } from '../state.ts'
import { relativeTime, t } from '../locales.ts'
-import { ActionButton, Notice, SelectMenu } from '../ui/index.ts'
+import { ActionButton, Notice } from '../ui/index.ts'
import { AnchoredPopover } from '../AnchoredPopover.tsx'
import { edgePath, layoutGraph } from './graph-layout.ts'
import { createFrameBatcher } from '../frame-batcher.ts'
@@ -351,13 +351,12 @@ export function GitGraphSection({ scope, worktree, visible, refreshTick = 0, onP
data-graph-count={page?.entries.length ?? 0}>
{linearFallback && {t('graphLinearFallback')}}
- {!linearFallback && ({ value: item.ref, label: item.name })),
- ...(branch && !branches.some(item => item.ref === branch) ? [{ value: branch, label: branch }] : []),
- ]} />}
+ {!linearFallback && }
{
@@ -370,7 +369,7 @@ export function GitGraphSection({ scope, worktree, visible, refreshTick = 0, onP
{ if (stale || !failedAppend.current) setRetry(value => value + 1); else void request(true) }}>{t('retry')}
}
{loading && {t('loading')}}
- {!loading && !error && page !== null && page.entries.length === 0 && {t(page.isRepo ? 'graphEmpty' : 'notRepo')}}
+ {!loading && !error && page !== null && page.entries.length === 0 && {t(page.isRepo ? 'graphEmpty' : 'notRepo')}
}
{range.top > 0 && }
{page?.entries.slice(range.start, range.end).map((entry, offset) => {
const index = range.start + offset
diff --git a/src/client/changes/graph.module.css b/src/client/changes/graph.module.css
index f23622c0..3a5fd668 100644
--- a/src/client/changes/graph.module.css
+++ b/src/client/changes/graph.module.css
@@ -1,6 +1,24 @@
.root { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-primary); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; }
-.select { flex: 1; min-width: 0; max-width: 100%; }
+/* The graph's branch filter is the changes lens's ONE native control (#944):
+ the desktop and touch sizes of the kit's controls, token borders and copy
+ colours so it does not fall back to the OS chrome inside a dark panel. */
+.select {
+ flex: 1;
+ min-width: 0;
+ max-width: 100%;
+ box-sizing: border-box;
+ min-height: 32px;
+ padding: 0 6px;
+ border: 1px solid var(--dsw-alias-border-l2);
+ border-radius: 0;
+ background: var(--dsw-alias-bg-base);
+ color: var(--dsw-alias-label-primary);
+ font: var(--dsw-font-xxs-12);
+}
+@media (hover: none), (pointer: coarse) {
+ .select { min-height: 44px; }
+}
.hint { color: var(--dsw-alias-label-secondary); font: var(--dsw-font-xxxs-11); }
.scroll { flex: 1; min-height: 0; overflow: auto; }
/* A commit row is ONE 28px line — rail, ref pills, subject (the GitLens-style
diff --git a/src/client/sidebar/dock-fallback.tsx b/src/client/sidebar/dock-fallback.tsx
index 52797aca..dd149988 100644
--- a/src/client/sidebar/dock-fallback.tsx
+++ b/src/client/sidebar/dock-fallback.tsx
@@ -27,7 +27,7 @@ import { useRightPanelOpen } from './right-panel-open.ts'
import css from '../sidebar.module.css'
/** 按钮尺寸与宿主展开按钮一致(28px),间距 8px。 */
-const BUTTON_SIZE = 32
+const BUTTON_SIZE = 28
const GAP = 8
/** 让位时的搜索步长(像素):够细以免跨过窄芯片,够粗以免几百次命中测试。 */
diff --git a/src/client/ui/workbench-section.module.css b/src/client/ui/workbench-section.module.css
index 514f0703..0321a0c0 100644
--- a/src/client/ui/workbench-section.module.css
+++ b/src/client/ui/workbench-section.module.css
@@ -34,6 +34,9 @@
align-items: center;
flex: none;
min-height: var(--ds-workbench-bar, 28px);
+ /* The divider is part of the bar, not an extra pixel on top of it: sections
+ are measured against the 28px workbench bar (changes graph, clue rows). */
+ height: var(--ds-workbench-bar, 28px);
border-top: 1px solid var(--dsw-alias-border-l2);
background: transparent;
}
diff --git a/tests/dock-fallback.spec.tsx b/tests/dock-fallback.spec.tsx
index 940694ce..7010bbd8 100644
--- a/tests/dock-fallback.spec.tsx
+++ b/tests/dock-fallback.spec.tsx
@@ -243,9 +243,9 @@ describe('dock fallback(空白会话入口)', () => {
await act(async () => { await new Promise(resolve => { setTimeout(resolve, 0) }) })
const shell = document.querySelector('[data-dsh-dock-fallback]')
expect(shell, '空白会话里备用入口应当在').not.toBeNull()
- // 464 被占 → 4px 步长退到第一个整格都不碰 Fullscreen(464..492) 的槽位 428
- // (右缘采样点 428+30=458 ≤ 460)。停在 464 就是压在 Fullscreen 上。
- expect(shell!.style.left, '占位时必须继续左移,不能停在 Fullscreen 上').toBe('428px')
+ // 464 被占 → 4px 步长退到第一个整格都不碰 Fullscreen(464..492) 的槽位 432
+ // (右缘采样点 432+26=458 ≤ 460)。停在 464 就是压在 Fullscreen 上。
+ expect(shell!.style.left, '占位时必须继续左移,不能停在 Fullscreen 上').toBe('432px')
} finally {
unmount()
anchor.remove()
@@ -342,8 +342,8 @@ describe('dock fallback(空白会话入口)', () => {
await act(async () => { await new Promise(resolve => { setTimeout(resolve, 0) }) })
const shell = document.querySelector('[data-dsh-dock-fallback]')
expect(shell, '空白会话里备用入口应当在').not.toBeNull()
- // 桩的命中测试说 x > 430 都被芯片盖住 → 右缘采样点(left+30) 必须 ≤ 430,即 left ≤ 400。
- expect(shell!.style.left, '被页签占位时必须继续左移').toBe('400px')
+ // 桩的命中测试说 x > 430 都被芯片盖住 → 右缘采样点(left+26) 必须 ≤ 430,即 left ≤ 404。
+ expect(shell!.style.left, '被页签占位时必须继续左移').toBe('404px')
} finally {
unmount()
anchor.remove()
@@ -506,8 +506,7 @@ describe('dock fallback(空白会话入口)', () => {
const shell = document.querySelector('[data-dsh-dock-fallback]')
expect(shell, '空白会话里备用入口应当在').not.toBeNull()
expect(shell!.style.top, '零尺寸锚点走右上角兜底').toBe('8px')
- // 32px shared IconButton geometry + 8px gap + 8px viewport margin.
- expect(shell!.style.left, '零尺寸锚点走右上角兜底').toBe(`${window.innerWidth - 48}px`)
+ expect(shell!.style.left, '零尺寸锚点走右上角兜底').toBe(`${window.innerWidth - 44}px`)
} finally {
unmount()
hit.restore()
@@ -531,9 +530,9 @@ describe('dock fallback(空白会话入口)', () => {
// 走查每步的**第一个**采样点就被占 → 一次 tick 恰好 100 次命中测试。
expect(hit.hits(), '让位走查必须封顶在 100 步(400px)').toBe(100)
const shell = document.querySelector('[data-dsh-dock-fallback]')
- // 锚点在 500、按钮 32px、间距 8px → 起点 460;100 步 × 4px = 400px → 60。
- // 耗尽上限后停在 460 - 400,而不是视口左缘;隐藏唯一入口不是可接受的兜底。
- expect(shell!.style.left, '耗尽上限后停在 460 - 400,而不是视口左缘').toBe('60px')
+ // 锚点在 500、按钮 28px、间距 8px → 起点 464;100 步 × 4px = 400px → 64。
+ // 耗尽上限后停在 464 - 400,而不是视口左缘;隐藏唯一入口不是可接受的兜底。
+ expect(shell!.style.left, '耗尽上限后停在 464 - 400,而不是视口左缘').toBe('64px')
} finally {
unmount()
hit.restore()
diff --git a/tests/e2e/git-graph.e2e.ts b/tests/e2e/git-graph.e2e.ts
index 7d783aa6..082b95ca 100644
--- a/tests/e2e/git-graph.e2e.ts
+++ b/tests/e2e/git-graph.e2e.ts
@@ -138,7 +138,9 @@ test('read-only Git Graph renders merge history and filters without checkout', a
await outer.evaluate(el => { el.scrollTop = el.scrollHeight })
await expectGraphFillsHeight()
await page.screenshot({ path: testInfo.outputPath('git-graph-long-changes.png'), fullPage: true })
- await changes.locator(':scope > div > button[aria-expanded]').click()
+ // The section header is the plugin's shared disclosure (h3 > button), not
+ // the bare div > button the earlier hand-rolled header used.
+ await changes.locator('button[aria-expanded]').first().click()
await expectGraphFillsHeight()
expect(errors).toEqual([])
} finally {
diff --git a/tests/e2e/global-uiux.e2e.ts b/tests/e2e/global-uiux.e2e.ts
index 4e40e4de..529fa157 100644
--- a/tests/e2e/global-uiux.e2e.ts
+++ b/tests/e2e/global-uiux.e2e.ts
@@ -12,7 +12,7 @@ import { join } from 'node:path'
import { test, expect, type Locator, type Page, type TestInfo } from '@playwright/test'
import { createHostApi, dismissOnboarding, gotoPage, hostRpc, sendFirstMessage } from './host'
import type { WorkflowRunView } from '../../src/workflow-runs'
-import { clueView, expectNoOverflow, floatClueWindow, selectMenu, setTheme } from './ui-helpers'
+import { clueView, expectNoOverflow, floatClueWindow, setTheme } from './ui-helpers'
async function openGuide(page: Page, kind: string): Promise {
const panel = page.locator('[data-sidebar-right-panel]:visible')
@@ -178,13 +178,14 @@ for (const touch of [false, true]) {
await expect(panel.locator('[class*="diffPane"]')).toBeVisible()
await screenshotMatrix(page, changesTabs.locator('xpath=../..'), 'git-diff', info)
metrics.gitTab = await controlStyle(gitTab)
- const branchFilter = gitRoot.getByRole('button', { name: 'Branch filter', exact: true })
+ // Upstream keeps ONE native select in the changes lens: the graph's own
+ // branch filter (#944). It is also the only