Skip to content

sticky-sidebar - Enable on more pages#9037

Closed
SunsetTechuila wants to merge 11 commits into
mainfrom
sticky-sidebar-profile
Closed

sticky-sidebar - Enable on more pages#9037
SunsetTechuila wants to merge 11 commits into
mainfrom
sticky-sidebar-profile

Conversation

@SunsetTechuila

@SunsetTechuila SunsetTechuila commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Because why not. That's better than leaving the space empty. Feel free to close without comments if you disagree.

I'll extract cleanup and improvements from #8979 to a separate PR once this PR is closed or merged.

Test URLs

https://github.com/fregante

https://github.com/refined-github

https://github.com/settings/profile

https://github.com/refined-github/refined-github/settings

https://github.com/refined-github/refined-github/wiki/Contributing

https://github.com/eslint/eslint/discussions

Screenshot

image
image

@SunsetTechuila SunsetTechuila changed the title sticky-sidebar - Enable on profile pages sticky-sidebar - Enable on user profile pages Mar 4, 2026
@SunsetTechuila SunsetTechuila changed the title sticky-sidebar - Enable on user profile pages sticky-sidebar - Enable on profile pages Mar 4, 2026
@SunsetTechuila SunsetTechuila changed the title sticky-sidebar - Enable on profile pages sticky-sidebar - Enable on profile & settings pages Mar 4, 2026
@SunsetTechuila SunsetTechuila changed the title sticky-sidebar - Enable on profile & settings pages sticky-sidebar - Enable on more pages Mar 4, 2026
@fregante

fregante commented Mar 4, 2026

Copy link
Copy Markdown
Member

Because why not

Mostly because verifying that they work and keeping them working in the future becomes prohibitive. Also because if any of these break catastrophically (e.g. crashes the repo settings page) then we have to hotfix/disable the feature everywhere.

Comment thread source/features/sticky-sidebar.css Outdated
Comment on lines -15 to +24
'.Layout-sidebar .BorderGrid', // `isRepoRoot`
'.repository-content .Layout-sidebar .BorderGrid', // `isRepoRoot`
'.Layout-sidebar #partial-discussion-sidebar', // Old `isConversation`
'div[data-testid="issue-viewer-metadata-pane"]', // `isConversation`
'#discussion_bucket #partial-discussion-sidebar', // `isDiscussion`
'.page-profile .h-card', // `isUserProfile`
'.orghead + div .gutter-lg > :nth-child(2) > *', // `isOrganizationProfile`,
'navigation-list[data-turbo-frame="settings-frame"]', // `isUserSettings`
'div:has(> nav[aria-label="General settings"])', // `isRepoSettings`
'.wiki-rightbar',
'.discussions-header-wrap + div .Layout-sidebar > *', // `isDiscussionList`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It should be possible to replace a good portion of these selectors with .Layout-sidebar

User settings: https://github.com/settings/profile
Repo settings: https://github.com/refined-github/refined-github/settings
Wiki: https://github.com/refined-github/refined-github/wiki/Contributing
Discussion list: https://github.com/eslint/eslint/discussions

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.

Honestly I'm not excited about this long list and I'd rather not add support. The repo home and the conversation sidebar are heavily used every day; these other pages are tangential at best. Supporting (and making future changes) to a feature that affects 12 different layouts sounds like a pain. So let's undo this part and keep the improved variables, if they actually improve something.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What if I remove settings and organization profile? Still no?

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.

Still

@SunsetTechuila SunsetTechuila deleted the sticky-sidebar-profile branch March 5, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants