Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sticky-file-header on commits #5717

Merged
merged 1 commit into from
Jun 24, 2022
Merged

Fix sticky-file-header on commits #5717

merged 1 commit into from
Jun 24, 2022

Conversation

kidonng
Copy link
Member

@kidonng kidonng commented Jun 22, 2022

Broken by GitHub's Pull Request File Tree feature added a while ago.

Test URLs

1d9dd9f

Screenshot

Screen.Recording.2022-06-23.at.01.45.58.mov

I would really like to add kidonng/cherry@997ccdf as well, since that's pretty much the only place left with no sticky file header (and technically speaking, GitHub already enabled it for markup i.e. Markdown files).


P.S. it's funny GitHUb pushed a bug when I'm working on this

image

@kidonng kidonng added the bug label Jun 22, 2022
Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

Seems right. Can you also hotfix it?

@fregante
Copy link
Member

The only problem is that there's no border between the two headers:

Screen Shot 8

I don’t think this has a straightforward fix, so this PR can be merged before today’s release unless you mark it as draft first

@fregante fregante merged commit 02db1c7 into main Jun 24, 2022
@fregante fregante deleted the sticky-file-header branch June 24, 2022 16:40
@fregante fregante restored the sticky-file-header branch June 28, 2022 09:39
@kidonng
Copy link
Member Author

kidonng commented Jun 28, 2022

That component has no shadow indeed. The shadow on PRs comes from a standalone component .toolbar-shadow. Here is my take to replicate this shadow:

.pr-toolbar.is-stuck {
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.075);
    border-bottom: 1px solid rgba(0,0,0,.15)
}

@fregante fregante deleted the sticky-file-header branch June 28, 2022 18:18
@fregante
Copy link
Member

fregante commented Jun 29, 2022

The only problem is that there's no border between the two headers:

GitHub does the same on PRFiles too. PR welcome to improve the style globally, but it's otherwise not-a-bug

Screen Shot 6

@ncfavier
Copy link
Contributor

top: 60px breaks gists:

@kidonng
Copy link
Member Author

kidonng commented Jun 30, 2022

@ncfavier #5732

@ncfavier
Copy link
Contributor

This is still not fixed for me on 22.7.11.

@ncfavier
Copy link
Contributor

Never mind, I'm still on 22.6.25. Firefox was displaying the version as 22.7.11 before restarting, something wrong with hotfixing maybe?

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.

None yet

3 participants