Skip to content

Commit 195fea3

Browse files
authored
style: update AgentConsole component styles for improved UI consistency (#2578)
1 parent b77ff5c commit 195fea3

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

frontend/src/features/datasources/components/AgentConsole.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -165,49 +165,49 @@ export function AgentConsole({
165165
<>
166166
<div
167167
className={cn(
168-
'flex flex-col overflow-hidden shadow-2xl',
168+
'flex flex-col overflow-hidden shadow-2xl bg-card text-card-foreground',
169169
embedded
170-
? 'h-full w-full rounded-xl border border-white/10 bg-[#0b0d11]'
171-
: 'fixed inset-x-0 bottom-0 z-[60] border-t border-white/10 bg-[#0b0d11]',
170+
? 'h-full w-full rounded-xl border border-border'
171+
: 'fixed inset-x-0 bottom-0 z-[60] border-t border-border',
172172
)}
173173
style={embedded ? undefined : { height }}
174174
>
175175
{/* Drag handle to resize, like an IDE terminal — docked mode only. */}
176176
{!embedded && (
177177
<div onMouseDown={startResize} className="group absolute inset-x-0 top-0 z-10 h-2 cursor-row-resize">
178-
<div className="mx-auto mt-0.5 h-0.5 w-10 rounded-full bg-zinc-700 transition-colors group-hover:bg-primary" />
178+
<div className="mx-auto mt-0.5 h-0.5 w-10 rounded-full bg-muted-foreground/60 transition-colors group-hover:bg-primary" />
179179
</div>
180180
)}
181181

182-
<header className="flex items-center justify-between border-b border-white/10 px-4 py-2">
183-
<div className="flex min-w-0 items-center gap-2 text-sm font-medium text-zinc-200">
184-
<TerminalSquare size={16} className="shrink-0 text-emerald-400" />
182+
<header className="flex items-center justify-between border-b border-border px-4 py-2">
183+
<div className="flex min-w-0 items-center gap-2 text-sm font-medium text-foreground">
184+
<TerminalSquare size={16} className="shrink-0 text-emerald-500" />
185185
<span className="truncate">{hostname}</span>
186186
{windows ? (
187187
<select
188188
value={winShell}
189189
onChange={(e) => setWinShell(e.target.value as WinShell)}
190190
title={t('datasources.console.shellSelect')}
191-
className="shrink-0 rounded border border-white/10 bg-white/5 px-1.5 py-0.5 text-[11px] text-zinc-300 outline-none focus:border-primary"
191+
className="h-7 shrink-0 rounded-md border border-border bg-background px-1.5 text-[11px] text-foreground transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
192192
>
193193
<option value="cmd">cmd</option>
194194
<option value="powershell">powershell</option>
195195
</select>
196196
) : (
197-
<span className="shrink-0 rounded bg-white/10 px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-zinc-400">{shell}</span>
197+
<span className="shrink-0 rounded bg-muted px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-muted-foreground">{shell}</span>
198198
)}
199199
</div>
200200
<div className="flex shrink-0 items-center gap-1">
201201
<button
202202
onClick={() => setVarsOpen(true)}
203-
className="flex h-7 items-center gap-1.5 rounded px-2 text-xs text-zinc-400 hover:bg-white/10 hover:text-zinc-100"
203+
className="flex h-7 items-center gap-1.5 rounded px-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"
204204
>
205205
<KeyRound size={13} /> {t('datasources.console.vars.button')}
206206
</button>
207207
<button
208208
onClick={onClose}
209209
aria-label={t('datasources.console.close')}
210-
className="flex h-7 w-7 items-center justify-center rounded text-zinc-400 hover:bg-white/10 hover:text-zinc-100"
210+
className="flex h-7 w-7 items-center justify-center rounded text-muted-foreground hover:bg-accent hover:text-foreground"
211211
>
212212
<X size={16} />
213213
</button>
@@ -229,16 +229,16 @@ export function AgentConsole({
229229
<div
230230
ref={scrollRef}
231231
onClick={() => inputRef.current?.focus()}
232-
className="flex-1 cursor-text overflow-y-auto px-4 py-3 font-mono text-[12px] leading-relaxed text-zinc-300"
232+
className="flex-1 cursor-text overflow-y-auto px-4 py-3 font-mono text-[12px] leading-relaxed text-foreground/80"
233233
>
234-
{lines.length === 0 && <p className="mb-1 text-zinc-500">{t('datasources.console.hint')}</p>}
234+
{lines.length === 0 && <p className="mb-1 text-muted-foreground">{t('datasources.console.hint')}</p>}
235235
{lines.map((l, i) => (
236236
<pre
237237
key={i}
238238
className={cn(
239239
'whitespace-pre-wrap [overflow-wrap:anywhere]',
240-
l.kind === 'cmd' && 'mt-2 text-emerald-400 first:mt-0',
241-
l.kind === 'err' && 'text-red-400',
240+
l.kind === 'cmd' && 'mt-2 text-emerald-500 first:mt-0',
241+
l.kind === 'err' && 'text-destructive',
242242
)}
243243
>
244244
{l.text}

0 commit comments

Comments
 (0)