Repository navigation
Replies: 4 comments
|
0 replies
|
0 replies
|
0 replies
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[Feature] 为「已编辑 N 个文件」卡片增加「关闭悬停预览」开关
环境
现状
会话内的「已编辑 N 个文件」卡片,鼠标停在任意文件行上 500ms 后会自动弹出该文件的 diff 预览浮层;
单个文件时,标题按钮同样会弹出。这是固定行为,没有设置项可以关闭。
复现
问题
鼠标移动经过卡片时容易误触,浮层突然出现会打断阅读,也会遮挡下方内容;
对只想"看一眼改了哪些文件"的用户来说,这个预览属于负收益。
期望
提供一个开关(建议放在 设置 → 会话/外观 下),例如:
实现建议
HoverCard已支持disabled属性,改动量很小:packages/client/ui-deliverables/src/client/ChangedFiles.tsxHoverCard传disabled={!hoverPreviewEnabled},或直接把openDelayMs变成可配置值。如果没有现成设置项可挂,也可以先暴露一个全局 CSS/配置开关,或在
HoverCard层加prefers-reduced-motion类的降级策略。影响面
[Feature] Add a "disable hover preview" option for the changed-files card
Environment: DSH Desktop 0.2.2-rc.5 / @deepseek-ai/dsh-client-ui-deliverables 0.2.2-rc.5.
The "Edited N files" card opens a diff preview after a 500 ms hover on any file row (and on the header when a single file changed). It is hard-coded (
openDelayMs={500}inChangedFiles.tsx, lines 71 and 80) with no setting to turn it off.This hover preview is easy to trigger accidentally and covers the conversation while reading.
Request: a setting (e.g. Settings → Conversation/Appearance → "Preview changed files on hover", on by default). When off, neither the rows nor the single-file header should open the preview; clicking a row should still open the review in the sidebar.
Implementation is small:
HoverCardalready accepts adisabledprop — pass it through inChangedFiles.tsxat both call sites, or makeopenDelayMsconfigurable.Display-only change; review-via-click remains the primary path.
All reactions