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

perf: infobox screenshot robustness #3

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

AmeroHan
Copy link
Contributor

@AmeroHan AmeroHan commented Nov 2, 2024

隐藏所有不属于 infobox 的元素,而非隐藏预定义的一部分。

原因

曾经出现 infobox 被某个元素遮挡的情况,如:

image

48ec5cf 修复了该特例,但对其他情形无效。

此 PR 通过 visibility: hidden 隐藏所有infobox外的元素,可以避免未来可能出现的任何遮挡,效果:

image

隐藏所有不属于infobox的元素,而非隐藏预定义的一部分
Copy link
Collaborator

@dragon-fish dragon-fish left a comment

Choose a reason for hiding this comment

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

LGTM

@dragon-fish
Copy link
Collaborator

dragon-fish commented Nov 2, 2024

@dragon-fish dragon-fish merged commit dd2ba1b into project-epb:master Nov 2, 2024
@dragon-fish
Copy link
Collaborator

理论上,通过 selector 计算 injectStyles 是否是一个通用的解决方案

@AmeroHan
Copy link
Contributor Author

AmeroHan commented Nov 2, 2024

另请同步上游仓库 https://github.com/koishijs/koishi-plugin-mediawiki

提交请求

理论上,通过 selector 计算 injectStyles 是否是一个通用的解决方案

应该是的。

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