fix: keep file action feedback visible while hovering delivery cards

This commit is contained in:
creatixchu committed 2026-09-20 14:07:32 +08:00
1 parent a6daee84ca
commit a4cd2f57a0
5 files changed
+11 -16

No files matched your search

@@ -18,8 +18,8 @@
.description { overflow: hidden; color: var(--dsw-alias-label-tertiary); font-size: 10px; font-weight: 400; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.description[data-error='true'] { color: var(--dsw-alias-state-error-primary); }
.previewHint { display: none; }
.file:hover .secondaryText { display: none; }
.file:hover .previewHint { display: inline; }
.file:hover .description:not([role='status']) .secondaryText { display: none; }
.file:hover .description:not([role='status']) .previewHint { display: inline; }
.toggle { align-self: center; display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 1px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-tertiary); cursor: pointer; font: inherit; font-size: 12px; line-height: 18px; }
.toggle:hover { background: var(--dsw-alias-interactive-bg-hover); }
.toggle svg { flex: none; width: 14px; height: 14px; }
@@ -57,7 +57,7 @@ export function DeliverablesTail(props: PropsRuntime<'conversation.chat.turnTail
/**
* Render the changed-files card, once the Host has served the announced
* summary and it lists a file, and default-application buttons for declared
* summary and it lists a file, and shared native opening controls for declared
* files. A summary the Host no longer serves leaves no card.
* @param props - matched announcement and files, workspace opener, and localized copy.
* @returns the closing turn's file rows.
@@ -1,4 +1,4 @@
/** File identity and explicit default-app or file-manager actions for one delivery. */
/** File identity, Sidebar preview, and contributed native actions for one delivery. */
import type { ReactNode } from 'react'
import { resolveWorkspacePath } from '@deepseek-ai/dsh-util-workspace-path'
import { FileTypeIcon, fileExtension } from '@deepseek-ai/dsh-client-ui-primitives'
@@ -1,12 +1,7 @@
/**
* Browser half of open-in-app: one Session-header split button opening the
* session's workspace directory (the summary's `cwd`) in the remembered
* installed application, and the document preview's default-application
* controls opening one previewed file. Application availability arrives once
* per page from the host apps route and the last choice persists in the
* browser through the controller's persisted snapshot store; desktop
* availability for file paths arrives once per page from the Session Remote,
* which also runs the open and reveal gestures.
* Shared native opening controls for workspace directories, document previews,
* delivery cards, and changed-file review. Directory choices persist in the browser;
* file defaults and application lists come from the serving Host desktop.
*/
import type { Context as ClientContext } from '@deepseek-ai/cordis'
+4 -4
View File
@@ -38,13 +38,13 @@
- button "Preview report.txt in sidebar"
- text: report.txt
- status: Opened in default app
- button "Open report.txt in sidebar": Open
- button "More file actions for report.txt"
- button "Open in Test Editor"
- button "More ways to open"
- button "Preview 说明.txt in sidebar"
- text: 说明.txt
- status: Opened in default app
- button "Open 说明.txt in sidebar": Open
- button "More file actions for 说明.txt"
- button "Open in Test Editor"
- button "More ways to open"
- button "Copy"
- button "Good response"
- button "Bad response"