修复 V2EX 打赏区导致的 PC 和移动端显示问题 - #5
Open
bowencool wants to merge 6 commits into
Open
Conversation
bowencool
marked this pull request as ready for review
June 25, 2026 07:14
bowencool
force-pushed
the
codex/v2ex-tip-form-fixes
branch
from
June 25, 2026 07:30
d04e065 to
830c839
Compare
bowencool
force-pushed
the
codex/v2ex-tip-form-fixes
branch
2 times, most recently
from
June 25, 2026 07:45
418584f to
2edd5ff
Compare
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.
概要
functions.createList(post, replyList),确保topReplyList、嵌套回复和冗余嵌套回复都按 core 的公共路径初始化。#topic-tip-box打赏区,避免原始.box被隐藏后打赏功能不可见。dist产物。背景
V2EX 在主题正文和回复区之间新增了打赏区,会改变回复区附近的页面结构。提交 PR 前我查到的相关上下文:
这次 PR 处理的是本地复现时看到的三个后续问题:
topReplyList的情况下调用createNestedRedundantList(replyList),从而触发topReplyList.findIndex报错。.box,其中也包括#topic-tip-box,但脚本渲染的详情视图没有重新挂载打赏 UI,导致打赏功能不可见。@match范围重叠。源码入口已经按#Rightbar做了运行时互斥,但生产构建会把 CSS 提前放到 userscript 顶层注入,导致两个脚本同时启用时仍然互相污染样式。验证
findIndex/createNestedRedundantList/topReplyList相关错误,并能正常发出postReplies回调。#app内,宽度和详情卡片一致,上下间距均为 20px。#tip-amount值会同步更新。#Rightbar存在,mobile 产物的顶层 CSS 注入先检查#Rightbar不存在。git diff --check检查改动源码文件。corepack pnpm --dir packages/pc run build-pc通过。corepack pnpm --dir packages/mobile exec vite build通过。说明:
corepack pnpm --dir packages/mobile run build-mobile在本地会先卡在vue-tsc兼容问题,还没进入业务代码:Search string not found: "/supportedTSExtensions = .*(?=;)"