Repository navigation
fix(history): 放大预览顶部不再重复显示提示词 - #68
Merged
Merged
Conversation
生产历史双击放大图片时,顶部那条身份信息把提示词又显示了一遍:列表里已经有完整 的,而顶部这条是截断的,既重复又看不全(用户反馈「没必要出现」)。 - ZoomModal 的 name 改为可选:不给就整条不渲染,只留右上角关闭按钮(占位保持 关闭按钮仍贴右) - HistoryGallery 不再把提示词当 name 传;参考图那处「参考图」标签保留(短且有信息量) - 两个回归用例:没给 name 时顶部无身份条;历史双击放大后提示词全页只出现一次 来源:c59dceb(2026-08-25,直接提交进 main,无关联 PR)把 useImageZoom 接到 生产历史时取了 item.prompt 当 name。
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.
问题:生产历史里双击放大图片,预览顶部又显示一遍提示词 —— 列表里已有完整的,顶部这条还是截断的,重复且看不全。
改动:
ZoomModal的name改为可选,缺省时顶部身份条整条不渲染(只留关闭按钮);HistoryGallery不再把提示词当name传。参考图那处的「参考图」标签保留。来源:
c59dceb(2026-08-25,直接提交进 main,无关联 PR)把useImageZoom接到生产历史时取了item.prompt当name。验证:前端 1068 用例全过(+2 回归:没给 name 不渲染身份条 / 历史双击后提示词全页只出现一次);tsc、eslint、build 通过;
check_docs.py通过。