Repository navigation
highlight-non-default-base-branch - Disable on stacked PRs - #9890
Conversation
…m squeezing GitHub's legacy issue-row metadata line is a `nowrap` flex container whose children shrink. Appending the base-branch badge overflows it, so every item shrinks below its intrinsic width and breaks mid-phrase: the stacked-PR counter, the review state, the update time and the badge each split over two lines. Let the line wrap and keep its items at their intrinsic width instead.
0a3bee3 to
3e10d85
Compare
|
Please avoid force-pushing to this PR. It makes it harder for reviewers to track what changed since the last review. Just push new commits on top of the branch instead — PRs are squashed on merge, so the commit history doesn't need to be clean. |
|
What does it look like without Refined GitHub? What feature is causing this issue, if any? Also test URLs are required or else I can't verify the problem nor the fix |
| @@ -0,0 +1,12 @@ | |||
| .js-issue-row:has(.rgh-base-branch) .d-flex.text-small.color-fg-muted { | |||
There was a problem hiding this comment.
I don’t think it's Refined GitHub doing this, so the code should be self-contained in github-bugs.css, not touch unrelated JS features.
It seems that this rule is avoiding the whole PR row just because this feature has run on it, which seems like a weird exclusion.
I've updated the description, for the test url I can't share my private repo, let me create one public repo where we can test this one. |
|
Thank you for the screenshot! This has been a recurring problem in the PR list, it seems that their new widget + Since you're using stacked PRs, I wonder if it makes sense to just hide the branch in this case instead. As the name suggests, For example: for (const link of prLinks) {
+ if (elementExists('that stacked PR icon'))
+ continueand later: + if (prs.length === 0)
+ return |
I see, yeah it makes sense, let me work on it and hide it, thanks so much for clarity |
highlight-non-default-base-branch - Disabled on stacked PRs
highlight-non-default-base-branch - Disabled on stacked PRshighlight-non-default-base-branch - Disable on stacked PRs
highlight-non-default-base-branch - Disable on stacked PRshighlight-non-default-base-branch - Skip stacked PRs
highlight-non-default-base-branch - Skip stacked PRshighlight-non-default-base-branch - Disable on stacked PRs
|
@fregante have updated the description and screenshot, added a test link, I've tested myself, you can try testing it from your side (you need to zoom a bit since there is no CI checks on the PR, layout is breaking at 175% zoom for me on 14 inch screen) |
|
@fregante can we merge this one if it looks good? |
|
A new release isn't coming for a while, so I'll leave this open to give an opportunity for others to disagree |
Addresses review comment on refined-github#9890: the sandbox used to verify the stacked-PR fix should be linked so it can be retested later.


Test URLs
https://github.com/carousell/rgh-stacked-pr-sandbox/pulls?q=sort%3Aupdated-desc+is%3Apr+state%3Aopen+
Screenshot
without refined github it looks like this

before the fix when refined github is enabled

after the fix
