Collapse editor top bar to one row (back + filename)

The cut/copy/paste icons were dead placeholders (no handlers);
clipboard actions live in the floating selection menu, so the second
icon row is removed. The bar goes from two rows at 52dp to one row at
32dp, giving the editor 20dp more height.

- filename_test.go now finds the label by type (back icon precedes it)
- menu tracking tests updated for the new editorY (reg.Y = 10+32)
- scroll_cursor e2e simulation updated to match
- On-device verified: back button works, floating menu places above
  with room and flips below on the first lines, handles unaffected.
This commit is contained in:
gmp
2026-08-18 08:32:19 -04:00
parent dc35aa2e36
commit 2b7c9cd3eb
5 changed files with 43 additions and 24 deletions
+12
View File
@@ -934,3 +934,15 @@ grabbable from the uncovered top strip of their boxes.
Regressions: `internal/editor/selection_menu_track_test.go` (tracking +
above-placement arithmetic + first-line flip).
## 16. Top bar: single row (2026-08-18)
The dead cut/copy/paste icon row was removed from the editor top bar
(clipboard actions live exclusively in the floating selection menu, the
native pattern). The bar is now one 32dp row — back icon + filename —
down from two rows at 52dp, giving the editor 20dp more height. The
menu's "above first" placement (section 15) is unchanged; with the
shorter bar, selections on the first lines flip below because there is
no room above, and the menu may overlap the top bar when clamped high —
both are the native toolbar's behaviour (transient, dismissed by
tapping elsewhere).