Skip to content

Fix scrolling to resolved comment anchors #13343

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

Merged
merged 3 commits into from
Oct 31, 2020

Conversation

zeripath
Copy link
Contributor

As described on discord, when the window.location.hash refers to a
resolved comment then the scroll to functionality does not work.

This PR fixes this.

Signed-off-by: Andrew Thornton [email protected]

As described on discord, when the window.location.hash refers to a
resolved comment then the scroll to functionality does not work.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added type/bug topic/ui Change the appearance of the Gitea UI backport/v1.13 labels Oct 28, 2020
@zeripath zeripath added this to the 1.14.0 milestone Oct 28, 2020
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 28, 2020
Copy link
Member

@silverwind silverwind left a comment

Choose a reason for hiding this comment

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

Did not test this but change seems benign enough to not cause issues.

@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 Oct 29, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 31, 2020
@codecov-io
Copy link

Codecov Report

Merging #13343 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13343      +/-   ##
==========================================
- Coverage   42.15%   42.14%   -0.01%     
==========================================
  Files         690      690              
  Lines       75888    75888              
==========================================
- Hits        31987    31984       -3     
- Misses      38663    38666       +3     
  Partials     5238     5238              
Impacted Files Coverage Δ
modules/queue/workerpool.go 58.77% <0.00%> (-1.23%) ⬇️

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 6c32367...59ba61c. Read the comment docs.

@techknowlogick techknowlogick merged commit ffc8ce7 into go-gitea:master Oct 31, 2020
@techknowlogick
Copy link
Member

please send backport :)

@zeripath zeripath deleted the fix-scrolling-to-anchors branch October 31, 2020 09:36
zeripath added a commit to zeripath/gitea that referenced this pull request Oct 31, 2020
* Fix scrolling to resolved comment anchors

As described on discord, when the window.location.hash refers to a
resolved comment then the scroll to functionality does not work.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>

* Apply suggestions from code review

Co-authored-by: silverwind <[email protected]>

Co-authored-by: silverwind <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
lafriks pushed a commit that referenced this pull request Oct 31, 2020
* Fix scrolling to resolved comment anchors

As described on discord, when the window.location.hash refers to a
resolved comment then the scroll to functionality does not work.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>

* Apply suggestions from code review

Co-authored-by: silverwind <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
@techknowlogick techknowlogick added the backport/done All backports for this PR have been created label Nov 5, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants