fix: compact ai-cad workspace chrome
This commit is contained in:
parent
b353bc8e48
commit
9d3ba9b353
@ -3779,7 +3779,7 @@ export function AiCadWorkbench() {
|
|||||||
{workspaces.map((workspace) => (
|
{workspaces.map((workspace) => (
|
||||||
<button
|
<button
|
||||||
className={cn(
|
className={cn(
|
||||||
"min-w-[228px] rounded-[8px] border px-3.5 py-3 text-left transition-all duration-150 ease-out",
|
"min-w-[220px] rounded-[8px] border px-3 py-2.5 text-left transition-all duration-150 ease-out",
|
||||||
workspace.id === activeWorkspaceId
|
workspace.id === activeWorkspaceId
|
||||||
? "border-white/20 bg-[#242424]"
|
? "border-white/20 bg-[#242424]"
|
||||||
: "border-white/10 bg-[#1d1d1d] hover:border-white/15 hover:bg-[#222]",
|
: "border-white/10 bg-[#1d1d1d] hover:border-white/15 hover:bg-[#222]",
|
||||||
@ -3814,7 +3814,7 @@ export function AiCadWorkbench() {
|
|||||||
</Badge>
|
</Badge>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-3 flex items-center gap-3 text-white/60 text-xs">
|
<div className="mt-2 flex items-center gap-3 text-white/60 text-xs">
|
||||||
<span>
|
<span>
|
||||||
{getProviderLabel(workspace.generationProvider)}
|
{getProviderLabel(workspace.generationProvider)}
|
||||||
</span>
|
</span>
|
||||||
@ -3838,9 +3838,8 @@ export function AiCadWorkbench() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p className="mt-2.5 line-clamp-2 min-h-10 text-[13px] text-white/62 leading-5">
|
<p className="mt-2 line-clamp-1 text-[12px] text-white/52 leading-5">
|
||||||
{workspace.latestPrompt ||
|
{workspace.latestPrompt || "还没有开始描述设计意图"}
|
||||||
"这个工作台还没有开始描述设计意图。"}
|
|
||||||
</p>
|
</p>
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
@ -4150,10 +4149,10 @@ export function AiCadWorkbench() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="min-h-0 flex-1 p-3">
|
<div className="min-h-0 flex-1 overflow-y-auto p-3">
|
||||||
<PanelGroup
|
<PanelGroup
|
||||||
autoSaveId={`ai-cad-panel-layout:${panelDirection}`}
|
autoSaveId={`ai-cad-panel-layout:${panelDirection}`}
|
||||||
className="flex h-full min-h-0"
|
className="flex h-full min-h-[780px]"
|
||||||
direction={panelDirection}
|
direction={panelDirection}
|
||||||
>
|
>
|
||||||
<Panel
|
<Panel
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user