Skip to content

Fix font mismatch in new pull request search box - #10077

Closed
tris203 wants to merge 1 commit into
refined-github:mainfrom
tris203:t3code/fix-new-search-box-spacing
Closed

tris203 wants to merge 1 commit into
refined-github:mainfrom
tris203:t3code/fix-new-search-box-spacing

Conversation

@tris203

@tris203 tris203 commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

The monospacing was adding extra padding to the cursor in the search window. This made editing searches really disorienting, as your text appeared behind the cursor
Before:
image

Related to:

Test URLs

https://github.com/refined-github/sandbox/pulls?q=is%3Apr+is%3Aopen+try+to+add+anything+here

Screenshot

image Monospace still appearing where it should: image

[class^='prc-PageLayout-Header'] input,
/* Test URL: https://github.com/refined-github/refined-github/pulls */
/* Only PR headers: list headers also contain a search input with a separate text overlay. */
[class^='prc-PageLayout-Header']:has(.js-pull-header-details) input,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I avoided this because broad :has() usage had a serious perf impact, so we avoid it as much as possible

@tris203
tris203 deleted the t3code/fix-new-search-box-spacing branch September 12, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants