Skip to content

fix(dim-bots): restore compact PR list layout - #10389

Open
harshdubey1234 wants to merge 1 commit into
refined-github:mainfrom
harshdubey1234:fix/dim-bots-compact-layout
Open

harshdubey1234 wants to merge 1 commit into
refined-github:mainfrom
harshdubey1234:fix/dim-bots-compact-layout

Conversation

@harshdubey1234

@harshdubey1234 harshdubey1234 commented Nov 10, 2026 •

Copy link
Copy Markdown

Fixes #10387

Problem

Since #10300, bot PRs in the compact PR list layout wrap onto two lines and lose status columns.

Root cause

  1. Grid template mismatch - dim-bots.css forces grid-template-areas: 'selection status primary metadata actions', which omits the main-content area. In the comfortable layout this is fine (it's an empty second row), but the compact layout places main-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.

  2. Wrong element hidden - The > div:has(...) rule targets the author/dates cell in comfortable mode. In compact mode it matches the metadataContainer (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']):

  • Restores the six-area grid template including main-content
  • Keeps the metadataContainer visible with display: flex
  • Comfortable layout, commit rows, and interacted/tagged rows are completely unaffected

How to verify

  1. Open https://github.com/OctoLinker/OctoLinker/pulls
  2. Switch to compact density (toggle beside the sort dropdown)
  3. Confirm Dependabot rows display on a single line with all status columns visible
  4. Switch back to comfortable - verify nothing changed

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
@github-actions github-actions Bot added the bug label Nov 10, 2026
@github-actions github-actions Bot changed the title fix(dim-bots): restore compact PR list layout fix(dim-bots): restore compact PR list layout Nov 10, 2026
@fregante

Copy link
Copy Markdown
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 branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

dim-bots breaks bot rows in the compact PR list

2 participants