Skip to content

Fix 'Diff stats' scroll error #7535

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

Closed
wants to merge 2 commits into from
Closed

Fix 'Diff stats' scroll error #7535

wants to merge 2 commits into from

Conversation

joesaunderson
Copy link

@joesaunderson joesaunderson commented Jul 19, 2019

When the 'Show diff stats' window is open, if the diff stats container is longer than the viewport, the sticky element does not scroll and hides the diff files in the background, although they continue to scroll.

Removed sticky class.

Fixes #5532

When the 'Show diff stats' window is open, if longer than the screen, the sticky element does not scroll and hides the diff files in the background. Fixes #5532
@codecov-io
Copy link

Codecov Report

Merging #7535 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7535      +/-   ##
==========================================
+ Coverage   41.23%   41.24%   +0.01%     
==========================================
  Files         469      469              
  Lines       63620    63620              
==========================================
+ Hits        26232    26241       +9     
+ Misses      33965    33956       -9     
  Partials     3423     3423
Impacted Files Coverage Δ
routers/repo/view.go 43.25% <0%> (+1.01%) ⬆️
modules/process/manager.go 81.15% <0%> (+4.34%) ⬆️
models/unit.go 67.56% <0%> (+5.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0d6d2f...a03233f. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 19, 2019
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 19, 2019
@lafriks lafriks added the topic/ui Change the appearance of the Gitea UI label Jul 19, 2019
@lafriks lafriks added this to the 1.10.0 milestone Jul 19, 2019
@lunny
Copy link
Member

lunny commented Jul 20, 2019

Any screenshots?

@joesaunderson
Copy link
Author

See #5532

Rather than removing sticky, add to the bare <div> element so that diff actions are sticky.
@joesaunderson
Copy link
Author

@silverwind agreed, updated to mirror Github style (Review button sticky)

@joesaunderson joesaunderson deleted the patch-1 branch July 22, 2019 08:08
@silverwind
Copy link
Member

Why close?

@joesaunderson
Copy link
Author

There is also some JS affecting this element. Looking into it but out of scope for this PR.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PR] Diff Stats
6 participants