Skip to content

clean-repo-sidebar - Preserve repository edit button - #10029

Merged
fregante merged 2 commits into
refined-github:mainfrom
wakamex:fix-clean-repo-sidebar-edit-button
Sep 11, 2026
Merged

fregante merged 2 commits into
refined-github:mainfrom
wakamex:fix-clean-repo-sidebar-edit-button

Conversation

@wakamex

@wakamex wakamex commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #10027

GitHub renders the repository metadata edit control inside the About heading, so hiding the heading also hid the control. This keeps the heading when it contains that control and only removes the description margin when the heading is hidden.

Tested with npm test.

Controlled owner-DOM reproduction using GitHub’s current Edit repository metadata button markup. Both captures use the same page, viewport, and sidebar crop. Only the clean-repo-sidebar CSS differs.

Before
owned-sidebar-before-9e86fd7f-owner-emulation

After
owned-sidebar-after-9e05e857-owner-emulation

Comment thread source/features/clean-repo-sidebar.css Resolved
@fregante

fregante commented Sep 3, 2026

Copy link
Copy Markdown
Member

By the way if you're interested:

@wakamex
wakamex force-pushed the fix-clean-repo-sidebar-edit-button branch from 9e05e85 to d8d991f Compare September 3, 2026 16:26
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Please avoid force-pushing to this PR. It makes it harder for reviewers to track what changed since the last review.

Just push new commits on top of the branch instead — PRs are squashed on merge, so the commit history doesn't need to be clean.

@fregante
fregante merged commit 0d3aac9 into refined-github:main Sep 11, 2026
14 checks passed
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.

clean-repo-sidebar removes the "About" heading with the settings cogwheel on my own repositories, making it impossible to edit

2 participants