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

Fix #65: Refactor category pill tooltip rendering #67

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

xiaoxuan010
Copy link
Contributor

  • 我同意我的所有贡献将以GPL-3.0协议开源。

此 Pull Request 修改了位于 src/components/CategoryPillComponent.tsx 中的 CategoryPillComponent,以修复 #65 提到的提示框不显示问题。

代码修改包括:

  • 将工具提示挂载的查询选择器从 "#above-the-fold, ytm-slim-owner-renderer" 更改为 "#viewbox_report",适配Bilibili网页布局。
  • bottomOffset"0px" 更新为 "unset",并添加了 topOffset"4px",以改善工具提示的位置。
  • 修改 prependElement 使用第二个子节点而不是第一个元素子节点,以确保正确的工具提示附着。

@hanydd hanydd merged commit f001fc5 into hanydd:master Nov 10, 2024
2 checks passed
@xiaoxuan010 xiaoxuan010 deleted the fix-65 branch November 13, 2024 15:27
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.

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