show-names - Fix spacing for issues on narrow views#9622
Conversation
|
I'm really tired of seeing this type of bug with the parens, I need to find a way to fix the way text wraps so when it breaks it doesn't act so badly |
| element.matches([ | ||
| '[data-testid="avatar-link"]', // Commment on React-based views | ||
| '[data-testid="issue-body-header-author"]', | ||
| // TODO [2026-11-26]: Drop selectors that have :not(${narrowViewportWrapperSelector}) |
There was a problem hiding this comment.
Those classes were kept for backward compatibility, since with the current issue body header component we don't need margin-leftt:
refined-github/source/features/show-names.tsx
Lines 71 to 73 in 977312a
I opened a dedicated issue: |
|
(locked due to people possibly landing here for unrelated issues) @SunsetTechuila the CSS you wrote earlier looks good and it fixes #9623, do you want to open a PR? div[class^='ActivityHeader'][class*='actionsWrapper'] {
flex-wrap: wrap-reverse;
}
@container issueViewerContainer (max-width: 768px) {
span[class^='MarkdownLastEditedBy-module__lastEditInfoContainer'] {
font-size: 0;
span[class^='MarkdownLastEditedBy-module__editorLogin']:before {
content: 'Edited';
font-size: 12px;
}
}
}
[class*="^IssueBodyHeader-module__titleSection"] {
display: contents;
}
|
The CSS I wrote doesn't fix that issue on its own. It only does when combined with this PR.
I don't like this addition. It breaks how GitHub's code works instead of integrating with it, only to achieve a worse result: extra spacing on the left.
No. I can reopen this PR and add the CSS from #9622 (comment) to it. |
I took a screenshot with that code I pasted, what do you mean?
It was a quick trial, surely we can make further adjustments. I thought about using |











Fixes #9372
Test URLs
refined-github/sandbox#131
Screenshot