Files
ccandClaude Opus 5.5 e31bd84c24 fix(ui): view toggles stay put when used
AGENTS.md: a control that switches views or states keeps its position and
size in every state. Applied: the version picker has a fixed width, so
Keys | Files no longer shifts between versions; the diff's mode is a
Unified | Split control in a fixed centre column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 20:30:57 +01:00

19 lines
983 B
Markdown

# Notes for agents
## UI
- Avoid horizontal scrolling. A sideways trackpad swipe over content that
scrolls horizontally can trigger the browser's history back/forward
gesture instead, navigating away by accident. Lay content out to fit the
width (wrap, stack, or switch layout at a breakpoint) rather than adding
`overflow-x: auto`.
- Don't join inline items with a dot connector (`a · b · c`). Separate them
with spacing (`gap`), grouping with wider gaps between groups, or with
structure (a second line, a smaller or muted style). The `···` that marks
collapsed lines in diffs is not a separator and stays.
- A control that switches between views or states (a segmented toggle,
tabs) must not move when it's used: keep its position and its size the
same in every state it switches between. Put it first, before anything
that only exists in some of those states, and give options fixed or equal
widths rather than letting their labels resize the group.