0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-21 23:21:08 +01:00
gitea/templates
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
..
admin Fix double border in system status table (#31363) (#31401) 2024-06-18 06:29:43 +08:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Fix navbar + menu flashing on page load (#31281) (#31342) 2024-06-12 15:26:04 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Fix some URLs whose sub-path is missing (#31289) (#31292) 2024-06-07 15:43:47 +00:00
explore Refactor web routes (#30519) 2024-04-17 08:31:37 +00:00
mail Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
org Right align the "Settings" menu item in overflow-menu (#30764) (#30777) 2024-04-30 16:40:09 +08:00
package Avoid 500 panic error when uploading invalid maven package file (#31014) (#31027) 2024-05-20 07:10:27 +00:00
projects Remove .segment from .project-column (#31204) (#31239) 2024-06-04 09:45:50 +00:00
repo Fix the wrong line number in the diff view page when expanded twice. (#31431) (#31440) 2024-06-20 20:33:51 +00:00
shared Optimize runner-tags layout to enhance visual experience (#31258) (#31263) 2024-06-06 04:35:36 +08:00
status Initial support for colorblindness-friendly themes (#30625) 2024-04-24 00:18:41 +08:00
swagger Fix missing images in editor preview due to wrong links (#31299) (#31393) 2024-06-17 15:07:21 +08:00
user Fixed incorrect localization explorer.go (#31348) (#31350) 2024-06-13 02:16:17 +00:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
install.tmpl Fix some UI problems (install/checkbox) (#30854) (#30870) 2024-05-06 06:58:42 +00:00
post-install.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00