Skip to content

feat: support multi-line selection with URL parameters #35210

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kerwin612
Copy link
Member

image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 4, 2025
@github-actions github-actions bot added modifies/templates This PR modifies the template files modifies/frontend labels Aug 4, 2025
kerwin612 and others added 2 commits August 4, 2025 21:22
Co-authored-by: silverwind <me@silverwind.io>
Signed-off-by: Kerwin Bryant <kerwin612@qq.com>
Co-authored-by: silverwind <me@silverwind.io>
Signed-off-by: Kerwin Bryant <kerwin612@qq.com>
@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 Aug 4, 2025
@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 Aug 5, 2025
@lunny lunny added this to the 1.25.0 milestone Aug 5, 2025
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

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

I think other pages are broken.

Image

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. labels Aug 5, 2025
@kerwin612 kerwin612 force-pushed the feature/multi-line-selection-url branch from 291c27c to 886f546 Compare August 9, 2025 09:35
@kerwin612 kerwin612 requested a review from wxiaoguang August 9, 2025 09:54
@wxiaoguang
Copy link
Contributor

Have you fixed the problems?

image

ps: I don't have time recently, feel free to ask other maintainers to review and dismiss my "change request" if the bugs have been fixed.

@wxiaoguang wxiaoguang removed their request for review August 9, 2025 13:16
@kerwin612 kerwin612 requested a review from a team August 11, 2025 02:15
@@ -14,7 +14,7 @@ function changeHash(hash: string) {
// it selects the code lines defined by range: `L1-L3` (3 lines) or `L2` (singe line)
function selectRange(range: string): Element {
for (const el of document.querySelectorAll('.code-view tr.active')) el.classList.remove('active');
const elLineNums = document.querySelectorAll(`.code-view td.lines-num span[data-line-number]`);
const elLineNums = document.querySelectorAll(`.code-view td.lines-num span[id^="L"]`);
Copy link
Contributor

@wxiaoguang wxiaoguang Aug 11, 2025

Choose a reason for hiding this comment

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

Still don't understand why you need to change the selector.

span[data-line-number] is clearer and literally more correct than span[id^="L"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged modifies/frontend modifies/templates This PR modifies the template files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants