Skip to content

fix(files): keep the Changes stage icon after the row's overflow menu opens - #1021

Merged
pascalandr merged 1 commit into
devfrom
fix/changes-stage-icon
Oct 19, 2026
Merged

pascalandr merged 1 commit into
devfrom
fix/changes-stage-icon

Conversation

@pascalandr

Copy link
Copy Markdown
Contributor

Summary

FileRowActions renders each secondary action twice: as an inline icon button, and as an item of the row's overflow menu, which replaces the inline buttons on narrow rows. The Changes stage/unstage action created its icon only once, so opening the menu moved that single DOM node into the menu. Once the row widened again, the inline button had no icon.

The Workspace tree already avoids this with icon getters. The stage icon is now a getter too. The action array keeps its identity, which large inventories rely on. The pinned preview eye never overflows, so it stays as it is. No other FileRowActions caller shares a node between the inline button and the menu.

Validation

  • New check in git-changes-scale: open and close the menu on a narrow row, widen it, and verify the inline stage button still has its icon. It failed before the fix (0 icons) and passes after.
  • git-changes-scale 6/6 and git-history 20/20 pass.
  • UI typecheck passes.

… opens

FileRowActions renders each secondary action twice: as an inline icon button and as an item of the row's overflow menu, which replaces the inline buttons on narrow rows. The Changes stage/unstage action created its icon once, so opening the menu moved that single DOM node into the menu; once the row widened again the inline button had no icon. The Workspace tree already avoids this with icon getters. The stage icon is now a getter too, keeping the stable action array that large inventories rely on; the pinned preview eye never overflows and stays as is.

Validation: git-changes-scale now opens and closes the menu on a narrow row, widens it and checks the inline stage button still has its icon; it failed (0 icons) before the fix and passes after. git-changes-scale 6/6 and git-history 20/20 pass; typecheck passes.
@pascalandr
pascalandr merged commit 7eb401e into dev Oct 19, 2026
12 of 13 checks passed
@pascalandr
pascalandr deleted the fix/changes-stage-icon branch October 19, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant