Skip to content

Pull request: Define the merge box section row's measurements once - #88

Merged
whereareiam merged 1 commit into
devfrom
refactor/merge-section-row
Oct 4, 2026
Merged

whereareiam merged 1 commit into
devfrom
refactor/merge-section-row

Conversation

@whereareiam

Copy link
Copy Markdown
Owner

Stacked on #87 (base is its branch).

What

A merge box section row is styled in styles/components/issues/pull_review.ts. The scheduled-merge notice (#83) is styled as one more row in styles/pages/pull-request.css; because Forgejo's notice has different markup, it could not share the rule and repeated its numbers.

.merge.box now declares the row's measurements as custom properties:

Property Value
--merge-section-height 64px
--merge-section-padding 16px
--merge-section-icon 32px
--merge-section-divider border colour at 70%

The section rows, the status icon fragment and the notice all read them, so a change to the row applies to both.

Verification

Re-created the scheduled-merge state in the preview (removed afterwards). The notice measures as before: full width, 1–66px tall in the bar, 32px icon at 16px/16px, merge button at 82–114px, instructions link at 122–140px; the other rows are still 64–65px with 16px padding. bun vitest (403 passed), bun check and Prettier pass.

🤖 Generated with Claude Code

The scheduled-merge notice is styled as a merge box section in the page
stylesheet and repeated the section row's numbers by hand: 64px height,
16px padding, a 32px icon and the divider colour.

The merge box now declares them as custom properties where its rows are
styled, and both the rows and the notice read them.

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/menu-rows to dev October 4, 2026 15:43
@whereareiam
whereareiam merged commit 36bf022 into dev Oct 4, 2026
7 checks passed
@whereareiam
whereareiam deleted the refactor/merge-section-row 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