-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 diff stats container #12002
Conversation
Not a huge fan of JS-based sticky implementations as CSS |
We are using Fomantic sticky element however, so no, it is not. |
A quick test show that
seem to work. Should we stop using Fomantic's sticky element in that case? |
Good call removing the sticky module, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now the glitch is gone
ping lg-tm bot |
* Fix sticky diff stats container * Use pure CSS sticky instead of Fomantic's JS * add border color to arc-green * add slight padding on sides * make linter happy Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Use pure CSS
position: sticky
and disable Fomantic sticky componentThe border is applied always because there isn't any way to check if element is stuck or not without delegating to JS.