Skip to content

Simplify hide-readme-header: Fixes "Jump to definition" bug - #4046

Merged
fregante merged 1 commit into
mainfrom
fix-hide-readme
Mar 2, 2021
Merged

fregante merged 1 commit into
mainfrom
fix-hide-readme

Conversation

@fregante

@fregante fregante commented Mar 2, 2021 •

Copy link
Copy Markdown
Member

Fixes #4033

Test

https://github.com/sindresorhus/refined-github
https://github.com/probablykasper/vidl <-- the spacing should be reasonable, ref: #3495
https://github.com/no2chem/bigint-buffer <-- the popover position should be right, ref #4033

Screenshots

Screen Shot

Screen Shot

Screen Shot 1

@fregante fregante added the bug label Mar 2, 2021
@fregante
fregante marked this pull request as ready for review March 2, 2021 10:55
@fregante fregante changed the title Simplify hide-readme-header Simplify hide-readme-header: Fixes "Jump to definition" bug Mar 2, 2021
@fregante
fregante merged commit f94ea7f into main Mar 2, 2021
@fregante
fregante deleted the fix-hide-readme branch March 2, 2021 10:58
@fregante fregante mentioned this pull request Mar 2, 2021
1 task done
@simonkotwicz

simonkotwicz commented Mar 8, 2021 •

Copy link
Copy Markdown
Contributor

this causes a spacing issue in GitHub Enterprise (2.21.14) due to the

.repository-content #readme:not(.blob) .Box-header {
	margin-bottom: -40px;
}

Screen Shot 2021-03-08 at 4 11 08 PM

@busches

busches commented Mar 9, 2021

Copy link
Copy Markdown
Member

Noticed it today, I'll see if I can fix it tonight, otherwise PR welcome.

@simonkotwicz

Copy link
Copy Markdown
Contributor

Well I think it stems from the fact @fregante removed code that is no longer needed in Github but still needed in older Github enterprise versions so I'm not sure what kind of PR would be accepted or if the solution is just to add custom css.

@fregante

Copy link
Copy Markdown
Member Author

Maybe the only change needed here would be to drop the background and border-bottom, which wouldn’t affect github.com

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.

Method definition popover position

3 participants