fix: 修复设置页tab高亮失效与OCR tab未隐藏问题#983
Open
HeizoFinds wants to merge 1 commit into
Open
Conversation
HeizoFinds
commented
May 16, 2026
- 设置页顶部tab滚动时高亮能跟随当前section
- 未安装文本识别插件时,OCR tab不再出现
scroll-spy 重构为 IntersectionObserver:消除 useEffect 测 DOM 时 section 尚未挂载导致 offsetTop 都为 MAX_SAFE_INTEGER、永远停在第一个 tab 的 timing bug。同时清理 menuContent 中已废弃的 pageNavActionRef + onScroll plumbing。 OCR gate:functionSettings 的 tab filter 漏处理 ocrSettings 项,没有按 PLUGIN_ID_RAPID_OCR 是否 ready 来隐藏;导致未安装文本识别插件时 tab 仍然出现,对应内容却 hidden,体验断层。 补一行 filter 跟旁边的 video/translation/chat 三个 plugin gate 对齐。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.