Skip to content

Pull request: Make the Update branch menu a single-choice menu - #84

Merged
whereareiam merged 1 commit into
devfrom
fix/update-branch-menu
Oct 4, 2026
Merged

whereareiam merged 1 commit into
devfrom
fix/update-branch-menu

Conversation

@whereareiam

Copy link
Copy Markdown
Owner

Stacked on #83 (base is its branch): both add rules to styles/pages/pull-request.css.

What was wrong

The menu under "Update branch by merge":

Before After
Position top edge 5px above the button's bottom edge (overlapping) 3px below the button
Width 195px, narrower than the 221px button group 219px, the group's width
Rows 1px divider under the first row no dividers
Current choice filled grey row check mark at the left; rows indented 32px

The check is drawn with a mask in the text colour, so it follows light and dark themes.

Not measured against GitHub: its "Update branch" control only appears with branch protection, which is not available on a private repository without a paid plan. The pattern follows GitHub's single-choice menus (the merge method menu measured in #73 uses the same check mark).

One thing left: the first row still shows a faint highlight when the menu opens, which is Forgejo's keyboard-selection state.

Verification

Opened the menu with a real click in the preview and measured it. bun vitest (403 passed) and Prettier pass. Screenshots are not attached.

🤖 Generated with Claude Code

The menu overlapped its button by 5px, was narrower than the button
group, drew a divider under the first row and marked the current choice
with a filled row.

It now opens 4px below the button at the group's width, rows have no
dividers, and the current choice carries a check mark, as in GitHub's
single-choice menus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam whereareiam added the bug Something isn't working label Oct 4, 2026
Base automatically changed from fix/auto-merge-scheduled to dev October 4, 2026 15:42
@whereareiam
whereareiam merged commit 1f327f5 into dev Oct 4, 2026
7 checks passed
@whereareiam
whereareiam deleted the fix/update-branch-menu branch October 4, 2026 15: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