0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-24 19:12:51 +01:00
gitea/templates/repo/diff
Giteabot a4f977e00b
Fix the wrong line number in the diff view page when expanded twice. (#31431) (#31440)
Backport #31431 by @charles7668

close #31149

The problem is caused by the `data-query=` string affecting the parsing
of the `last_left` parameter. When the page is first rendered,
`data-query=` does not exist. However, after clicking expand, the
returned HTML contains this string, causing the line numbers to start
from 1 upon expanding a second time.

before fix

![圖片](https://github.com/go-gitea/gitea/assets/30816317/36842bde-cc30-43ba-91b0-c60a50a6dc0f)

after fix

![圖片](https://github.com/go-gitea/gitea/assets/30816317/b73d7e40-ec01-48ae-9992-09c19ee477ad)

Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
2024-06-20 20:33:51 +00:00
..
blob_excerpt.tmpl Fix the wrong line number in the diff view page when expanded twice. (#31431) (#31440) 2024-06-20 20:33:51 +00:00
box.tmpl Improve mobile review ui (#31091) (#31136) 2024-05-28 14:10:01 +00:00
comment_form.tmpl Add svg linter and fix incorrect svgs (#30086) 2024-03-26 11:19:15 +00:00
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +08:00
comments.tmpl Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) 2024-04-14 18:44:11 +08:00
compare.tmpl Remove fomantic button module (#30475) 2024-04-14 17:53:52 +00:00
conversation.tmpl Improve mobile review ui (#31091) (#31136) 2024-05-28 14:10:01 +00:00
conversation_outdated.tmpl Improve user experience for outdated comments (#29050) 2024-02-08 01:50:48 +00:00
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 2022-09-17 10:45:32 +08:00
escape_title.tmpl cleanup locale function usage (#27227) 2023-09-24 20:31:58 +00:00
image_diff.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
new_comment.tmpl
new_review.tmpl Prevent allow/reject reviews on merged/closed PRs (#30686) 2024-04-27 11:55:03 +00:00
options_dropdown.tmpl Replace more gt- with tw-, update frontend docs (#29595) 2024-03-05 05:29:32 +00:00
section_code.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
section_split.tmpl Use vertical layout for multiple code expander buttons (#31122) (#31152) 2024-05-29 09:06:34 +02:00
section_unified.tmpl Use vertical layout for multiple code expander buttons (#31122) (#31152) 2024-05-29 09:06:34 +02:00
stats.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
whitespace_dropdown.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00