Skip to content

✨ feat: 歌曲的评论文本可通过鼠标拖拽选择#648

Merged
imsyy merged 1 commit into
SPlayer-Dev:devfrom
fgt1t5y:dev
Dec 22, 2025
Merged

✨ feat: 歌曲的评论文本可通过鼠标拖拽选择#648
imsyy merged 1 commit into
SPlayer-Dev:devfrom
fgt1t5y:dev

Conversation

@fgt1t5y
Copy link
Copy Markdown
Contributor

@fgt1t5y fgt1t5y commented Dec 21, 2025

歌曲的评论文本可通过鼠标拖拽选择,方便复制文字。

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @fgt1t5y, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求旨在增强用户体验,通过允许用户选择和复制歌曲评论中的文本。这一改动使得评论内容更易于访问和利用,从而提升了应用程序的可用性。

Highlights

  • 评论文本可选择: 歌曲评论的文本现在可以通过鼠标拖拽进行选择,方便用户复制内容。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

您好,感谢您的贡献!这个 PR 实现了让评论文本可以被用户选择和复制的功能,这是一个很好的用户体验改进。

代码改动很简单直接,通过添加 user-select: text; 样式实现了预期功能。

我发现了一个可以改进的地方:新添加的样式在两个不同的地方重复了。我已经在代码中留下了具体的审查意见,建议将重复的 CSS 规则合并,以提高代码的可维护性。

总体来说,这是一个很棒的改进!

background-color: rgba(var(--primary), 0.12);
.text {
white-space: pre-wrap;
user-select: text;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

这行代码与第 223 行添加的 user-select: text; 样式重复了。为了提高代码的可维护性并遵循 DRY (Don't Repeat Yourself) 原则,建议将 .content .text.reply .text 的通用样式合并。

例如,您可以将这两个选择器组合起来,以避免代码重复:

.data {
  .content .text,
  .reply .text {
    white-space: pre-wrap;
    user-select: text;
  }
  /* ... 其他样式 ... */
}

或者,如果 .data 作用域下没有其他 .text 元素,可以简化为:

.data {
  .text {
    white-space: pre-wrap;
    user-select: text;
  }
  /* ... 其他样式 ... */
}

这样做可以让代码更简洁,也便于未来统一维护。

@imsyy imsyy merged commit 7083463 into SPlayer-Dev:dev Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants