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) => (
|
||||
<button
|
||||
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
|
||||
? "border-white/20 bg-[#242424]"
|
||||
: "border-white/10 bg-[#1d1d1d] hover:border-white/15 hover:bg-[#222]",
|
||||
@ -3814,7 +3814,7 @@ export function AiCadWorkbench() {
|
||||
</Badge>
|
||||
</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>
|
||||
{getProviderLabel(workspace.generationProvider)}
|
||||
</span>
|
||||
@ -3838,9 +3838,8 @@ export function AiCadWorkbench() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<p className="mt-2.5 line-clamp-2 min-h-10 text-[13px] text-white/62 leading-5">
|
||||
{workspace.latestPrompt ||
|
||||
"这个工作台还没有开始描述设计意图。"}
|
||||
<p className="mt-2 line-clamp-1 text-[12px] text-white/52 leading-5">
|
||||
{workspace.latestPrompt || "还没有开始描述设计意图"}
|
||||
</p>
|
||||
</button>
|
||||
))}
|
||||
@ -4150,10 +4149,10 @@ export function AiCadWorkbench() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="min-h-0 flex-1 p-3">
|
||||
<div className="min-h-0 flex-1 overflow-y-auto p-3">
|
||||
<PanelGroup
|
||||
autoSaveId={`ai-cad-panel-layout:${panelDirection}`}
|
||||
className="flex h-full min-h-0"
|
||||
className="flex h-full min-h-[780px]"
|
||||
direction={panelDirection}
|
||||
>
|
||||
<Panel
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user