console: 按 Muse 网页端/桌面端视觉重做
仅视觉与布局改动,功能与 API 未改:全屏四栏(56px 图标栏 + 260px 列表 + 弹性对话 + 300px 右侧栏),左侧搜索 + 主要聊天 列表,中间灰/浅蓝气泡对话 + 圆角输入条,右侧头像 + 已连接 (真实 key/健康状态)+ 今天任务清单,下方仍可展开原详情。 旧 v3 松绿/朱印与顶部大标题栏已移除,产物为单文件 (316226 字节,sha f8fea987…,本地重建字节一致)。 console 标记单测未动,本地 53 项通过。
This commit is contained in:
1 parent
5ca5cc91cc
commit
66790b5123
12 files changed
+394
-227
No files matched your search
@@ -2,33 +2,32 @@ import { useState } from "react";
|
||||
import { ConsoleContext } from "./context";
|
||||
import { useConsoleStore } from "./hooks/useConsoleStore";
|
||||
import { useAutoRefresh, useIntervalMs } from "./hooks/useAutoRefresh";
|
||||
import LeftNav, { type View } from "./components/LeftNav";
|
||||
import IconRail, { type View } from "./components/IconRail";
|
||||
import ApiKeySection from "./sections/ApiKeySection";
|
||||
import AdminSection from "./sections/AdminSection";
|
||||
import ProjectsSection from "./sections/ProjectsSection";
|
||||
import MembersPanel from "./sections/MembersPanel";
|
||||
import EnvSection from "./sections/EnvSection";
|
||||
import EnvContextPanel from "./sections/EnvContextPanel";
|
||||
import WorkersSection from "./sections/WorkersSection";
|
||||
import SkillsSection from "./sections/SkillsSection";
|
||||
import SkillsToolsPanel from "./sections/SkillsToolsPanel";
|
||||
import AutomationsSection from "./sections/AutomationsSection";
|
||||
import TriageSection from "./sections/TriageSection";
|
||||
import TaskListSection from "./sections/TaskListSection";
|
||||
import ConversationSection from "./sections/ConversationSection";
|
||||
import TaskDetailPanel from "./sections/TaskDetailPanel";
|
||||
import HealthPanel from "./sections/HealthPanel";
|
||||
import RightPanel from "./sections/RightPanel";
|
||||
|
||||
// Layout only: three columns, ChatGPT/Claude style.
|
||||
// Left (~300px): module nav + task list. Centre (elastic, content
|
||||
// centred to ~800px): conversation, or the selected module's content.
|
||||
// Right (~340px): detail/context for whatever the centre shows.
|
||||
// Selecting a task (left) switches the centre conversation and the
|
||||
// right detail to that task together; selecting a module switches the
|
||||
// centre to that module and the right to its context.
|
||||
// Layout only, Muse web/desktop style: no big header bar.
|
||||
// Icon rail (56px) + left list (260px) + centre conversation (elastic,
|
||||
// content centred) + right panel (300px, profile/today/detail). The
|
||||
// centre top bar is minimal: a back arrow (back to the task view) on
|
||||
// the left, and, only when the right panel is closed, a button to
|
||||
// reopen it — the right panel's own X closes it. Selecting a task in
|
||||
// the left list switches the centre conversation and the right detail
|
||||
// to that task together; selecting a module switches the centre to
|
||||
// that module and the right detail to its context.
|
||||
export default function App() {
|
||||
const store = useConsoleStore();
|
||||
const [view, setView] = useState<View>("task");
|
||||
const [rightOpen, setRightOpen] = useState(true);
|
||||
useAutoRefresh((selectFocused) => store.refreshAll(selectFocused), 10000);
|
||||
useIntervalMs(() => store.refreshSlow(), 60000);
|
||||
|
||||
@@ -46,40 +45,27 @@ export default function App() {
|
||||
}
|
||||
})();
|
||||
|
||||
const right = (() => {
|
||||
switch (view) {
|
||||
case "projects": return <MembersPanel />;
|
||||
case "env": return <EnvContextPanel />;
|
||||
case "skills": return <SkillsToolsPanel />;
|
||||
case "workers": case "admin": case "key": return <HealthPanel />;
|
||||
case "automations": return <TriageSection />;
|
||||
case "triage": return <AutomationsSection />;
|
||||
default: return <TaskDetailPanel />;
|
||||
}
|
||||
})();
|
||||
|
||||
return (
|
||||
<ConsoleContext.Provider value={store}>
|
||||
<div className="site-header">
|
||||
<div className="topbar">
|
||||
<span className="seal-mark">令</span>
|
||||
<div>
|
||||
<h1>Codex 命令台</h1>
|
||||
<p className="subtitle">瓷 · 墨 · 印</p>
|
||||
</div>
|
||||
<span className="version">key 只存本浏览器</span>
|
||||
<span className="muted" style={{ marginLeft: "auto" }}>{store.healthText} | 自动刷新 · 每 10 秒 · 已刷新 {store.refreshStamp}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="shell">
|
||||
<aside className="rail">
|
||||
<LeftNav view={view} onSelect={setView} />
|
||||
<TaskListSection />
|
||||
<div className={"muse-app" + (rightOpen ? "" : " no-right")}>
|
||||
<IconRail view={view} onSelect={setView} />
|
||||
<aside className="list-col">
|
||||
<TaskListSection onNew={() => setView("task")} />
|
||||
</aside>
|
||||
<main className="center-col">
|
||||
<div className="center-topbar">
|
||||
<button type="button" className="icon-btn" aria-label="返回任务" title="返回任务" onClick={() => setView("task")}>←</button>
|
||||
{rightOpen ? <span className="muted">Codex 命令台</span> : (
|
||||
<button type="button" onClick={() => setRightOpen(true)}>显示右侧栏</button>
|
||||
)}
|
||||
</div>
|
||||
<div className="center-inner">{centre}</div>
|
||||
</main>
|
||||
<aside className="detail-col">{right}</aside>
|
||||
{rightOpen ? (
|
||||
<aside className="right-col">
|
||||
<RightPanel view={view} onSelect={setView} onClose={() => setRightOpen(false)} />
|
||||
</aside>
|
||||
) : null}
|
||||
</div>
|
||||
</ConsoleContext.Provider>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
// Far-left icon rail from the Muse screenshot: one simple inline-SVG
|
||||
// icon per module, no emoji, no external image. This replaces LeftNav
|
||||
// as the module switcher; the left list panel below it is the task list.
|
||||
export type View = "task" | "projects" | "env" | "workers" | "skills" | "automations" | "triage" | "admin" | "key";
|
||||
|
||||
function Svg({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
||||
{children}
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function ModuleIcon({ view }: { view: View }) {
|
||||
switch (view) {
|
||||
case "task": return <Svg><path d="M21 11.5a8.5 8.5 0 0 1-12.4 7.5L3 21l2-5.6A8.5 8.5 0 1 1 21 11.5Z" /></Svg>;
|
||||
case "projects": return <Svg><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z" /><path d="M14 3v5h5" /><path d="M9 13h6M9 17h6" /></Svg>;
|
||||
case "env": return <Svg><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z" /></Svg>;
|
||||
case "workers": return <Svg><rect x="3" y="3" width="7" height="7" rx="1.5" /><rect x="14" y="3" width="7" height="7" rx="1.5" /><rect x="3" y="14" width="7" height="7" rx="1.5" /><rect x="14" y="14" width="7" height="7" rx="1.5" /></Svg>;
|
||||
case "skills": return <Svg><path d="M9 18h6M10 21h4" /><path d="M12 3a6 6 0 0 0-3.5 10.8c.8.6 1.5 1.4 1.5 2.2h4c0-.8.7-1.6 1.5-2.2A6 6 0 0 0 12 3Z" /></Svg>;
|
||||
case "automations": return <Svg><circle cx="12" cy="12" r="9" /><path d="M12 7v5l3 2" /></Svg>;
|
||||
case "triage": return <Svg><circle cx="12" cy="12" r="9" /><path d="M8 12.5l2.5 2.5L16 9.5" /></Svg>;
|
||||
case "admin": return <Svg><path d="M12 3l7 3v5c0 5-3.5 8-7 9-3.5-1-7-4-7-9V6Z" /><path d="M9 12l2 2 4-4" /></Svg>;
|
||||
case "key": return <Svg><circle cx="8" cy="15" r="4" /><path d="M11.5 11.5L20 3" /><path d="M17 6l2 2M20 3l-1 3" /></Svg>;
|
||||
default: return <Svg><circle cx="12" cy="12" r="9" /></Svg>;
|
||||
}
|
||||
}
|
||||
|
||||
const ITEMS: Array<[View, string]> = [
|
||||
["task", "任务"], ["projects", "项目"], ["env", "环境"], ["workers", "Workers"],
|
||||
["skills", "技能与 MCP"], ["automations", "自动化"], ["triage", "分诊"],
|
||||
["admin", "管理区"], ["key", "API Key"],
|
||||
];
|
||||
|
||||
export default function IconRail({ view, onSelect }: { view: View; onSelect: (v: View) => void }) {
|
||||
return (
|
||||
<nav className="icon-rail" aria-label="模块快捷方式">
|
||||
{ITEMS.map(([v, label]) => (
|
||||
<button key={v} type="button" title={label} aria-label={label} className={view === v ? "active" : ""} onClick={() => onSelect(v)}>
|
||||
<ModuleIcon view={v} />
|
||||
</button>
|
||||
))}
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
export type View = "task" | "projects" | "env" | "workers" | "skills" | "automations" | "triage" | "admin" | "key";
|
||||
|
||||
const ITEMS: Array<[View, string]> = [
|
||||
["task", "任务"], ["projects", "项目"], ["env", "环境"], ["workers", "Workers"],
|
||||
["skills", "技能与 MCP"], ["automations", "自动化"], ["triage", "分诊"],
|
||||
["admin", "管理区"], ["key", "API Key"],
|
||||
];
|
||||
|
||||
export default function LeftNav({ view, onSelect }: { view: View; onSelect: (v: View) => void }) {
|
||||
return (
|
||||
<nav className="left-nav" aria-label="模块导航">
|
||||
{ITEMS.map(([v, label]) => (
|
||||
<button key={v} className={view === v ? "active" : ""} onClick={() => onSelect(v)}>{label}</button>
|
||||
))}
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
@@ -54,19 +54,25 @@ export function ChatInput({ onSend, disabled, placeholder }: {
|
||||
onSend(v);
|
||||
setText("");
|
||||
};
|
||||
// Pill input bar, Muse screenshot style: the textarea is the pill
|
||||
// itself, and send is a light-blue circular arrow. No mic or
|
||||
// attachment button here: the continue chat has no voice or
|
||||
// attachment API (attachments live in Dispatch), so a mic/+ icon
|
||||
// would be a dead button; the left list header's + is the new-task
|
||||
// entry instead.
|
||||
return (
|
||||
<div className="chat-input-bar">
|
||||
<textarea
|
||||
aria-label="会话输入"
|
||||
className="chat-input"
|
||||
rows={1}
|
||||
placeholder={placeholder || "输入消息,回车发送,Shift+回车换行"}
|
||||
placeholder={placeholder || "消息"}
|
||||
value={text}
|
||||
disabled={disabled}
|
||||
onChange={(e) => setText(e.target.value)}
|
||||
onKeyDown={(e) => { if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); send(); } }}
|
||||
/>
|
||||
<button className="primary chat-send" disabled={disabled || !text.trim()} onClick={send}>发送</button>
|
||||
<button type="button" className="chat-send" aria-label="发送" disabled={disabled || !text.trim()} onClick={send}>↑</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ export default function ConversationSection() {
|
||||
return (
|
||||
<div className="conversation">
|
||||
<TracePanel />
|
||||
<h3>继续会话</h3>
|
||||
<div className="conv-divider" />
|
||||
<ContinuePanel />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
import { useConsole } from "../context";
|
||||
import { ModuleIcon, type View } from "../components/IconRail";
|
||||
import { shortId } from "../api/client";
|
||||
import TaskDetailPanel from "./TaskDetailPanel";
|
||||
import MembersPanel from "./MembersPanel";
|
||||
import EnvContextPanel from "./EnvContextPanel";
|
||||
import SkillsToolsPanel from "./SkillsToolsPanel";
|
||||
import HealthPanel from "./HealthPanel";
|
||||
import AutomationsSection from "./AutomationsSection";
|
||||
import TriageSection from "./TriageSection";
|
||||
|
||||
// Right panel, modelled on the Muse screenshot: profile header with a
|
||||
// real connection status (API key / health, never a fake user), an icon
|
||||
// row that switches modules, a 今天 list of recent tasks, and below it
|
||||
// the selected task's detail (or the current module's context) as a
|
||||
// collapsible section. Nothing that was in the old right column is
|
||||
// dropped: the detail/context panels are the same components, only
|
||||
// rendered inside <details> under the today list.
|
||||
export default function RightPanel({ view, onSelect, onClose }: {
|
||||
view: View; onSelect: (v: View) => void; onClose: () => void;
|
||||
}) {
|
||||
const ctx = useConsole();
|
||||
const connected = ctx.keySaved;
|
||||
const today = ctx.tasks.slice().reverse().slice(0, 10);
|
||||
const context = (() => {
|
||||
switch (view) {
|
||||
case "projects": return <MembersPanel />;
|
||||
case "env": return <EnvContextPanel />;
|
||||
case "skills": return <SkillsToolsPanel />;
|
||||
case "workers": case "admin": case "key": return <HealthPanel />;
|
||||
case "automations": return <TriageSection />;
|
||||
case "triage": return <AutomationsSection />;
|
||||
default: return <TaskDetailPanel />;
|
||||
}
|
||||
})();
|
||||
const iconRow: Array<[View, string]> = [["task", "任务"], ["admin", "管理区"], ["automations", "自动化"], ["key", "API Key"]];
|
||||
return (
|
||||
<div>
|
||||
<div className="right-profile">
|
||||
<button type="button" className="icon-btn" aria-label="关闭右侧栏" onClick={onClose}>×</button>
|
||||
<div className="right-avatar" aria-hidden="true">C</div>
|
||||
<div className="right-name">Codex 命令台</div>
|
||||
<div className={connected ? "right-status" : "right-status off"}>
|
||||
{connected ? "● 已连接" : "○ 未连接(先在 API Key 里保存 key)"}
|
||||
</div>
|
||||
<div className="muted">{ctx.healthText}</div>
|
||||
<div className="muted">{ctx.quotaText}</div>
|
||||
<div className="muted">自动刷新 · 每 10 秒 · 已刷新 {ctx.refreshStamp}</div>
|
||||
</div>
|
||||
<div className="right-icon-row" aria-label="快捷方式">
|
||||
{iconRow.map(([v, label]) => (
|
||||
<button key={v} type="button" title={label} aria-label={label} className={view === v ? "active" : ""} onClick={() => onSelect(v)}>
|
||||
<ModuleIcon view={v} />
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
<div>
|
||||
<div className="list-section-head"><span>今天</span></div>
|
||||
{today.length === 0 ? (
|
||||
<div className="muted">今天暂无任务</div>
|
||||
) : (
|
||||
<ul className="today-list">
|
||||
{today.map((t) => {
|
||||
const done = t.status === "completed" || t.status === "merged";
|
||||
const time = t.updated_at ? new Date(t.updated_at * 1000).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : "";
|
||||
return (
|
||||
<li key={t.id} className="today-item" onClick={() => { ctx.showDetail(t.id); onSelect("task"); }}>
|
||||
<span className={"today-check" + (done ? " done" : "")}>{done ? "✓" : ""}</span>
|
||||
<span className="today-item-main">
|
||||
<span className="today-item-title">{String(t.prompt || shortId(t.id)).slice(0, 60) || shortId(t.id)}</span>
|
||||
<span className="today-item-sub">{shortId(t.id)} · <span className={"st-" + t.status}>{t.status}</span> · {t.executor || ""}</span>
|
||||
</span>
|
||||
<span className="today-item-time">{time}</span>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
<details className="right-detail" open>
|
||||
<summary>{view === "task" ? "任务详情" : "模块详情"}</summary>
|
||||
{context}
|
||||
</details>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,15 +1,28 @@
|
||||
import { useConsole } from "../context";
|
||||
import { DataListRaw } from "../components/ui";
|
||||
import { shortId } from "../api/client";
|
||||
|
||||
// Left-rail compact task list. The live 9-column table does not fit a
|
||||
// 300px rail, so the rail shows id + status + prompt + executor; the
|
||||
// full metadata (turn, root turn, host, PR, updated) lives in the right
|
||||
// detail panel for the selected task. Filters/search are the live ones.
|
||||
export default function TaskListSection() {
|
||||
// Left list panel, Muse screenshot style: rounded search on top, a
|
||||
// 主要聊天 section header with a + button, then the task list. The
|
||||
// search input IS the existing task search (id/prompt); the status and
|
||||
// executor filters are kept as a compact row below it — the screenshot
|
||||
// has no filters, but dropping them would cut functionality, so they
|
||||
// stay, just compact. List rows show the prompt truncated on one line
|
||||
// with a status dot, short id, status and executor below it; the
|
||||
// selected row is highlighted grey, as in the screenshot.
|
||||
export default function TaskListSection({ onNew }: { onNew: () => void }) {
|
||||
const ctx = useConsole();
|
||||
return (
|
||||
<div className="left-tasks">
|
||||
<div>
|
||||
<div className="search-box">
|
||||
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" aria-hidden="true">
|
||||
<circle cx="11" cy="11" r="7" /><path d="M21 21l-4.3-4.3" />
|
||||
</svg>
|
||||
<input type="text" placeholder="搜索" aria-label="搜索任务" value={ctx.searchText} onChange={(e) => ctx.setSearchText(e.target.value)} />
|
||||
</div>
|
||||
<div className="list-section-head">
|
||||
<span>主要聊天</span>
|
||||
<button type="button" aria-label="派发新任务" title="派发新任务" onClick={onNew}>+</button>
|
||||
</div>
|
||||
<div className="bar">
|
||||
<select aria-label="状态筛选" value={ctx.statusFilter} onChange={(e) => ctx.setStatusFilter(e.target.value)}>
|
||||
<option value="">状态:全部</option>
|
||||
@@ -19,7 +32,6 @@ export default function TaskListSection() {
|
||||
<option value="">执行器:全部</option><option value="local">local</option><option value="docker">docker</option><option value="cloud">cloud</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="text" placeholder="搜索任务 id / prompt" value={ctx.searchText} onChange={(e) => ctx.setSearchText(e.target.value)} />
|
||||
<div className="bar">
|
||||
<button onClick={ctx.refreshTasks}>刷新</button>
|
||||
<span className="muted">{ctx.taskCountText}</span>
|
||||
@@ -28,18 +40,21 @@ export default function TaskListSection() {
|
||||
: !ctx.projectId ? <div className="muted">先选项目</div>
|
||||
: ctx.filteredTasks.length === 0 ? <div className="muted">{ctx.tasks.length ? "没有符合筛选条件的任务" : "该项目暂无任务"}</div>
|
||||
: (
|
||||
<DataListRaw>
|
||||
<ul className="muse-list">
|
||||
{ctx.filteredTasks.slice().reverse().map((t) => (
|
||||
<li key={t.id} className={ctx.currentTask?.id === t.id ? "selected-task" : ""} onClick={() => ctx.showDetail(t.id)} style={{ cursor: "pointer" }}>
|
||||
<span className="row-main">
|
||||
<b>{shortId(t.id)}</b> <span className={"st-" + t.status}>{t.status}</span>
|
||||
<br />
|
||||
{t.plan ? "[计划] " : ""}{t.forked_from ? "[分支] " : ""}{t.coordinator_parts ? "[协调] " : ""}{t.parent_task_id ? "[协调子任务] " : ""}{String(t.prompt || "").slice(0, 60)}
|
||||
<br /><span className="muted">{t.executor || ""}</span>
|
||||
</span>
|
||||
<li key={t.id} className={"muse-item" + (ctx.currentTask?.id === t.id ? " selected" : "")} onClick={() => ctx.showDetail(t.id)}>
|
||||
<div className="muse-item-title">
|
||||
{t.plan ? "[计划] " : ""}{t.forked_from ? "[分支] " : ""}{t.coordinator_parts ? "[协调] " : ""}{t.parent_task_id ? "[协调子任务] " : ""}{String(t.prompt || shortId(t.id)).slice(0, 60)}
|
||||
</div>
|
||||
<div className="muse-item-sub">
|
||||
<span className={"task-dot st-" + t.status} />
|
||||
<span>{shortId(t.id)}</span>
|
||||
<span className={"st-" + t.status}>{t.status}</span>
|
||||
<span>{t.executor || ""}</span>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</DataListRaw>
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -38,7 +38,7 @@ export default function ContinuePanel() {
|
||||
<ChatList messages={messages} empty="(暂无会话消息)" />
|
||||
<ChatInput
|
||||
disabled={!canSend}
|
||||
placeholder={hint + ",回车发送,Shift+回车换行"}
|
||||
placeholder="消息"
|
||||
onSend={(text) => void ctx.sendChatMessage(text)}
|
||||
/>
|
||||
<div className="muted">{hint}。{ctx.chatMsg}</div>
|
||||
|
||||
@@ -16,7 +16,7 @@ export default function TracePanel() {
|
||||
}, [ctx.currentTask, ctx.traceEntries, ctx.traceKind, ctx.traceDone]);
|
||||
return (
|
||||
<>
|
||||
<h3>实时链路</h3>
|
||||
<div className="muted">实时链路</div>
|
||||
<Bar>
|
||||
<select aria-label="链路类型" value={ctx.traceKind} onChange={(e) => ctx.setTraceKind(e.target.value)}>
|
||||
<option value="">链路类型:全部</option>
|
||||
|
||||
+137
-106
@@ -1,146 +1,177 @@
|
||||
/* Single token source. Colours are the v3 porcelain/ink/seal set only:
|
||||
ink, paper, white cards, pine #14544a, seal #be2a1e as accent.
|
||||
No other coloured backgrounds. Spacing is an 8px grid. */
|
||||
/* Single token source — Muse web/desktop palette (2026-10-29 redesign).
|
||||
This supersedes the previous v3 porcelain/ink/seal palette: white page,
|
||||
light-grey hairlines, grey assistant bubbles, light-blue user bubbles,
|
||||
blue accent, green only for 已连接. The old pine/seal colours are gone;
|
||||
the button class name "seal" is retained only so Dispatch/DetailActions
|
||||
need no change — it now renders in screenshot blue. No coloured page
|
||||
backgrounds, no big header bar, no shadows. Sans-serif only. */
|
||||
:root{
|
||||
--ink:#1c2220; --ink-soft:#4a554f; --paper:#f5f3ee; --card:#ffffff;
|
||||
--line:#e6e1d6; --line-strong:#d3ccbc;
|
||||
--seal:#be2a1e; --seal-soft:#fdeeeb; --seal-dark:#9c2118;
|
||||
--pine:#14544a; --pine-soft:#e2efea;
|
||||
--amber:#92400e; --amber-soft:#fef3c7;
|
||||
--success:#15803d; --danger:#b42318; --danger-soft:#fef3f2; --purple:#6941c6;
|
||||
--radius:16px; --radius-sm:10px;
|
||||
--shadow:0 1px 2px rgba(28,34,32,.05), 0 12px 32px rgba(28,34,32,.06);
|
||||
--serif:"Songti SC","Noto Serif SC","SimSun",serif;
|
||||
--text:#1d2129; --muted:#667085; --line:#e4e7ec; --line-strong:#d0d5dd;
|
||||
--paper:#ffffff; --card:#ffffff;
|
||||
--bubble-assistant:#f2f2f2; --bubble-user:#bfe0ff;
|
||||
--accent:#3b82f6; --accent-dark:#2563eb; --accent-soft:#eef4ff;
|
||||
--green:#22c55e; --success:#16a34a; --danger:#b42318; --danger-soft:#fef3f2;
|
||||
--amber:#b54708; --purple:#6941c6;
|
||||
--radius:12px; --radius-sm:10px; --shadow:none;
|
||||
--sans:-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
|
||||
--mono:"IBM Plex Mono",Menlo,Consolas,monospace;
|
||||
--ctl:40px;
|
||||
}
|
||||
*{box-sizing:border-box}
|
||||
body{font-family:var(--sans);margin:0;color:var(--ink);background:var(--paper);line-height:1.6;font-size:15px}
|
||||
a{color:var(--pine);text-underline-offset:3px}
|
||||
:focus-visible{outline:3px solid var(--seal);outline-offset:2px}
|
||||
html,body,#root{height:100%}
|
||||
body{font-family:var(--sans);margin:0;color:var(--text);background:#fff;line-height:1.6;font-size:14px}
|
||||
a{color:var(--accent);text-underline-offset:3px}
|
||||
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
|
||||
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
|
||||
.muted{color:#7a857e;font-size:13px;line-height:1.6}
|
||||
.muted{color:var(--muted);font-size:13px;line-height:1.6}
|
||||
.err{color:var(--danger)} .ok{color:var(--success)}
|
||||
/* Top bar + fixed nav */
|
||||
.site-header{position:sticky;top:0;z-index:30;background:#fff}
|
||||
.topbar{display:flex;align-items:center;gap:16px;padding:16px 28px;background:#fff;border-bottom:1px solid var(--line)}
|
||||
.seal-mark{flex:none;width:38px;height:38px;background:var(--seal);color:#fff;display:grid;place-items:center;font-family:var(--serif);font-size:20px;font-weight:700;border-radius:8px}
|
||||
.topbar h1{font-family:var(--serif);font-size:25px;line-height:1.15;margin:0;font-weight:700;letter-spacing:1px}
|
||||
.topbar .subtitle{font-size:13px;color:#7a857e;margin:1px 0 0;letter-spacing:2px}
|
||||
.version{font-size:12px;color:#7a857e;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 11px;white-space:nowrap}
|
||||
.topnav{display:flex;gap:4px;flex-wrap:wrap;align-items:center;padding:8px 28px;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;scroll-margin-top:0}
|
||||
.topnav a{color:var(--ink-soft);text-decoration:none;font-size:13.5px;font-weight:600;padding:6px 10px;border-radius:999px;white-space:nowrap}
|
||||
.topnav a:hover{color:var(--ink);background:var(--pine-soft)}
|
||||
.topnav a.active{color:var(--ink);font-weight:700}
|
||||
.topnav .auto-refresh{margin-left:auto;color:#7a857e;font-size:12px;white-space:nowrap}
|
||||
section[id],div[id]{scroll-margin-top:130px}
|
||||
/* Layout: three columns, ChatGPT/Claude style.
|
||||
Left 300px (nav + task list), centre elastic (content centred to
|
||||
~800px), right 340px (detail/context). */
|
||||
.shell{display:grid;grid-template-columns:300px minmax(0,1fr) 340px;gap:20px;align-items:start;padding:24px 28px 48px}
|
||||
.rail{display:flex;flex-direction:column;gap:20px;min-width:0}
|
||||
.center-col{min-width:0}
|
||||
.center-inner{max-width:800px;margin:0 auto;width:100%;display:flex;flex-direction:column;gap:20px}
|
||||
.detail-col{display:flex;flex-direction:column;gap:20px;min-width:0}
|
||||
.left-nav{display:flex;flex-direction:column;gap:8px}
|
||||
.left-nav button{text-align:left;border-radius:12px;background:#fff}
|
||||
.left-nav button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
|
||||
.left-tasks input[type="text"]{width:100%}
|
||||
.selected-task{border-color:var(--seal)!important;background:var(--seal-soft)!important}
|
||||
.conversation{display:flex;flex-direction:column;gap:20px}
|
||||
/* Cards: every module is one rounded independent white card */
|
||||
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}
|
||||
.card h2{font-family:var(--serif);font-size:18px;margin:0 0 12px;letter-spacing:.5px}
|
||||
.card h3{font-family:var(--serif);font-size:15px;margin:24px 0 12px;padding-top:20px;border-top:1px solid var(--line)}
|
||||
button{cursor:pointer;font-weight:600;border-radius:999px}
|
||||
button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
|
||||
button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
|
||||
button.primary:hover{background:var(--accent-dark)}
|
||||
/* "seal" is a legacy class name only; its colour is screenshot blue now. */
|
||||
button.seal{background:var(--accent);border-color:var(--accent);color:#fff}
|
||||
button.seal:hover{background:var(--accent-dark)}
|
||||
button.danger{color:var(--danger);border-color:#fecdca;background:var(--danger-soft)}
|
||||
button.danger:hover{background:#fee4e2}
|
||||
.icon-btn{width:32px;height:32px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--text);font-size:16px;line-height:1}
|
||||
.icon-btn:hover{background:#f9fafb}
|
||||
|
||||
/* App shell: icon rail + list + conversation + right panel, full viewport.
|
||||
Columns are separated by hairlines, not gaps or cards. */
|
||||
.muse-app{display:grid;grid-template-columns:56px 260px minmax(0,1fr) 300px;height:100vh;background:#fff}
|
||||
.muse-app.no-right{grid-template-columns:56px 260px minmax(0,1fr)}
|
||||
.icon-rail{border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 0;overflow-y:auto}
|
||||
.icon-rail button{width:40px;height:40px;border:0;border-radius:12px;background:transparent;display:grid;place-items:center;color:var(--text);padding:0;flex:none}
|
||||
.icon-rail button:hover{background:#f2f2f2}
|
||||
.icon-rail button.active{background:var(--accent-soft);color:var(--accent)}
|
||||
.icon-rail svg{width:22px;height:22px}
|
||||
.list-col{border-right:1px solid var(--line);overflow-y:auto;padding:16px 12px;min-width:0}
|
||||
.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#fff}
|
||||
.search-box svg{flex:none;color:var(--muted)}
|
||||
.search-box input{border:0;padding:0;flex:1;min-width:0;font-size:14px;background:transparent}
|
||||
.search-box input:focus{box-shadow:none;outline:none}
|
||||
.list-section-head{display:flex;align-items:center;justify-content:space-between;padding:16px 4px 8px;font-weight:600;font-size:14px}
|
||||
.list-section-head button{width:28px;height:28px;padding:0;display:grid;place-items:center;border-radius:50%}
|
||||
.muse-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
|
||||
.muse-item{padding:10px 12px;border-radius:12px;cursor:pointer;overflow:hidden}
|
||||
.muse-item:hover{background:#f9fafb}
|
||||
.muse-item.selected{background:#f2f2f2}
|
||||
.muse-item-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
|
||||
.muse-item-sub{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.task-dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
|
||||
.center-col{min-width:0;display:flex;flex-direction:column;overflow-y:auto;background:#fff}
|
||||
.center-topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line)}
|
||||
.center-inner{max-width:760px;margin:0 auto;width:100%;padding:24px 20px 16px;display:flex;flex-direction:column;gap:20px;flex:1}
|
||||
.right-col{border-left:1px solid var(--line);overflow-y:auto;padding:20px 16px;display:flex;flex-direction:column;gap:20px;min-width:0}
|
||||
.right-profile{text-align:center;position:relative}
|
||||
.right-profile .icon-btn{position:absolute;top:0;right:0}
|
||||
.right-avatar{width:72px;height:72px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:28px;font-weight:700;margin:0 auto}
|
||||
.right-name{font-weight:700;font-size:17px;margin-top:10px}
|
||||
.right-status{color:var(--green);font-size:13px;font-weight:600}
|
||||
.right-status.off{color:var(--muted)}
|
||||
.right-icon-row{display:flex;gap:4px;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 4px}
|
||||
.right-icon-row button{width:36px;height:36px;border:0;border-radius:12px;background:transparent;display:grid;place-items:center;color:var(--text);padding:0}
|
||||
.right-icon-row button:hover{background:#f2f2f2}
|
||||
.right-icon-row button.active{background:var(--accent-soft);color:var(--accent)}
|
||||
.right-icon-row svg{width:20px;height:20px}
|
||||
.today-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
|
||||
.today-item{display:flex;gap:10px;cursor:pointer;align-items:flex-start}
|
||||
.today-check{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line-strong);display:grid;place-items:center;flex:none;font-size:13px;color:var(--muted)}
|
||||
.today-check.done{border-color:var(--green);background:var(--green);color:#fff}
|
||||
.today-item-main{flex:1;min-width:0;display:block}
|
||||
.today-item-title{display:block;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.today-item-sub{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.today-item-time{color:var(--muted);font-size:12px;flex:none;white-space:nowrap}
|
||||
.right-detail summary{font-weight:600;font-size:14px;cursor:pointer;padding:8px 0}
|
||||
.right-detail .card{border:0;padding:0;box-shadow:none}
|
||||
.right-detail .card h2{font-size:16px}
|
||||
|
||||
/* Cards: flat white sections with a hairline border, no shadow. */
|
||||
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:none;padding:20px}
|
||||
.card h2{font-size:17px;margin:0 0 12px;font-weight:600}
|
||||
.card h3{font-size:15px;margin:24px 0 12px;padding-top:20px;border-top:1px solid var(--line);font-weight:600}
|
||||
.card h3:first-of-type{border-top:0;padding-top:0}
|
||||
.composer h2{font-size:22px}
|
||||
.composer textarea#prompt,.composer textarea.prompt{ min-height:148px;font-size:16px;padding:16px 18px;border-radius:12px}
|
||||
.composer h2{font-size:20px}
|
||||
.composer textarea.prompt{min-height:148px;font-size:16px;padding:16px 18px;border-radius:12px}
|
||||
.composer textarea.coord{font-family:var(--mono);font-size:13px}
|
||||
/* Unified controls: same-row controls are all 40px */
|
||||
.bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
|
||||
.bar > button,.bar > label{display:inline-flex;align-items:center;height:var(--ctl);min-height:var(--ctl);padding:0 16px;box-sizing:border-box;white-space:nowrap}
|
||||
.bar > input,.bar > select{height:var(--ctl);min-height:var(--ctl)}
|
||||
input,select,textarea,button{font:inherit;font-size:14px;padding:10px 13px;border-radius:var(--radius-sm);border:1px solid var(--line-strong);background:#fff;color:var(--ink)}
|
||||
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(28,34,32,.08)}
|
||||
button{cursor:pointer;font-weight:600;border-radius:999px;padding:9px 16px}
|
||||
button:hover{box-shadow:0 4px 14px rgba(28,34,32,.10)}
|
||||
button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
|
||||
button.primary{background:var(--ink);border-color:var(--ink);color:#fff}
|
||||
button.primary:hover{background:#000}
|
||||
button.seal{background:var(--seal);border-color:var(--seal);color:#fff}
|
||||
button.seal:hover{background:var(--seal-dark)}
|
||||
button.danger{color:var(--danger);border-color:#fecdca;background:var(--danger-soft)}
|
||||
button.danger:hover{background:#fee4e2}
|
||||
select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:34px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round'/></svg>");background-repeat:no-repeat;background-position:right 12px center}
|
||||
input,select,textarea,button{font:inherit;font-size:14px;padding:10px 13px;border-radius:var(--radius-sm);border:1px solid var(--line-strong);background:#fff;color:var(--text)}
|
||||
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(59,130,246,.15)}
|
||||
button:hover{box-shadow:none}
|
||||
select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:34px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round'/></svg>");background-repeat:no-repeat;background-position:right 12px center}
|
||||
select::-ms-expand{display:none}
|
||||
select:disabled,input:disabled{color:#7a857e;background:var(--paper);cursor:not-allowed}
|
||||
input[type="checkbox"]{width:16px;height:16px;accent-color:var(--seal)}
|
||||
select:disabled,input:disabled{color:var(--muted);background:#f9fafb;cursor:not-allowed}
|
||||
input[type="checkbox"]{width:16px;height:16px;accent-color:var(--accent)}
|
||||
input[type="file"]{height:var(--ctl);display:inline-flex;align-items:center;padding:0 12px;border:1px dashed var(--line-strong);border-radius:999px;background:#fff}
|
||||
input[type="file"]::file-selector-button{height:28px;padding:0 12px;margin-right:10px;border:0;border-radius:999px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
|
||||
input[type="file"]::file-selector-button{height:28px;padding:0 12px;margin-right:10px;border:0;border-radius:999px;background:#f2f2f2;color:var(--text);font:inherit;font-size:13px;cursor:pointer}
|
||||
textarea{width:100%;min-height:84px;resize:vertical;line-height:1.65;padding:12px 14px;border-radius:12px}
|
||||
.composer .bar label{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-strong);border-radius:999px;padding:7px 13px;background:#fff;cursor:pointer;font-size:13px;font-weight:600}
|
||||
.composer .bar label:has(input:checked){background:var(--ink);color:#fff;border-color:var(--ink)}
|
||||
.rail .bar > input,.rail .bar > select{flex:1 1 120px;min-width:0}
|
||||
.rail .bar > button,.rail .bar > label{flex:none}
|
||||
.composer .bar label:has(input:checked){background:var(--text);color:#fff;border-color:var(--text)}
|
||||
.stacked{margin-bottom:12px}
|
||||
.stacked + .bar{margin-top:0}
|
||||
/* Data lists: one shared list style, no per-section inline styles */
|
||||
.data-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
|
||||
.data-list li{position:relative;margin:0;padding:10px 12px;background:var(--paper);border:1px solid var(--line);border-radius:12px;line-height:1.6;display:flex;flex-wrap:wrap;align-items:center;gap:8px;overflow-wrap:anywhere}
|
||||
.data-list li{position:relative;margin:0;padding:10px 12px;background:#f9fafb;border:1px solid var(--line);border-radius:12px;line-height:1.6;display:flex;flex-wrap:wrap;align-items:center;gap:8px;overflow-wrap:anywhere}
|
||||
.data-list li .row-main{flex:1 1 200px;min-width:0}
|
||||
.data-list li button{flex:none}
|
||||
.data-list li.is-online,.data-list li.is-offline{padding-left:26px}
|
||||
.data-list li.is-online::before,.data-list li.is-offline::before{content:"";position:absolute;left:12px;top:17px;width:8px;height:8px;border-radius:50%}
|
||||
.data-list li.is-online::before{background:var(--pine)}
|
||||
.data-list li.is-offline::before{background:var(--seal)}
|
||||
.data-list li.is-online::before{background:var(--green)}
|
||||
.data-list li.is-offline::before{background:var(--danger)}
|
||||
.data-group{margin-bottom:12px}.data-group:last-child{margin-bottom:0}.data-group > b{display:block;margin-bottom:8px}
|
||||
/* Status pills / dots */
|
||||
.st-queued{color:#7a857e}.st-running{color:var(--amber);font-weight:700}.st-completed{color:var(--success)}.st-failed,.st-merge-failed{color:var(--danger)}.st-merged{color:var(--purple)}.st-interrupted{color:var(--amber)}
|
||||
/* Task table */
|
||||
/* Status colours (text only; dots use currentColor) */
|
||||
.st-queued{color:var(--muted)}.st-running{color:var(--amber);font-weight:700}.st-completed{color:var(--success)}.st-failed,.st-merge-failed{color:var(--danger)}.st-merged{color:var(--purple)}.st-interrupted{color:var(--amber)}
|
||||
/* Task table (kept for any table view; the left list is the primary list) */
|
||||
.table-wrap{border:0;border-top:1px solid var(--line);overflow:auto;background:var(--card)}
|
||||
table{border-collapse:collapse;width:100%;font-size:13px}
|
||||
th,td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
|
||||
th{background:#faf9f6;color:#7a857e;font-size:12px;font-weight:600;white-space:nowrap;letter-spacing:.3px}
|
||||
tbody tr{cursor:pointer;border-left:3px solid transparent}
|
||||
tbody tr:hover{background:#faf9f6}
|
||||
tr.selected{background:var(--seal-soft);border-left-color:var(--seal)}
|
||||
td.prompt-col{font-family:var(--serif);font-size:15px;line-height:1.55}
|
||||
td.st-queued::before,td.st-running::before,td.st-completed::before,td.st-failed::before,td.st-merge-failed::before,td.st-merged::before,td.st-interrupted::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-right:7px;vertical-align:1px}
|
||||
/* Dark result / trace block: the one dark element */
|
||||
pre{background:var(--ink);color:#ece7db;border:1px solid var(--ink);border-radius:12px;padding:16px 18px;overflow:auto;max-height:420px;white-space:pre-wrap;word-break:break-word;font-size:13px;font-family:var(--mono);line-height:1.7}
|
||||
.trace-box{background:var(--ink);color:#ece7db;border:1px solid var(--ink);border-left:4px solid var(--seal);border-radius:12px;padding:16px 18px;max-height:520px;overflow:auto;font-size:13px;line-height:1.9;font-family:var(--mono)}
|
||||
.trace-box .muted{color:#a8b0aa}
|
||||
/* Chat: one shared conversation style for trace timeline and continue.
|
||||
Centred column, user right, assistant left, tool mono, status centred.
|
||||
Colours are v3 tokens only; seal is only the follow-back dot. */
|
||||
.chat-column{max-width:680px;margin:0 auto;width:100%}
|
||||
.chat-list{position:relative;display:flex;flex-direction:column;gap:12px;max-height:520px;overflow:auto;padding:8px 4px}
|
||||
th{background:#f9fafb;color:var(--muted);font-size:12px;font-weight:600;white-space:nowrap;letter-spacing:.3px}
|
||||
tbody tr{cursor:pointer}
|
||||
tbody tr:hover{background:#f9fafb}
|
||||
tr.selected{background:#f2f2f2}
|
||||
td.prompt-col{font-size:15px;line-height:1.55}
|
||||
/* Result / error blocks: light, not dark — the screenshot has no dark log block */
|
||||
pre{background:#f9fafb;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:16px 18px;overflow:auto;max-height:420px;white-space:pre-wrap;word-break:break-word;font-size:13px;font-family:var(--mono);line-height:1.7}
|
||||
.trace-box{background:#f9fafb;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:16px 18px;max-height:520px;overflow:auto;font-size:13px;line-height:1.9;font-family:var(--mono)}
|
||||
.trace-box .muted{color:var(--muted)}
|
||||
/* Chat: Muse screenshot bubbles. Assistant grey left, user light-blue
|
||||
right, dark text on both, rounded ~16px, max-width ~75%. One shared
|
||||
style for the trace timeline and the continue chat. */
|
||||
.conversation{display:flex;flex-direction:column;gap:20px}
|
||||
.chat-column{max-width:100%;margin:0 auto;width:100%}
|
||||
.chat-list{position:relative;display:flex;flex-direction:column;gap:12px;max-height:none;overflow:visible;padding:8px 0}
|
||||
.chat-row{display:flex}.chat-row.user{justify-content:flex-end}.chat-row.assistant,.chat-row.tool{justify-content:flex-start}
|
||||
.chat-bubble{max-width:85%;padding:10px 14px;border-radius:16px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
|
||||
.chat-bubble.user{background:var(--pine);color:#fff;border-bottom-right-radius:4px}
|
||||
.chat-bubble.assistant{background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px}
|
||||
.chat-bubble.tool{background:var(--paper);border:1px solid var(--line);font-family:var(--mono);font-size:13px;border-bottom-left-radius:4px}
|
||||
.chat-label{font-size:12px;color:#7a857e;margin-bottom:4px}
|
||||
.chat-bubble.user .chat-label{color:#cfe3dd}
|
||||
.chat-status{text-align:center;font-size:12px;color:#7a857e}
|
||||
.chat-follow{position:sticky;bottom:8px;align-self:center;background:var(--seal);border-color:var(--seal);color:#fff;z-index:2}
|
||||
.chat-input-bar{position:sticky;bottom:0;display:flex;gap:8px;align-items:center;background:#fff;padding:12px 0;border-top:1px solid var(--line);z-index:2}
|
||||
.chat-input{flex:1;height:var(--ctl);min-height:var(--ctl);resize:none}
|
||||
.chat-send{height:var(--ctl);flex:none}
|
||||
.chat-bubble{max-width:75%;padding:10px 14px;border-radius:16px;line-height:1.65;white-space:pre-wrap;word-break:break-word;color:var(--text)}
|
||||
.chat-bubble.user{background:var(--bubble-user);border-bottom-right-radius:4px}
|
||||
.chat-bubble.assistant{background:var(--bubble-assistant);border-bottom-left-radius:4px}
|
||||
.chat-bubble.tool{background:var(--bubble-assistant);font-family:var(--mono);font-size:13px;border-bottom-left-radius:4px}
|
||||
.chat-label{font-size:12px;color:var(--muted);margin-bottom:4px}
|
||||
.chat-status{text-align:center;font-size:12px;color:var(--muted)}
|
||||
.chat-follow{position:sticky;bottom:8px;align-self:center;background:var(--accent);border-color:var(--accent);color:#fff;z-index:2}
|
||||
.chat-input-bar{position:sticky;bottom:0;display:flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 6px 6px 16px;box-shadow:0 1px 4px rgba(0,0,0,.06);z-index:2}
|
||||
.chat-input{flex:1;height:var(--ctl);min-height:var(--ctl);resize:none;border:0;background:transparent;padding:8px 0}
|
||||
.chat-input:focus{box-shadow:none;outline:none}
|
||||
.chat-send{width:36px;height:36px;border-radius:50%;background:var(--bubble-user);border:0;color:var(--accent-dark);padding:0;display:grid;place-items:center;font-size:18px;line-height:1;flex:none}
|
||||
.chat-send:disabled{opacity:.45;background:#f2f2f2;color:var(--muted)}
|
||||
.conv-divider{border-top:1px solid var(--line);margin:4px 0}
|
||||
@media (max-width:1240px){
|
||||
.shell{grid-template-columns:280px minmax(0,1fr)}
|
||||
.detail-col{grid-column:1 / -1}
|
||||
.muse-app{grid-template-columns:56px 260px minmax(0,1fr)}
|
||||
.muse-app.no-right{grid-template-columns:56px 260px minmax(0,1fr)}
|
||||
.right-col{grid-column:1 / -1;border-left:0;border-top:1px solid var(--line)}
|
||||
}
|
||||
@media (max-width:900px){
|
||||
.shell{grid-template-columns:1fr;padding:16px 14px 32px;gap:16px}
|
||||
.topbar{padding:12px 16px}.topbar h1{font-size:19px}.topbar .subtitle{display:none}
|
||||
.topnav{flex-wrap:nowrap;overflow-x:auto;padding:8px 16px}.topnav a{flex:none}.topnav .auto-refresh{margin-left:0;flex:none}
|
||||
.card{padding:20px}
|
||||
.muse-app,.muse-app.no-right{grid-template-columns:1fr}
|
||||
.icon-rail{display:none}
|
||||
.center-inner{padding:16px 14px}
|
||||
.card{padding:16px}
|
||||
th:nth-child(2),td:nth-child(2),th:nth-child(3),td:nth-child(3),th:nth-child(7),td:nth-child(7){display:none}
|
||||
}
|
||||
@media (max-width:560px){
|
||||
.version{display:none}.card{padding:16px}
|
||||
.card{padding:16px}
|
||||
th:nth-child(6),td:nth-child(6),th:nth-child(9),td:nth-child(9){display:none}
|
||||
.bar > input[type="text"],.bar > input[type="password"],.bar > select{flex:1 1 100%}
|
||||
th,td{padding:10px 12px}
|
||||
|
||||
Reference in new issue
Block a user