Skip to content

fix(popup): align detail rows with menu look padding - #1976

Merged
Brendonovich merged 1 commit into
devfrom
fix/popup-detail-row-alignment
Dec 1, 2026
Merged

Brendonovich merged 1 commit into
devfrom
fix/popup-detail-row-alignment

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Cause

detail_row in crates/opencode-ui/src/popup/rows.rs hardcoded MENU metrics (pad_l: 12.0, pad_r: 6.0, gap: 8.0, row_h: 28.0) instead of using the menu's active Look. In card menus such as the session location card (CARD: pad_l: 8.0, pad_r: 8.0), .detail() rows (the remote server URL, no-branch, and read-only workspace) were shifted 4pt to the right compared to regular and submenu rows.

Fix

  • Pass the resolved item_look (CARD, SELECT, or MENU with item_inset/item_end) into detail_row in crates/opencode-ui/src/popup/view.rs and use item_look.row_h for its list height.
  • Read look.row_h, look.pad_l, look.pad_r, and look.gap in detail_row (crates/opencode-ui/src/popup/rows.rs).

Verification

  • Not compiled or captured locally (cargo/rustc is not installed in this environment); relying on CI for build verification.

Requested by: @Brendonovich (Brendan via Slack)

@Brendonovich
Brendonovich merged commit 5bde1b0 into dev Dec 1, 2026
8 checks passed
@Brendonovich
Brendonovich deleted the fix/popup-detail-row-alignment branch December 1, 2026 08:41
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