refactor: remove ai-cad header chrome
This commit is contained in:
parent
6d07b1a915
commit
01d3f2f23e
@ -7,7 +7,6 @@ import {
|
||||
BrainCircuit,
|
||||
CheckCircle2,
|
||||
ChevronDown,
|
||||
ChevronLeft,
|
||||
ChevronRight,
|
||||
Copy,
|
||||
Download,
|
||||
@ -16,6 +15,7 @@ import {
|
||||
GitBranch,
|
||||
Grid3X3,
|
||||
History,
|
||||
House,
|
||||
Loader2,
|
||||
MousePointer2,
|
||||
Orbit,
|
||||
@ -4128,60 +4128,18 @@ export function AiCadWorkbench() {
|
||||
|
||||
return (
|
||||
<div className="flex h-svh flex-col overflow-hidden bg-[#f8f7f3] text-[#201c16]">
|
||||
<div className="border-[#e6e0d3] border-b bg-white">
|
||||
<div className="flex min-h-14 flex-wrap items-center gap-3 px-3 py-2">
|
||||
<a
|
||||
className="inline-flex h-10 items-center gap-2 rounded-[10px] border border-[#e2dccf] bg-white px-3 text-[#423d33] text-[13px] transition-all duration-150 ease-out hover:bg-[#faf7ef]"
|
||||
href="/"
|
||||
>
|
||||
<ChevronLeft className="h-4 w-4" />
|
||||
返回首页
|
||||
</a>
|
||||
<div className="flex h-10 items-center gap-2 rounded-[10px] border border-[#e2dccf] bg-white px-3">
|
||||
<div className="flex h-8 w-10 items-center justify-center rounded-md bg-[#42ef95] font-semibold text-[#0f2318] text-[11px]">
|
||||
AI
|
||||
</div>
|
||||
<span className="font-medium text-[#201c16] text-[14px]">
|
||||
AI-CAD Studio
|
||||
</span>
|
||||
</div>
|
||||
<button
|
||||
className="flex h-10 min-w-[240px] flex-1 items-center gap-2 rounded-[10px] border border-[#e2dccf] bg-white px-4 text-left text-[#3e392f]"
|
||||
onClick={() => setActiveLeftPanelView("project")}
|
||||
type="button"
|
||||
>
|
||||
<span className="truncate">
|
||||
{normalizedWorkspaceName} / main.kcl
|
||||
</span>
|
||||
<ChevronDown className="ml-auto h-4 w-4 text-[#827b6d]" />
|
||||
</button>
|
||||
<div className="flex h-10 w-10 items-center justify-center rounded-full bg-[#8b572a] text-sm text-white">
|
||||
AI
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{(workspaceSyncError || workspaceOperationError) && (
|
||||
<div className="border-[#e6e0d3] border-t px-3 py-2">
|
||||
<div className="flex flex-wrap gap-3 text-sm leading-6">
|
||||
{workspaceSyncError ? (
|
||||
<p className="text-rose-700">
|
||||
云端同步提示:{workspaceSyncError}
|
||||
</p>
|
||||
) : null}
|
||||
{workspaceOperationError ? (
|
||||
<p className="text-amber-700">
|
||||
工作台提示:{workspaceOperationError}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="min-h-0 flex-1 overflow-hidden">
|
||||
<div className="flex h-full min-h-0">
|
||||
<div className="flex w-14 shrink-0 flex-col items-center justify-between border-[#e6e0d3] border-r bg-white px-1.5 py-3">
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<a
|
||||
className="flex h-10 w-10 items-center justify-center rounded-md border border-[#e4dece] bg-white text-[#6f695d] transition-all duration-150 ease-out hover:bg-[#faf7ef] hover:text-[#221f18]"
|
||||
href="/"
|
||||
title="返回首页"
|
||||
>
|
||||
<House className="h-4 w-4" />
|
||||
<span className="sr-only">返回首页</span>
|
||||
</a>
|
||||
<AiCadRailButton
|
||||
active={
|
||||
!isHistoryPanelCollapsed && activeLeftPanelView === "project"
|
||||
@ -4517,6 +4475,23 @@ export function AiCadWorkbench() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{(workspaceSyncError || workspaceOperationError) && (
|
||||
<div className="border-[#e6e0d3] border-b bg-[#fffaf0] px-4 py-2">
|
||||
<div className="flex flex-wrap gap-3 text-xs leading-5">
|
||||
{workspaceSyncError ? (
|
||||
<p className="text-rose-700">
|
||||
云端同步提示:{workspaceSyncError}
|
||||
</p>
|
||||
) : null}
|
||||
{workspaceOperationError ? (
|
||||
<p className="text-amber-700">
|
||||
工作台提示:{workspaceOperationError}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="min-h-0 flex-1 overflow-hidden bg-white">
|
||||
<PanelGroup
|
||||
autoSaveId={`ai-cad-panel-layout:${panelDirection}`}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user