Skip to content

fix(ui): resize dividers paint a fat multi-line bar when hovered or dragged - #104013

Merged
steipete merged 1 commit into
mainfrom
claude/sidebar-drag-appearance-51492e
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/sidebar-drag-appearance-51492e

Conversation

@steipete

Copy link
Copy Markdown
Contributor
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where hovering or dragging any resizable divider (chat split view, chat detail sidebar, navigation sidebar) painted the entire 4px gutter as a solid accent bar. Stacked against the active-pane ring and the detail panel's own border-left, the drag affordance read as an ugly multi-line smear instead of a single divider line.

The navigation sidebar resizer had the opposite bug: the document-level .sidebar-resizer { background: transparent } override defeats the component's shadow :host(:hover)/:host(.dragging) accent styles (document rules win over :host rules), so dragging the nav sidebar gave no visual feedback at all.

Why This Change Was Made

Resize dividers should look like the hairline separators used everywhere else in the Control UI, with a thin accent highlight while interacting — not a filled gutter bar.

  • resizable-divider host is now transparent; the visible line is a centered ::after — 1px var(--border) hairline at rest, 2px var(--accent) on hover/drag/keyboard focus. The extended ::before hit area and all pointer/keyboard behavior are unchanged.
  • .chat-sidebar loses its border-left: the divider rendered next to it already draws that separator, so the border doubled the line (mobile already suppressed it).
  • .sidebar-resizer drops the now-dead background: transparent; since the divider paints its own line, the nav resizer also gains the intended thin accent hover/drag feedback.

User Impact

Dragging or hovering pane/sidebar dividers shows one thin accent line (color feedback preserved), instead of a fat bar flanked by extra border lines. The navigation sidebar resizer now gives hover/drag feedback at all.

Surface Before After
Split view, dragging before drag after drag
Divider close-up, hover (4x zoom) before hover zoom after hover zoom
Divider close-up, idle (4x zoom) before idle zoom after idle zoom
Nav sidebar, dragging before nav drag after nav drag

Full-window drag state: before / after

Evidence

  • Screenshots above captured with the repo's mock-gateway Playwright harness (ui/src/test-helpers/control-ui-e2e.ts), light theme, split view open, mid-drag / hover / idle.
  • pnpm test ui/src/components/resizable-divider.test.ts ui/src/pages/chat/chat-page.test.ts — 18/18 passed. These cover separator semantics, keyboard resize, and pointer drag, all untouched by this change.
  • ui/src/e2e/sidebar-customization.e2e.test.ts asserts elementFromPoint hits the divider and drag-resizes the nav to an exact width; the host box and ::before hit area are unchanged, so those contracts hold.
  • pnpm check:changed (lint/format/typecheck lanes) green.
  • Structured autoreview (Codex, gpt-5.5): clean.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 11, 2026
@steipete
steipete merged commit e07ad4b into main Jul 11, 2026
94 of 96 checks passed
@steipete
steipete deleted the claude/sidebar-drag-appearance-51492e branch July 11, 2026 00:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant