scrollable-areas - Disable on click#9363
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/276102b5-b70e-4b77-8f20-100a827ec53a Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
fregante
requested changes
May 7, 2026
fregante
left a comment
Member
There was a problem hiding this comment.
Looks good but it needs testing
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/73138a8c-cc7d-4f30-a563-2e676dda12fb Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add functionality to disable scrollable areas on click
Add functionality to disable scrollable areas on click
May 7, 2026
fregante
approved these changes
May 7, 2026
scrollable-areas - Disable on click
fregante
requested changes
May 7, 2026
| blockquote, | ||
| pre { | ||
| blockquote:not(.rgh-scrollable-expanded), | ||
| pre:not(.rgh-scrollable-expanded) { |
Member
There was a problem hiding this comment.
Update the selector to exclude nested scrollable area. Most likely it should be:
.comment-body,
[data-testid='markdown-body'] {
blockquote,
pre {
&:not(
/* Exclude clicked areas */
.rgh-scrollable-expanded,
/* Exclude nested scrollable areas */
blockquote,
pre
)
}
}The selectors in the TSX file don't need to be updated.
Contributor
Author
There was a problem hiding this comment.
Done in 4c03ba9. Used :not(.rgh-scrollable-expanded, :is(blockquote, pre) :is(blockquote, pre)) — the :is() shorthand covers all four nested combinations cleanly and also replaces the old :is(details, blockquote) :is(blockquote, pre) { max-height: none } override rule.
…parent' from sync comments Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/8fc606fd-ed59-4f6b-9653-e7ca84d0e904 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
fregante
approved these changes
May 7, 2026
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.
scrollable-areason click #6342Test URLs
#1146 (comment)
Screenshot