体验: 工作台改画布卡片式布局,四面板圆角卡片+缝隙分隔替代生硬1px拼接

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fenghp
2026-06-11 18:18:35 +08:00
co-authored by Cursor
parent b646b46365
commit fa1a6cc3af
10 changed files with 63 additions and 17 deletions
@@ -128,7 +128,7 @@ export function FolderItemsPanel({
})
return (
<section className="flex h-full min-w-0 flex-1 flex-col bg-background">
<section className="flex h-full min-w-0 flex-1 flex-col overflow-hidden rounded-xl border bg-card shadow-card">
<div className="flex h-9 shrink-0 items-center gap-2 border-b px-3">
<span className="shrink-0 text-xs text-muted-foreground">当前路径</span>
<span className="min-w-0 truncate font-mono text-xs">{selectedServerPath}</span>
@@ -171,7 +171,7 @@ export function FolderItemsPanel({
</div>
) : (
<Table>
<TableHeader className="sticky top-0 z-10 bg-background">
<TableHeader className="sticky top-0 z-10 bg-card">
<TableRow className="hover:bg-transparent">
<TableHead className="h-8 text-xs text-muted-foreground">名称</TableHead>
<TableHead className="h-8 w-24 text-xs text-muted-foreground">状态</TableHead>
@@ -129,7 +129,7 @@ export function SourceTreePanel({
)
return (
<aside className="flex h-full w-[280px] shrink-0 flex-col border-r bg-sidebar">
<aside className="flex h-full w-[280px] shrink-0 flex-col overflow-hidden rounded-xl border bg-card shadow-card">
<div className="flex h-9 shrink-0 items-center gap-2 border-b px-3">
<span className="text-[11px] font-medium tracking-wider text-muted-foreground uppercase">
源码目录