feat(terminal): add runtime renderer switch

This commit is contained in:
zhangheng
2026-06-24 15:31:58 +08:00
parent 7ee8d7bde1
commit 1334685fac
5 changed files with 171 additions and 7 deletions

View File

@@ -538,6 +538,38 @@
padding-bottom: 4px;
}
.terminal-page-toolbar {
@apply mb-3 flex shrink-0 items-center gap-1;
min-height: 32px;
}
.terminal-renderer-label {
color: var(--cowa-text-tertiary);
font-size: 12px;
line-height: 18px;
margin-right: 4px;
}
.terminal-renderer-option {
@apply h-8 rounded border bg-white px-3;
border-color: var(--cowa-border);
color: var(--cowa-text-secondary);
font-size: 12px;
line-height: 18px;
}
.terminal-renderer-option:hover {
border-color: var(--cowa-primary);
color: var(--cowa-primary);
}
.terminal-renderer-option.is-active {
border-color: var(--cowa-primary);
background: var(--cowa-primary-soft);
color: var(--cowa-primary);
font-weight: 600;
}
.terminal-shell-card {
@apply flex flex-1 flex-col gap-4 rounded border bg-white;
border-color: var(--cowa-border);