Skip to content

HTTP: the environment picker keeps the right margin of Save - #1677

Merged
vmillet-dev merged 1 commit into
dev/1.2.2from
http-picker-margin
Nov 27, 2026
Merged

vmillet-dev merged 1 commit into
dev/1.2.2from
http-picker-margin

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Closes #1671

Reproduced on dev/1.2.2 by the new test, over the whole window at 1100 points: the environment picker ends at 1098, « Save » at 1078, the request's margin at 1080. The picker stood 2 points from the edge, not 10 as the ticket read: besides the 10-point inset, the room kept for the strip's end left out the item spacing between « New request » and the picker, which then ran 8 points past it.

Change

  • The strip's end keeps the request line's margin (BAR_INSET, 20 points), as its left end does.
  • The gap between « New request » and the picker is counted once, in the room kept for them and in the drawing (16 points, as it looked).
  • The tabs' scroll area stops as much earlier, so the last tab still stops before « New request ».
  • « Save » itself ends where the measured widths of the request line leave it, one or two points short of the margin, as before.
Before After

Tests

  • app/rail_toggle_tests.rs: over the whole window, the picker ends at the request's margin to the half point, and « Save » within it, in comfortable and compact density. Fails on dev/1.2.2 (1098 against 1080).
  • Run: fmt, clippy (ui, all targets, all features), cargo test -p ui --lib (986 passed). e2e 31_http_environments left to CI (no step changes).

🤖 Generated with Claude Code

The strip's end used a 10 px inset and left out the item spacing between New request and the picker, which then ran 8 px past its room.
@vmillet-dev vmillet-dev added the bug Something isn't working label Nov 27, 2026
@vmillet-dev
vmillet-dev merged commit a08b856 into dev/1.2.2 Nov 27, 2026
21 of 22 checks passed
@vmillet-dev
vmillet-dev deleted the http-picker-margin branch November 27, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant