Skip to content
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

希望鼠标停留在“视频类别标签“(categoryPill)时显示提示信息 #65

Closed
xiaoxuan010 opened this issue Nov 7, 2024 · 0 comments · Fixed by #67
Closed
Labels
bug Something isn't working

Comments

@xiaoxuan010
Copy link
Contributor

如题,一些视频标签在第一次遇到时可能会不太清楚该类别的具体含义,我会习惯性地将鼠标停留在该标签上试图获取相关信息。然而,在当前版本中,当鼠标停留在独家限定标签时,弹出的文字提示是视频标题。

实际效果

image

预期效果

image

环境

  • 系统:Windows11 24H2
  • 浏览器:Chrome 130.0.6723.116
  • 插件版本:v0.4.0
  • 测试视频:BV1yYDUYGEcW

可能的解决方向

查看代码发现当前版本中,插件在sponsorBlockCategoryPill元素的aria-label属性中有相关提示。如果在该元素中再添加一条title属性,即可实现预期效果。

xiaoxuan010 added a commit to xiaoxuan010/BilibiliSponsorBlock that referenced this issue Nov 10, 2024
@hanydd hanydd added the bug Something isn't working label Nov 10, 2024
@hanydd hanydd linked a pull request Nov 10, 2024 that will close this issue
1 task
hanydd added a commit that referenced this issue Nov 10, 2024
Fix #65: Refactor category pill tooltip rendering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 已完成
Development

Successfully merging a pull request may close this issue.

2 participants