Fix #65: Refactor category pill tooltip rendering #67
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
此 Pull Request 修改了位于
src/components/CategoryPillComponent.tsx
中的CategoryPillComponent
,以修复 #65 提到的提示框不显示问题。代码修改包括:
"#above-the-fold, ytm-slim-owner-renderer"
更改为"#viewbox_report"
,适配Bilibili网页布局。bottomOffset
从"0px"
更新为"unset"
,并添加了topOffset
为"4px"
,以改善工具提示的位置。prependElement
使用第二个子节点而不是第一个元素子节点,以确保正确的工具提示附着。