Skip to content

Menus: Put the merge method and Update branch menus into one menu component - #87

Merged
whereareiam merged 1 commit into
devfrom
refactor/menu-rows
Oct 4, 2026
Merged

whereareiam merged 1 commit into
devfrom
refactor/menu-rows

Conversation

@whereareiam

Copy link
Copy Markdown
Owner

Stacked on #86 (base is its branch).

What

Two menus on the pull request page restyle Forgejo's native dropdown as GitHub's action menu (8px padding, 32px rows, 6px radius, no divider lines):

  • the merge method menu, in styles/components/issues/pull_review.ts;
  • the "Update branch" menu, in styles/pages/pull-request.css.

They were written separately. components/common/menu/menu.css (new, linked from component_assets.tmpl) now holds both: the rules they share are written once for a list of menus, followed by what differs between the two kinds — an action menu, and a single-choice menu whose current choice carries a check mark. Styling another native menu means adding its selector to the list.

Left alone: the tooltip-style "…" menus (upstream's tippy.ts) and components/common/dropdown, which is GitHub's select panel with dividers, a different pattern.

Verification

Both menus measure the same as before the move: merge method menu 280px wide, 8px padding, 32px rows with 6px 8px padding and no borders; "Update branch" menu at 755–974px by 430–510px after a real click, rows indented 32px with the check mark. The 21-page before/after comparison is unchanged from #86. bun vitest (403 passed), bun check and Prettier pass.

🤖 Generated with Claude Code

…ponent

Both menus restyle Forgejo's native dropdown as GitHub's menu of 32px
rows without dividers, but one lived in the pull request theme styles
and the other in the pull request page stylesheet, written separately.

components/common/menu/menu.css now holds both: the shared row rules
once, then what differs between an action menu and a single-choice menu
with its check mark. Another menu is styled by adding it to the list.

No visual change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam whereareiam added the skip-changelog Internal change excluded from release notes label Oct 4, 2026
Base automatically changed from refactor/list-heading to dev October 4, 2026 15:42
@whereareiam
whereareiam merged commit bbf37ea into dev Oct 4, 2026
7 checks passed
@whereareiam
whereareiam deleted the refactor/menu-rows branch October 4, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Internal change excluded from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant