Repository navigation
fix(dim-bots): restore compact PR list layout - #10389
Open
harshdubey1234 wants to merge 1 commit into
Open
harshdubey1234 wants to merge 1 commit into
harshdubey1234 wants to merge 1 commit into
Conversation
The dim-bots grid-template override omits the main-content area that GitHub's compact PR list layout places on the same row as the title. Without it the browser creates an implicit second row, wrapping the PR number, author and Bot badge below the title. A second :has() rule also hides the metadata container (reviews, checks, comments) in compact mode because it matches the status-column cell instead of the author/dates cell. Add a @media query that targets only compact PR rows (listItemCompact) and: - Restores the six-area grid template including main-content - Keeps the metadataContainer visible with display:flex The comfortable layout, commit rows and interacted/tagged rows are unaffected. Fixes refined-github#10387
dim-bots): restore compact PR list layout
Member
|
This is just an override, which is welcome on refined-github/yolo repo, but not here. The fix here should be to make sure that the existing css does not apply at all to the collapsed view. |
This was referenced Nov 11, 2026
quick-review, deep-reblame, quick-repo-deletion Show alt on Mac instead of Option in tooltips
#10390
Closed
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10387
Problem
Since #10300, bot PRs in the compact PR list layout wrap onto two lines and lose status columns.
Root cause
Grid template mismatch -
dim-bots.cssforcesgrid-template-areas: 'selection status primary metadata actions', which omits themain-contentarea. In the comfortable layout this is fine (it's an empty second row), but the compact layout placesmain-content(PR number, author, Bot badge) on the same row as the title. Without an explicit area the browser creates an implicit row, wrapping that content below.Wrong element hidden - The
> div:has(...)rule targets the author/dates cell in comfortable mode. In compact mode it matches themetadataContainer(reviews, checks, comments) instead, hiding the entire status column for any bot PR with comments.Fix
Add a
@media (width > 544px)block that targets only compact PR rows ([class*='listItemCompact']):main-contentmetadataContainervisible withdisplay: flexHow to verify