mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Add the Command Center (IDE) layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
2615904b1e
commit
e28e18c88c
8 files changed
+770
-9
No files matched your search
@@ -36,7 +36,7 @@ const STORE_SCREENSHOT_RE = /^data:image\/(png|jpe?g|webp);base64,[A-Za-z0-9+/]+
|
|||||||
// grow unbounded from spam that slips past rate limiting (a fresh IP per
|
// grow unbounded from spam that slips past rate limiting (a fresh IP per
|
||||||
// submission, say). Bounds worst case to ~300 * 450KB =~ 135MB in RAM.
|
// submission, say). Bounds worst case to ~300 * 450KB =~ 135MB in RAM.
|
||||||
const STORE_MAX_THEMES = 300;
|
const STORE_MAX_THEMES = 300;
|
||||||
const STORE_BASE_THEMES = new Set(["standard", "nova", "greenteaspeak", "pulse"]);
|
const STORE_BASE_THEMES = new Set(["standard", "nova", "greenteaspeak", "pulse", "ide"]);
|
||||||
|
|
||||||
// A handful of names (the operator's own) that only whoever holds
|
// A handful of names (the operator's own) that only whoever holds
|
||||||
// STORE_ADMIN_TOKEN may publish under - stops anyone else from impersonating
|
// STORE_ADMIN_TOKEN may publish under - stops anyone else from impersonating
|
||||||
|
|||||||
+85
-8
@@ -1,6 +1,8 @@
|
|||||||
import { useEffect, useMemo, useRef, useState, type ReactNode } from "react";
|
import { useEffect, useMemo, useRef, useState, type ReactNode } from "react";
|
||||||
import { useRegisterSW } from "virtual:pwa-register/react";
|
import { useRegisterSW } from "virtual:pwa-register/react";
|
||||||
import "./App.css";
|
import "./App.css";
|
||||||
|
// After App.css: its :where() base variables have the same (zero) specificity.
|
||||||
|
import "./styles/ide.css";
|
||||||
|
|
||||||
const FOCUSABLE =
|
const FOCUSABLE =
|
||||||
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
||||||
@@ -396,7 +398,7 @@ const DESIGN_THEME_KEY = "webspeak3:design-theme";
|
|||||||
const DESIGN_SELECTION_KEY = "webspeak3:design-selection";
|
const DESIGN_SELECTION_KEY = "webspeak3:design-selection";
|
||||||
const CUSTOM_THEMES_KEY = "webspeak3:custom-themes";
|
const CUSTOM_THEMES_KEY = "webspeak3:custom-themes";
|
||||||
|
|
||||||
type DesignTheme = "standard" | "nova" | "greenteaspeak" | "pulse";
|
type DesignTheme = "standard" | "nova" | "greenteaspeak" | "pulse" | "ide";
|
||||||
|
|
||||||
/** A user-authored theme package: a name, which built-in layout it behaves like
|
/** A user-authored theme package: a name, which built-in layout it behaves like
|
||||||
* (Standard's plain chrome, Nova's collapsed menu/splash, GreenTeaSpeak shell,
|
* (Standard's plain chrome, Nova's collapsed menu/splash, GreenTeaSpeak shell,
|
||||||
@@ -436,7 +438,9 @@ const STORE_ADMIN_TOKEN_KEY = "webspeak3:store-admin-token";
|
|||||||
const STORE_SCREENSHOT_MAX_DATA_URL_LENGTH = 400_000;
|
const STORE_SCREENSHOT_MAX_DATA_URL_LENGTH = 400_000;
|
||||||
|
|
||||||
function isDesignTheme(value: string): value is DesignTheme {
|
function isDesignTheme(value: string): value is DesignTheme {
|
||||||
return value === "standard" || value === "nova" || value === "greenteaspeak" || value === "pulse";
|
return (
|
||||||
|
value === "standard" || value === "nova" || value === "greenteaspeak" || value === "pulse" || value === "ide"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadDesignTheme(): DesignTheme {
|
function loadDesignTheme(): DesignTheme {
|
||||||
@@ -455,6 +459,7 @@ function resolveDesignThemeBase(selection: string, customThemes: CustomTheme[]):
|
|||||||
function designThemeClassName(theme: DesignTheme): string {
|
function designThemeClassName(theme: DesignTheme): string {
|
||||||
if (theme === "nova") return " ts-design-nova";
|
if (theme === "nova") return " ts-design-nova";
|
||||||
if (theme === "pulse") return " ts-design-pulse";
|
if (theme === "pulse") return " ts-design-pulse";
|
||||||
|
if (theme === "ide") return " ts-design-ide";
|
||||||
if (isGreenteaSpeakTheme(theme)) return " ts-design-greenteaspeak";
|
if (isGreenteaSpeakTheme(theme)) return " ts-design-greenteaspeak";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
@@ -463,6 +468,7 @@ function designThemeLabel(theme: DesignTheme, t: (key: string) => string): strin
|
|||||||
if (theme === "nova") return t("design.theme.nova");
|
if (theme === "nova") return t("design.theme.nova");
|
||||||
if (theme === "greenteaspeak") return t("design.theme.greenteaspeak");
|
if (theme === "greenteaspeak") return t("design.theme.greenteaspeak");
|
||||||
if (theme === "pulse") return t("design.theme.pulse");
|
if (theme === "pulse") return t("design.theme.pulse");
|
||||||
|
if (theme === "ide") return t("design.theme.ide");
|
||||||
return t("design.theme.standard");
|
return t("design.theme.standard");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1335,12 +1341,24 @@ function SpeakingNowBar({
|
|||||||
talkers,
|
talkers,
|
||||||
ownClientId,
|
ownClientId,
|
||||||
images,
|
images,
|
||||||
|
serverGroups,
|
||||||
|
selectedClientId,
|
||||||
|
onSelect,
|
||||||
|
onOpenPrivateChat,
|
||||||
|
onContextMenu,
|
||||||
}: {
|
}: {
|
||||||
clients: ClientInfo[];
|
clients: ClientInfo[];
|
||||||
talkers: Set<number>;
|
talkers: Set<number>;
|
||||||
ownClientId: number | null;
|
ownClientId: number | null;
|
||||||
images: Record<string, string>;
|
images: Record<string, string>;
|
||||||
|
/** IDE layout only: render group tags and a mic status next to the name. */
|
||||||
|
serverGroups?: GroupEntry[] | null;
|
||||||
|
selectedClientId: number | null;
|
||||||
|
onSelect: (clientId: number) => void;
|
||||||
|
onOpenPrivateChat: (clientId: number, clientName: string) => void;
|
||||||
|
onContextMenu: (e: React.MouseEvent, clientId: number, clientName: string, isSelf: boolean) => void;
|
||||||
}) {
|
}) {
|
||||||
|
const t = useT();
|
||||||
const own = clients.find((c) => c.id === ownClientId);
|
const own = clients.find((c) => c.id === ownClientId);
|
||||||
if (!own) return null;
|
if (!own) return null;
|
||||||
const channelClients = clients.filter((c) => c.channel === own.channel);
|
const channelClients = clients.filter((c) => c.channel === own.channel);
|
||||||
@@ -1351,11 +1369,54 @@ function SpeakingNowBar({
|
|||||||
{channelClients.map((c) => (
|
{channelClients.map((c) => (
|
||||||
<div
|
<div
|
||||||
key={c.id}
|
key={c.id}
|
||||||
className={`ts-speaking-now-tile${talkers.has(c.id) ? " ts-speaking-now-tile-active" : ""}`}
|
className={`ts-speaking-now-tile${talkers.has(c.id) ? " ts-speaking-now-tile-active" : ""}${
|
||||||
|
c.id === selectedClientId ? " ts-speaking-now-tile-selected" : ""
|
||||||
|
}`}
|
||||||
title={c.name}
|
title={c.name}
|
||||||
|
onClick={() => onSelect(c.id)}
|
||||||
|
onDoubleClick={c.id === ownClientId ? undefined : () => onOpenPrivateChat(c.id, c.name)}
|
||||||
|
onContextMenu={(e) => onContextMenu(e, c.id, c.name, c.id === ownClientId)}
|
||||||
>
|
>
|
||||||
<AvatarTile client={c} images={images} className="ts-speaking-now-avatar" isSelf={c.id === ownClientId} />
|
<AvatarTile client={c} images={images} className="ts-speaking-now-avatar" isSelf={c.id === ownClientId} />
|
||||||
<span className="ts-speaking-now-name">{c.name}</span>
|
{serverGroups === undefined ? (
|
||||||
|
<span className="ts-speaking-now-name">{c.name}</span>
|
||||||
|
) : (
|
||||||
|
<div className="ts-speaking-now-body">
|
||||||
|
<div className="ts-speaking-now-head">
|
||||||
|
<span className="ts-speaking-now-name">{c.name}</span>
|
||||||
|
{talkers.has(c.id) ? (
|
||||||
|
<span className="ts-speaking-now-bars" aria-hidden="true">
|
||||||
|
<i />
|
||||||
|
<i />
|
||||||
|
<i />
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
(c.inputMuted || !c.inputHardwareEnabled) && (
|
||||||
|
<TalkLamp talking={false} inputMuted={c.inputMuted} inputHardwareEnabled={c.inputHardwareEnabled} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="ts-speaking-now-groups">
|
||||||
|
{c.serverGroups
|
||||||
|
.map((gid) => serverGroups?.find((g) => g.id === gid))
|
||||||
|
.filter((g): g is GroupEntry => !!g)
|
||||||
|
.map((g) => (
|
||||||
|
<span
|
||||||
|
key={g.id}
|
||||||
|
className="ts-speaking-now-group"
|
||||||
|
style={{ "--group-color": g.iconId ? groupBadgeColor(g.iconId) : "#71717a" } as React.CSSProperties}
|
||||||
|
>
|
||||||
|
{g.name}
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
{(c.away || c.outputMuted) && (
|
||||||
|
<div className="ts-speaking-now-status">
|
||||||
|
{c.away ? `${t("tree.away")}${c.awayMessage ? `: ${c.awayMessage}` : ""}` : t("tree.soundMuted")}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@@ -5549,6 +5610,7 @@ function DesignPanel({
|
|||||||
desc: t("design.theme.greenteaspeak.desc"),
|
desc: t("design.theme.greenteaspeak.desc"),
|
||||||
},
|
},
|
||||||
{ id: "pulse", name: t("design.theme.pulse"), desc: t("design.theme.pulse.desc") },
|
{ id: "pulse", name: t("design.theme.pulse"), desc: t("design.theme.pulse.desc") },
|
||||||
|
{ id: "ide", name: t("design.theme.ide"), desc: t("design.theme.ide.desc") },
|
||||||
];
|
];
|
||||||
|
|
||||||
const handleSaveEditing = () => {
|
const handleSaveEditing = () => {
|
||||||
@@ -5622,6 +5684,7 @@ function DesignPanel({
|
|||||||
<option value="nova">{t("design.theme.nova")}</option>
|
<option value="nova">{t("design.theme.nova")}</option>
|
||||||
<option value="greenteaspeak">{t("design.theme.greenteaspeak")}</option>
|
<option value="greenteaspeak">{t("design.theme.greenteaspeak")}</option>
|
||||||
<option value="pulse">{t("design.theme.pulse")}</option>
|
<option value="pulse">{t("design.theme.pulse")}</option>
|
||||||
|
<option value="ide">{t("design.theme.ide")}</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label className="ts-options-field">
|
<label className="ts-options-field">
|
||||||
@@ -9889,6 +9952,8 @@ function AppInner() {
|
|||||||
? serverClientsOnline + (showServerQueryClients ? queryClientCount : 0)
|
? serverClientsOnline + (showServerQueryClients ? queryClientCount : 0)
|
||||||
: treeClients.length;
|
: treeClients.length;
|
||||||
const novaSplash = designTheme === "nova" && !connected;
|
const novaSplash = designTheme === "nova" && !connected;
|
||||||
|
// Nova and IDE collapse the menubar behind a hamburger button.
|
||||||
|
const compactMenu = designTheme === "nova" || designTheme === "ide";
|
||||||
const micLabel = !micOn ? t("toolbar.micEnable") : inputMuted ? t("toolbar.micUnmute") : t("toolbar.micMute");
|
const micLabel = !micOn ? t("toolbar.micEnable") : inputMuted ? t("toolbar.micUnmute") : t("toolbar.micMute");
|
||||||
const streamLabel = DEMO_MODE
|
const streamLabel = DEMO_MODE
|
||||||
? t("publish.demoUnavailable")
|
? t("publish.demoUnavailable")
|
||||||
@@ -9914,8 +9979,8 @@ function AppInner() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="ts-menubar">
|
<div className="ts-menubar">
|
||||||
<div className={designTheme === "nova" ? "ts-nova-menu-dropdown" : undefined} ref={novaMenuRef}>
|
<div className={compactMenu ? "ts-nova-menu-dropdown" : undefined} ref={novaMenuRef}>
|
||||||
{designTheme === "nova" && (
|
{compactMenu && (
|
||||||
<button
|
<button
|
||||||
className="ts-icon-button ts-nova-menu-toggle"
|
className="ts-icon-button ts-nova-menu-toggle"
|
||||||
onClick={() => setNovaMenuOpen((v) => !v)}
|
onClick={() => setNovaMenuOpen((v) => !v)}
|
||||||
@@ -9926,7 +9991,7 @@ function AppInner() {
|
|||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<div
|
<div
|
||||||
className={`ts-menubar-items${designTheme === "nova" ? " ts-nova-menu-panel" : ""}${
|
className={`ts-menubar-items${compactMenu ? " ts-nova-menu-panel" : ""}${
|
||||||
novaMenuOpen ? " ts-nova-menu-panel-open" : ""
|
novaMenuOpen ? " ts-nova-menu-panel-open" : ""
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
@@ -11730,12 +11795,24 @@ function AppInner() {
|
|||||||
<div className="ts-resize-handle-horizontal" onMouseDown={startUpperResize} />
|
<div className="ts-resize-handle-horizontal" onMouseDown={startUpperResize} />
|
||||||
|
|
||||||
<div className="ts-chat-panel">
|
<div className="ts-chat-panel">
|
||||||
{connected && designTheme === "pulse" && (
|
{connected && designTheme === "ide" && (
|
||||||
|
<div className="ts-ide-breadcrumb">
|
||||||
|
{serverName || host}
|
||||||
|
{" / "}
|
||||||
|
<span>{channels.find((c) => c.id === ownClient?.channel)?.name ?? ""}</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{connected && (designTheme === "pulse" || designTheme === "ide") && (
|
||||||
<SpeakingNowBar
|
<SpeakingNowBar
|
||||||
clients={treeClients}
|
clients={treeClients}
|
||||||
talkers={displayTalkers}
|
talkers={displayTalkers}
|
||||||
ownClientId={ownClient?.id ?? null}
|
ownClientId={ownClient?.id ?? null}
|
||||||
images={serverIconImages}
|
images={serverIconImages}
|
||||||
|
serverGroups={designTheme === "ide" ? serverGroups : undefined}
|
||||||
|
selectedClientId={selected?.type === "client" ? selected.id : null}
|
||||||
|
onSelect={(id) => handleSelectItem({ type: "client", id })}
|
||||||
|
onOpenPrivateChat={handleOpenPrivateChat}
|
||||||
|
onContextMenu={handleClientContextMenu}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="ts-chat-messages">
|
<div className="ts-chat-messages">
|
||||||
|
|||||||
@@ -276,6 +276,8 @@
|
|||||||
"design.theme.greenteaspeak.desc": "Klasické rozvržení klienta GreenTeaSpeak s tmavými panely a zlatou lištou nabídky.",
|
"design.theme.greenteaspeak.desc": "Klasické rozvržení klienta GreenTeaSpeak s tmavými panely a zlatou lištou nabídky.",
|
||||||
"design.theme.pulse": "Pulse",
|
"design.theme.pulse": "Pulse",
|
||||||
"design.theme.pulse.desc": "Rozvržení založené na kartách s navigační lištou a barevným zvýrazněním.",
|
"design.theme.pulse.desc": "Rozvržení založené na kartách s navigační lištou a barevným zvýrazněním.",
|
||||||
|
"design.theme.ide": "Command Center",
|
||||||
|
"design.theme.ide.desc": "Technické, ploché rozvržení ve stylu IDE pro pokročilé uživatele.",
|
||||||
"design.status.connected": "Připojeno",
|
"design.status.connected": "Připojeno",
|
||||||
"design.custom.new": "+ Nový vzhled",
|
"design.custom.new": "+ Nový vzhled",
|
||||||
"design.custom.import": "Importovat vzhled",
|
"design.custom.import": "Importovat vzhled",
|
||||||
|
|||||||
@@ -276,6 +276,8 @@
|
|||||||
"design.theme.greenteaspeak.desc": "Klassisches GreenTeaSpeak-Client-Layout mit dunklen Panels und goldener Menüleiste.",
|
"design.theme.greenteaspeak.desc": "Klassisches GreenTeaSpeak-Client-Layout mit dunklen Panels und goldener Menüleiste.",
|
||||||
"design.theme.pulse": "Pulse",
|
"design.theme.pulse": "Pulse",
|
||||||
"design.theme.pulse.desc": "Karten-Layout mit Breadcrumb-Leiste und farbigem Akzent.",
|
"design.theme.pulse.desc": "Karten-Layout mit Breadcrumb-Leiste und farbigem Akzent.",
|
||||||
|
"design.theme.ide": "Command Center",
|
||||||
|
"design.theme.ide.desc": "Technisches, flaches Layout im IDE-Stil für Power-User.",
|
||||||
"design.status.connected": "Verbunden",
|
"design.status.connected": "Verbunden",
|
||||||
"design.custom.new": "+ Neues Design",
|
"design.custom.new": "+ Neues Design",
|
||||||
"design.custom.import": "Design importieren",
|
"design.custom.import": "Design importieren",
|
||||||
|
|||||||
@@ -276,6 +276,8 @@
|
|||||||
"design.theme.greenteaspeak.desc": "Classic GreenTeaSpeak client layout with dark panels and a gold menu bar.",
|
"design.theme.greenteaspeak.desc": "Classic GreenTeaSpeak client layout with dark panels and a gold menu bar.",
|
||||||
"design.theme.pulse": "Pulse",
|
"design.theme.pulse": "Pulse",
|
||||||
"design.theme.pulse.desc": "Card-based layout with a breadcrumb bar and a color accent.",
|
"design.theme.pulse.desc": "Card-based layout with a breadcrumb bar and a color accent.",
|
||||||
|
"design.theme.ide": "Command Center",
|
||||||
|
"design.theme.ide.desc": "A technical, flat IDE-style layout for power users.",
|
||||||
"design.status.connected": "Connected",
|
"design.status.connected": "Connected",
|
||||||
"design.custom.new": "+ New design",
|
"design.custom.new": "+ New design",
|
||||||
"design.custom.import": "Import design",
|
"design.custom.import": "Import design",
|
||||||
|
|||||||
@@ -276,6 +276,8 @@
|
|||||||
"design.theme.greenteaspeak.desc": "چیدمان کلاسیک کلاینت GreenTeaSpeak با پنلهای تیره و نوار منوی طلایی.",
|
"design.theme.greenteaspeak.desc": "چیدمان کلاسیک کلاینت GreenTeaSpeak با پنلهای تیره و نوار منوی طلایی.",
|
||||||
"design.theme.pulse": "Pulse",
|
"design.theme.pulse": "Pulse",
|
||||||
"design.theme.pulse.desc": "چیدمان کارتی با نوار مسیر و رنگ تأکیدی.",
|
"design.theme.pulse.desc": "چیدمان کارتی با نوار مسیر و رنگ تأکیدی.",
|
||||||
|
"design.theme.ide": "Command Center",
|
||||||
|
"design.theme.ide.desc": "چیدمانی فنی و تخت به سبک IDE برای کاربران حرفهای.",
|
||||||
"design.status.connected": "متصل",
|
"design.status.connected": "متصل",
|
||||||
"design.custom.new": "+ طراحی جدید",
|
"design.custom.new": "+ طراحی جدید",
|
||||||
"design.custom.import": "وارد کردن طراحی",
|
"design.custom.import": "وارد کردن طراحی",
|
||||||
|
|||||||
@@ -223,6 +223,8 @@
|
|||||||
"design.theme.greenteaspeak.desc": "经典 GreenTeaSpeak 客户端布局:深色面板与金色菜单栏。",
|
"design.theme.greenteaspeak.desc": "经典 GreenTeaSpeak 客户端布局:深色面板与金色菜单栏。",
|
||||||
"design.theme.pulse": "Pulse",
|
"design.theme.pulse": "Pulse",
|
||||||
"design.theme.pulse.desc": "卡片式布局,带面包屑栏和彩色强调。",
|
"design.theme.pulse.desc": "卡片式布局,带面包屑栏和彩色强调。",
|
||||||
|
"design.theme.ide": "Command Center",
|
||||||
|
"design.theme.ide.desc": "面向高级用户的扁平化 IDE 风格技术布局。",
|
||||||
"design.status.connected": "已连接",
|
"design.status.connected": "已连接",
|
||||||
"options.section.erweiterungen": "扩展",
|
"options.section.erweiterungen": "扩展",
|
||||||
"options.section.hotkeys": "快捷键",
|
"options.section.hotkeys": "快捷键",
|
||||||
|
|||||||
@@ -0,0 +1,674 @@
|
|||||||
|
/* Command Center (IDE style): explorer | voice grid + terminal | inspector,
|
||||||
|
flat zinc/emerald, always dark regardless of the light/dark toggle.
|
||||||
|
Variables sit in :where() so custom themes can override them; component
|
||||||
|
rules use .ts-app.ts-design-ide like Pulse does, so they beat App.css
|
||||||
|
without !important. Imported right after App.css in App.tsx - the order
|
||||||
|
matters for the zero-specificity block. */
|
||||||
|
|
||||||
|
:where(.ts-app.ts-design-ide) {
|
||||||
|
--ide-mono: "Fira Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
|
||||||
|
--ide-panel: #18181b;
|
||||||
|
--ide-faint: #71717a;
|
||||||
|
--ide-accent-bg: rgba(16, 185, 129, 0.1);
|
||||||
|
|
||||||
|
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
|
||||||
|
--bg: #09090b;
|
||||||
|
--bg-toolbar-1: #18181b;
|
||||||
|
--bg-toolbar-2: #18181b;
|
||||||
|
--border: #27272a;
|
||||||
|
--border-soft: #27272a;
|
||||||
|
--text: #e4e4e7;
|
||||||
|
--text-muted: #a1a1aa;
|
||||||
|
--text-faint: #71717a;
|
||||||
|
--accent: #10b981;
|
||||||
|
--success: #10b981;
|
||||||
|
--input-bg: #09090b;
|
||||||
|
--input-text: #e4e4e7;
|
||||||
|
--button-bg-1: #18181b;
|
||||||
|
--button-bg-2: #18181b;
|
||||||
|
--button-bg-hover-1: #27272a;
|
||||||
|
--button-bg-hover-2: #27272a;
|
||||||
|
--row-hover: #27272a;
|
||||||
|
--client-text: #a1a1aa;
|
||||||
|
--self-text: #10b981;
|
||||||
|
--log-bg: #09090b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide ::-webkit-scrollbar {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide ::-webkit-scrollbar-track {
|
||||||
|
background: var(--bg);
|
||||||
|
border-left: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide ::-webkit-scrollbar-thumb {
|
||||||
|
background: #3f3f46;
|
||||||
|
border: 2px solid var(--bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide *:focus-visible {
|
||||||
|
outline: 1px solid var(--accent);
|
||||||
|
outline-offset: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Header: menubar + toolbar + connection tabs ---------- */
|
||||||
|
|
||||||
|
/* No own row for the menubar: the hamburger floats into the toolbar row */
|
||||||
|
.ts-app.ts-design-ide > .ts-menubar {
|
||||||
|
position: relative;
|
||||||
|
z-index: 20;
|
||||||
|
height: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide > .ts-menubar .ts-nova-menu-dropdown {
|
||||||
|
position: absolute;
|
||||||
|
top: 0.4rem;
|
||||||
|
right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide > .ts-toolbar {
|
||||||
|
padding-right: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide > .ts-toolbar {
|
||||||
|
background: var(--ide-panel);
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-icon-button {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: none;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-icon-button:hover {
|
||||||
|
background: var(--row-hover);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .gts-connection-tabs {
|
||||||
|
background: var(--bg);
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .gts-connection-tab {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-right: 1px solid var(--border);
|
||||||
|
border-radius: 0;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .gts-connection-tab-active {
|
||||||
|
background: var(--ide-panel);
|
||||||
|
color: var(--text);
|
||||||
|
box-shadow: inset 0 2px 0 var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Body: explorer | center | inspector ---------- */
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide > .ts-body {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto minmax(0, 1fr) 18rem;
|
||||||
|
grid-template-rows: minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Flatten the Standard "upper row" so tree and info panel become grid cells */
|
||||||
|
.ts-app.ts-design-ide .ts-upper {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-resize-handle-vertical,
|
||||||
|
.ts-app.ts-design-ide .ts-resize-handle-horizontal {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-panel,
|
||||||
|
.ts-app.ts-design-ide .ts-side-panel {
|
||||||
|
grid-row: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
background: var(--ide-panel);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-panel {
|
||||||
|
grid-column: 1;
|
||||||
|
overflow-x: hidden;
|
||||||
|
min-width: 16rem;
|
||||||
|
padding: 0 0 0.5rem;
|
||||||
|
border-right: 1px solid var(--border);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-side-panel {
|
||||||
|
grid-column: 3;
|
||||||
|
border-left: 1px solid var(--border);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-panel {
|
||||||
|
grid-column: 2;
|
||||||
|
grid-row: 1;
|
||||||
|
background: var(--bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Section headers like an IDE side bar */
|
||||||
|
.ts-app.ts-design-ide .ts-tree-panel::before,
|
||||||
|
.ts-app.ts-design-ide .ts-side-panel::before {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
height: 2rem;
|
||||||
|
padding: 0 1rem;
|
||||||
|
margin-bottom: 0.4rem;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.15em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--ide-faint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-panel::before {
|
||||||
|
content: "Explorer";
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-side-panel::before {
|
||||||
|
content: "Inspector";
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-panel > * {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-row {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-row-selected {
|
||||||
|
background: var(--ide-accent-bg);
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Explorer tree as in the mockup: carets and dots instead of folder/server icons and orbs */
|
||||||
|
.ts-app.ts-design-ide .ts-server-row > svg,
|
||||||
|
.ts-app.ts-design-ide .ts-channel-row > svg {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-server-row {
|
||||||
|
color: var(--text);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-server-row::before {
|
||||||
|
content: "\25BE";
|
||||||
|
color: var(--ide-faint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-row {
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-channel-row {
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-channel-row:has(+ .ts-tree-list .ts-self) {
|
||||||
|
color: var(--text);
|
||||||
|
background: rgba(39, 39, 42, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-expander span {
|
||||||
|
border-top-color: var(--ide-faint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-expander-collapsed span {
|
||||||
|
border-top-color: transparent;
|
||||||
|
border-left-color: var(--ide-faint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-client-row.ts-self {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-client-row.ts-talking {
|
||||||
|
outline: 1px solid var(--accent);
|
||||||
|
outline-offset: -1px;
|
||||||
|
background: rgba(16, 185, 129, 0.05);
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-talk-lamp-idle,
|
||||||
|
.ts-app.ts-design-ide .ts-talk-lamp-talking {
|
||||||
|
position: relative;
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
margin: 0 4px;
|
||||||
|
background: #52525b;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-talk-lamp-talking {
|
||||||
|
background: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-talk-lamp-talking::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--accent);
|
||||||
|
animation: ts-ide-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes ts-ide-ping {
|
||||||
|
75%,
|
||||||
|
100% {
|
||||||
|
transform: scale(2.5);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The narrow explorer must not squeeze the name away in favour of the away message */
|
||||||
|
.ts-app.ts-design-ide .ts-client-row .ts-tree-label {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-client-away-message {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-talk-lamp-muted {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-search {
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inspector content */
|
||||||
|
.ts-app.ts-design-ide .ts-info-panel {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-info-title {
|
||||||
|
color: var(--text);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-info-row {
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-info-connection-link {
|
||||||
|
color: var(--accent);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- Center: breadcrumb, voice grid, terminal ---------- */
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-ide-breadcrumb {
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.3rem;
|
||||||
|
height: 2rem;
|
||||||
|
padding: 0 1rem;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--ide-faint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-ide-breadcrumb span {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
overflow-y: auto;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
||||||
|
align-content: start;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 1rem;
|
||||||
|
overflow: hidden;
|
||||||
|
background: var(--ide-panel);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 4px;
|
||||||
|
opacity: 0.8;
|
||||||
|
transition: opacity 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile:hover,
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile-active {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile-active {
|
||||||
|
border-color: var(--accent);
|
||||||
|
box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(16, 185, 129, 0.35);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Speaking glow along the top edge */
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile-active::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0 0 auto;
|
||||||
|
height: 2px;
|
||||||
|
background: var(--accent);
|
||||||
|
box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-avatar {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
background: var(--bg);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-avatar img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-name {
|
||||||
|
min-width: 0;
|
||||||
|
max-width: none;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile-active .ts-speaking-now-name {
|
||||||
|
color: var(--text);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-body {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-head {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 0.5rem;
|
||||||
|
margin-bottom: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-head .ts-talk-lamp-muted {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Little audio visualizer for the speaker */
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-bars {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
gap: 2px;
|
||||||
|
height: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-bars i {
|
||||||
|
width: 4px;
|
||||||
|
height: 100%;
|
||||||
|
background: var(--accent);
|
||||||
|
animation: ts-ide-bar 0.8s ease-in-out infinite alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-bars i:nth-child(2) {
|
||||||
|
animation-delay: -0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-bars i:nth-child(3) {
|
||||||
|
animation-delay: -0.55s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes ts-ide-bar {
|
||||||
|
from {
|
||||||
|
height: 25%;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-groups {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-group {
|
||||||
|
padding: 0 0.25rem;
|
||||||
|
border: 1px solid var(--group-color);
|
||||||
|
background: color-mix(in srgb, var(--group-color) 10%, transparent);
|
||||||
|
color: color-mix(in srgb, var(--group-color) 75%, #fff);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 9px;
|
||||||
|
line-height: 1.5;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile-selected {
|
||||||
|
border-color: var(--text-muted);
|
||||||
|
background: #1f1f23;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Speaking wins over selected */
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-tile-selected.ts-speaking-now-tile-active {
|
||||||
|
border-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-status {
|
||||||
|
margin-top: 0.375rem;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--ide-faint);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Terminal: fixed-height bottom pane once the voice grid is above it */
|
||||||
|
.ts-app.ts-design-ide .ts-chat-panel:has(.ts-speaking-now) .ts-chat-messages {
|
||||||
|
flex: 0 0 11rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-tabs {
|
||||||
|
order: 1;
|
||||||
|
gap: 1.5rem;
|
||||||
|
padding: 0.5rem 1rem 0;
|
||||||
|
background: var(--ide-panel);
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-messages {
|
||||||
|
order: 2;
|
||||||
|
padding: 1rem;
|
||||||
|
background: var(--ide-panel);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.6;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-tab {
|
||||||
|
padding: 0 0 0.5rem;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 2px solid transparent;
|
||||||
|
border-radius: 0;
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 400;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--ide-faint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-tab:hover {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-tab-active {
|
||||||
|
border-bottom-color: var(--accent);
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-from {
|
||||||
|
color: #d4d4d8;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-line-self .ts-chat-from {
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-line-log {
|
||||||
|
color: #60a5fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-bubble {
|
||||||
|
background: none;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Prompt-style input */
|
||||||
|
.ts-app.ts-design-ide .ts-chat-input-row {
|
||||||
|
order: 3;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 0.3rem 1rem;
|
||||||
|
background: var(--bg);
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-input-row::before {
|
||||||
|
content: "➜ ~/channel";
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #60a5fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-input-row textarea,
|
||||||
|
.ts-app.ts-design-ide .ts-chat-input-row input {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-input-row button,
|
||||||
|
.ts-app.ts-design-ide .ts-dialog button:not(.ts-icon-button) {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
box-shadow: none;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Client log strip at the very bottom */
|
||||||
|
.ts-app.ts-design-ide > .ts-log {
|
||||||
|
background: var(--bg);
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
font-family: var(--ide-mono);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Narrow screens: stack instead of three columns */
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.ts-app.ts-design-ide > .ts-body {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
grid-template-rows: auto minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-tree-panel {
|
||||||
|
grid-column: 1;
|
||||||
|
grid-row: 1;
|
||||||
|
width: auto !important;
|
||||||
|
max-height: 40vh;
|
||||||
|
border-right: none;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-side-panel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-app.ts-design-ide .ts-chat-panel {
|
||||||
|
grid-column: 1;
|
||||||
|
grid-row: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.ts-app.ts-design-ide .ts-talk-lamp-talking::after,
|
||||||
|
.ts-app.ts-design-ide .ts-speaking-now-bars i {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user