Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

chore: change turnrewind style

hairyfee371670f01f
diff --git "a/docs/plugins/11.\344\274\230\345\214\226\350\256\241\345\210\222.turnrewind\345\256\236\347\216\260.done.md" "b/docs/plugins/expired/11.\344\274\230\345\214\226\350\256\241\345\210\222.turnrewind\345\256\236\347\216\260.done.md"
similarity index 99%
rename from "docs/plugins/11.\344\274\230\345\214\226\350\256\241\345\210\222.turnrewind\345\256\236\347\216\260.done.md"
rename to "docs/plugins/expired/11.\344\274\230\345\214\226\350\256\241\345\210\222.turnrewind\345\256\236\347\216\260.done.md"
index fbf87b86..773e67bb 100644
--- "a/docs/plugins/11.\344\274\230\345\214\226\350\256\241\345\210\222.turnrewind\345\256\236\347\216\260.done.md"
+++ "b/docs/plugins/expired/11.\344\274\230\345\214\226\350\256\241\345\210\222.turnrewind\345\256\236\347\216\260.done.md"
@@ -570,7 +570,7 @@ packages/dsh-tauri-turnrewind/
| 截图 | 落地 |
|---|---|
-| 图一 单文件 | 白底 + 弱描边 + 14px 圆角卡片;左侧 40px 圆角图标块(`SquarePlus`);标题 15px/600 显示文件名;副行绿 `+N` / 红 `-M`;右侧「撤销 ↶」纯文本按钮(`ArrowUturnCcwLeft`)+ 描边胶囊「审核」;单文件**不渲染清单** |
+| 图一 单文件 | 白底 + 弱描边 + 14px 圆角卡片;左侧 40px 圆角图标块(`FilePlus`);标题 15px/600 显示文件名;副行绿 `+N` / 红 `-M`;右侧「撤销 ↶」纯文本按钮(`ArrowUturnCcwLeft`)+ 描边胶囊「审核」;单文件**不渲染清单** |
| 图二 单文件 hover | 副行计数换成「查看更改 ↗」(`ArrowUpRight`),纯 CSS 切换(`__card--single:hover`),点击仍无动作(占位) |
| 图三 多文件 | 标题「已编辑 N 个文件」+ 总计数;清单最多 3 行(路径 + 右对齐计数,**去掉状态文字标签**);底部「再显示 2 个文件 ⌄」(`ChevronDown`) |
| 图四 行 hover | 行整行高亮;本轮删除(D)的文件整行弱化(对应截图中被弱化的那一行) |
@@ -604,7 +604,7 @@ packages/dsh-tauri-turnrewind/
**新增文件**:`client/hooks/use-live-changes.ts`、`client/styles/counts.cssr.ts`、
`client/components/{change-counts.tsx, running-changes-chip.tsx, running-changes-chip.cssr.ts}`、
`client/register/running-chip.ts` 及对应测试;`dsh-tauri-ui` 图标 barrel 增补
-`SquarePlus` / `ArrowUturnCcwLeft` / `ArrowUpRight` / `ChevronDown` / `ChevronUp`(Gravity 单点内联)。
+`FilePlus` / `ArrowUturnCcwLeft` / `ArrowUpRight` / `ChevronDown` / `ChevronUp`(Gravity 单点内联)。
原计划的 `shortenPath` / 状态文字标签(新增/修改/删除)按截图移除——路径改为整行 + CSS 省略号,
状态改由「删除行弱化 + 绿红计数」表达。
diff --git a/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.cssr.ts b/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.cssr.ts
index 1849f3ff..226f0be4 100644
--- a/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.cssr.ts
+++ b/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.cssr.ts
@@ -153,7 +153,7 @@ export default b('turnrewind', {
borderRadius: '999px',
background: 'transparent',
fontFamily: 'inherit',
- fontSize: '13px',
+ fontSize: '12px',
lineHeight: '18px',
cursor: 'pointer',
color: 'var(--dsw-alias-label-primary)',
@@ -170,7 +170,7 @@ export default b('turnrewind', {
borderRadius: '999px',
background: 'transparent',
fontFamily: 'inherit',
- fontSize: '13px',
+ fontSize: '12px',
lineHeight: '18px',
cursor: 'pointer',
color: 'var(--dsw-alias-label-primary)',
@@ -196,7 +196,7 @@ export default b('turnrewind', {
border: 'none',
background: 'transparent',
fontFamily: 'inherit',
- fontSize: '13px',
+ fontSize: '12px',
lineHeight: '18px',
textAlign: 'left',
color: 'inherit',
@@ -225,7 +225,7 @@ export default b('turnrewind', {
borderTop: '1px solid var(--dsw-alias-border-weak, rgba(127,127,127,0.18))',
background: 'transparent',
fontFamily: 'inherit',
- fontSize: '13px',
+ fontSize: '12px',
lineHeight: '18px',
textAlign: 'left',
cursor: 'pointer',
diff --git a/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.tsx b/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.tsx
index 33424f7b..b2377c89 100644
--- a/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.tsx
+++ b/packages/dsh-tauri-turnrewind/src/client/components/turn-changes-card.tsx
@@ -1,6 +1,6 @@
import type { ReactElement } from 'react'
import type { TurnChangesCardProps, TurnFileChange } from '../types'
-import { ArrowUturnCcwLeft, ChevronDown, ChevronUp, Icon, SquarePlus, useMountStyle } from 'dsh-tauri-ui/client'
+import { ArrowUturnCcwLeft, ChevronDown, ChevronUp, FilePlus, Icon, useMountStyle } from 'dsh-tauri-ui/client'
/**
* turn-changes-card.tsx — 一轮结束时渲染的变更卡片(视觉对齐官方 deliverables 行)。
*
@@ -197,7 +197,7 @@ export function TurnChangesCard(props: TurnChangesCardProps): ReactElement | nul
<div className="dshp-turnrewind__head">
{/* 占位:📝 文件图标块不做任何事(需求:文件按钮仅做占位)。 */}
<span className="dshp-turnrewind__icon" title={text('fileButton')} aria-label={text('fileButton')} data-placeholder="file">
- <Icon as={SquarePlus} size={18} />
+ <Icon as={FilePlus} size={18} />
</span>
<div className="dshp-turnrewind__meta">
{onOpenFile !== undefined && singlePath !== undefined
@@ -295,7 +295,7 @@ export function TurnChangesCard(props: TurnChangesCardProps): ReactElement | nul
{window.hiddenCount > 0 && (
<button type="button" className="dshp-turnrewind__more" onClick={() => setExpandedTurn(current => (current === turn ? undefined : turn))}>
{expanded ? text('collapseFiles') : text('moreFiles', { count: window.hiddenCount })}
- <Icon as={expanded ? ChevronUp : ChevronDown} size={14} />
+ <Icon as={expanded ? ChevronUp : ChevronDown} size={12} />
</button>
)}
diff --git a/packages/dsh-tauri-ui/src/client/components/icons.tsx b/packages/dsh-tauri-ui/src/client/components/icons.tsx
index adc94704..22d66806 100644
--- a/packages/dsh-tauri-ui/src/client/components/icons.tsx
+++ b/packages/dsh-tauri-ui/src/client/components/icons.tsx
@@ -27,5 +27,5 @@ export { default as Magnifier } from '@gravity-ui/icons/Magnifier'
export { default as PlugConnection } from '@gravity-ui/icons/PlugConnection'
export { default as Plus } from '@gravity-ui/icons/Plus'
export { default as Puzzle } from '@gravity-ui/icons/Puzzle'
-export { default as SquarePlus } from '@gravity-ui/icons/SquarePlus'
+export { default as FilePlus } from '@gravity-ui/icons/FilePlus'
export { default as TrashBin } from '@gravity-ui/icons/TrashBin'
diff --git a/packages/dsh-tauri-ui/src/client/components/index.ts b/packages/dsh-tauri-ui/src/client/components/index.ts
index a73f9dcd..41d4af12 100644
--- a/packages/dsh-tauri-ui/src/client/components/index.ts
+++ b/packages/dsh-tauri-ui/src/client/components/index.ts
@@ -23,7 +23,7 @@ export {
PlugConnection,
Plus,
Puzzle,
- SquarePlus,
+ FilePlus,
TrashBin,
} from './icons'
export { MenuSelect } from './menu-select'