refactor(frontend): style consistency pass — shared shells, tokens, unified confirmations (#3376)

* refactor(frontend): batch 1 of style consistency cleanup

- theme.css: alias --td-font-family-mono to --app-font-family-mono so the
  29 monospace call sites follow the user's code-font setting
- replace 115 hardcoded rgba(7,192,95,x) brand tints with
  color-mix(in srgb, var(--td-brand-color) N%, transparent) so they track
  the dark-mode brand color
- strip 358 dead var(--td-*, fallback) fallbacks (tokens are guaranteed by
  theme.css); keep the 3 undefined tokens untouched
- menu.vue: drop 9 unreferenced style blocks; remove TencentSans font file
  and its global import
- AgentStreamDisplay: drop 6 unused keyframes; move the teleported wiki
  drawer styles into components/css/wiki-graph-drawer.less imported by
  both chat and WikiBrowser so styling no longer depends on load order
- creatChat: remove four !important fixed-width media queries; chat root no
  longer forces font-size: 20px
- list pages: create buttons use native theme="primary" (drops the purple
  gradient on AgentList); header-action-btn no longer needs !important
- add styleGuard.test.mjs ratchet test (brand rgba, legacy blue, token
  fallbacks, z-index !important, raster icons)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): unify destructive confirmations on useConfirmDelete

- useConfirmDelete now uses the danger dialog theme with a red confirm
  button; it is the single entry point for delete/leave confirmations
- AgentList, KnowledgeBaseList and OrganizationList drop their hand-rolled
  del-*-dialog (span-as-button, circle.png) in favour of useConfirmDelete;
  circle.png asset removed
- FAQ single-entry delete gains a confirmation (it deleted immediately);
  new knowledgeEditor.faq.confirmDelete key in all five locales
- VectorStore/StorageBackend delete dialogs and the generated-question
  popconfirm use the danger theme like the rest of the app
- style guard raster-icon baseline lowered to 10

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* feat(frontend): shared modal shell with Esc, overlay close and unsaved guard

Add composables/useModalShell and wire it into the four full-screen
settings-style modals (Settings, AgentEditorModal,
OrganizationSettingsModal, KnowledgeBaseEditorModal):

- Esc closes the modal everywhere (previously only Settings); it defers
  to any open TDesign dialog/drawer/popup and to the agent editor's own
  placeholder popups
- overlay click closes everywhere (Settings gains it)
- editors snapshot their form after load/save; closing with unsaved
  changes now asks "有未保存的更改 / 放弃更改 / 继续编辑" instead of
  silently discarding
- new common.unsavedChanges.* keys in all five locales

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(frontend): mark instant-effect sections in the knowledge base editor

Share, data source and activity sections apply changes immediately, but
the editor footer still showed Cancel / Save, so users either re-saved
or assumed Cancel would undo. Those sections now show an "applies
immediately" note with a single Close button; other sections keep the
Cancel / Save footer. New knowledgeEditor.footer.instantEffect key in all
five locales.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): consistent success wording and confirm labels (zh-CN)

- toasts use the "已X" form everywhere: 25 zh-CN values such as
  保存成功 / 删除成功 / 智能体创建成功 become 已保存 / 已删除 / 已创建智能体;
  common.copySuccess now reads the same as common.copied
- confirm buttons in dialogs and popconfirms use the bare verb
  (删除 / 重置 / 移除 / 应用 ...) instead of 确认X; dialog titles keep 确认删除
- GeneralSettings no longer pops a bare "成功" toast after theme / font /
  font-size changes, which are self-evident and applied instantly

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): extract SettingsModalShell for the four settings-style modals

Settings, AgentEditorModal, OrganizationSettingsModal and
KnowledgeBaseEditorModal each carried a copy of the same overlay / panel /
sidebar-nav / footer markup and ~20 CSS blocks, already drifting
(1000/1080/1100px widths, three shadows, different nav paddings).

components/SettingsModalShell.vue now owns that chrome: one 1080x780
panel, grouped nav with badges, optional loading overlay, footer with a
note slot and an actions slot. Consumers keep only their content and
wire `@close` to their useModalShell.requestClose. Settings keeps its
sub-menu nav through the `nav` slot; OrganizationSettingsModal keeps its
image icon through the `nav-icon` slot.

Net: -1025 lines across the four modals.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): shared resource-card mixins and EmptyState for list pages

KnowledgeBaseList, AgentList and OrganizationList each re-declared the
same 136px card (border, radius, shadow, hover, header/title/description/
bottom, more-button reveal, feature badges) with small drifts, plus a
copy of the empty-state block using the upload illustration for every
kind of emptiness.

- components/css/resource-card.less: .resource-card(),
  .resource-card-grid() and .resource-feature-badge() mixins; the pages
  keep only their own variants (type gradients, favourite star,
  decoration). More-buttons stay visible on touch devices.
- components/EmptyState.vue: icon / title / description / actions; the
  11 empty states now use a matching TDesign icon instead of upload.svg
- badge accent colours move from hard-coded old-blue / material orange /
  pink / slate rgba to color-mix over theme tokens (new
  --app-accent-purple in theme.css); style guard legacy-blue baseline
  drops from 40 to 18

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): shared settings-section mixins for header, row, info, control

25 settings/system/integration pages each re-declared .section-header,
.setting-row, .setting-info and .setting-control with five different
header margins (18-32px), three description sizes and assorted paddings.
components/css/settings-section.less now provides
.settings-section-header() / .setting-row() / .setting-info() /
.setting-control() / .setting-save-state(); pages keep only their
deliberate deviations (e.g. Ollama's column control, TenantInfo's fixed
label column). PlatformAPIKeys' style block switches to less so it can
use the mixins. Net -570 lines.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): provider-card mixins, dark-safe vendor badges, one spin keyframe

- components/css/provider-card.less: .provider-card() /
  -interactive() / -add() / -badge() / -badge-color() / -body() /
  -header() / -title() / -subtitle() / -more() shared by the model,
  vector store, web search, storage, parser and sandbox settings cards;
  MCP and skill cards reuse the 26px badge variant
- vendor badge colours are now `.provider-card-badge-color(#hex)`: the
  foreground is mixed 75/25 with the text colour so it stays readable in
  dark mode, the background is the same colour at 12% alpha
- 18 copies of a rotate-360 keyframe (steer-spin, chat-header-spin,
  sandbox-terminal-spin, ...) collapse into a global `wk-spin` in
  theme.css; 23 files updated, one source test adjusted

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): use TDesign password toggle for API keys; align chat toolbar buttons

- ModelEditorDialog: the API key field is a plain t-input type="password"
  and relies on TDesign's built-in show/hide eye instead of a hand-rolled
  suffix toggle, matching every other secret field in the app
- chat answer toolbar buttons are 28px with 6px radius, the same size as
  the user-message actions and the input control bar

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(frontend): app design tokens, tokenized literals, global TDesign overrides

theme.css gains an app-level token set derived from the de-facto scale
already used in the codebase, so values do not change:
  --app-radius-{xs,sm,md,lg,xl,pill} (4/6/8/10/12/999px)
  --app-text-{2xs..4xl}              (10..24px)
  --app-space-{1..10}                (4px grid)
  --app-motion-{instant,fast,base,slow} (120/150/200/300ms)
  --z-{sticky,dropdown,modal,drawer,popover,toast}

A codemod mapped 675 border-radius, 1904 font-size and 551 transition
duration literals in 191 files onto those tokens (value-preserving; five
source-text tests now accept either form).

assets/theme/tdesign-overrides.less holds global-intent TDesign
overrides; its `.wk-popover` skin replaces six per-file copies of the
blurred popover panel (TenantMembers x2, UserProfile,
OrganizationSettingsModal, systemAdminDialog.less,
share-to-space-panel.overlay.less) without !important.

styleGuard ratchets now also cover radius / font-size / motion literals,
`transition: all`, total `!important` and z-index !important.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(frontend): keep symmetric side insets for the chat column on narrow viewports

.chat had padding 0 0 20px 20px so the scrollbar could sit on the content
edge, but that also left the message list and input box flush against the
right edge whenever the viewport was narrower than 960px + sidebar. The
inset now lives on .msg_list and .input-container (--chat-content-inset,
20px each side, max-width 960px + insets); the scroll container still
spans the full column so the scrollbar stays on the edge. Wide layouts are
unchanged (960px content, centered).

* chore(frontend): strip trailing whitespace flagged by pre-push

* test(frontend): accept tokenized font-size and shell-rendered loading overlay

Two source-text assertions only ran in CI (Node 24 discovers .test.ts,
local Node 20 does not):
- ChatQuestionMinimap: the 13px preview font is now var(--app-text-md)
- modelUsageDetails: the editors' loading overlay is rendered by
  SettingsModalShell via :loading instead of an inline v-if
Both regexes now accept either form.

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
main
lyingbug 2026-09-17 23:11:08 +08:00 committed by GitHub
parent 8b1a64004d
commit b4aa5bbe8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
217 changed files with 8708 additions and 11003 deletions

View File

@ -45,7 +45,7 @@
padding: 4px !important;
margin-top: 4px !important;
min-width: 148px;
border-radius: 10px !important;
border-radius: var(--app-radius-lg) !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
@ -74,19 +74,19 @@
gap: 10px;
padding: 8px 12px;
cursor: pointer;
transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);
color: var(--td-text-color-primary);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 400;
line-height: 20px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
position: relative;
.menu-icon {
font-size: 16px;
font-size: var(--app-text-xl);
flex-shrink: 0;
color: var(--td-text-color-secondary);
transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);
}
&:hover {
@ -149,7 +149,7 @@
margin-top: 4px !important;
min-width: 148px;
width: auto;
border-radius: 10px !important;
border-radius: var(--app-radius-lg) !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
@ -186,9 +186,9 @@
padding: 8px 12px;
cursor: pointer;
color: var(--td-text-color-primary);
transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
border-radius: 6px;
font-size: 14px;
transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);
border-radius: var(--app-radius-sm);
font-size: var(--app-text-base);
line-height: 20px;
&:hover {
@ -201,9 +201,9 @@
}
.icon {
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-secondary);
transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);
}
&:hover .icon {
@ -249,7 +249,7 @@
align-items: center;
gap: 6px;
padding: 8px 12px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
border-bottom: 1px solid var(--td-component-stroke);
@ -269,7 +269,7 @@
.move-menu-empty {
padding: 12px 16px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
text-align: center;
line-height: 1.5;
@ -283,7 +283,7 @@
}
.move-target-count {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
@ -296,8 +296,8 @@
gap: 6px;
padding: 6px 8px;
background: var(--td-bg-color-container-hover);
border-radius: 6px;
font-size: 13px;
border-radius: var(--app-radius-sm);
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
margin-bottom: 8px;
}
@ -307,7 +307,7 @@
align-items: flex-start;
gap: 6px;
padding: 6px 8px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
margin-bottom: 4px;
@ -325,13 +325,13 @@
gap: 2px;
.move-mode-label {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
}
.move-mode-desc {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
line-height: 1.4;
}
@ -368,7 +368,7 @@
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
transition: scrollbar-color 0.2s ease;
transition: scrollbar-color var(--app-motion-base) ease;
&::-webkit-scrollbar {
width: 6px;
@ -381,29 +381,29 @@
&::-webkit-scrollbar-thumb {
background-color: transparent;
border: none;
border-radius: 6px;
transition: background-color 0.2s ease;
border-radius: var(--app-radius-sm);
transition: background-color var(--app-motion-base) ease;
}
&:hover {
scrollbar-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18)) transparent;
scrollbar-color: var(--td-scrollbar-color) transparent;
&::-webkit-scrollbar-thumb {
background-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18));
background-color: var(--td-scrollbar-color);
}
}
&::-webkit-scrollbar-thumb:hover {
background-color: var(--td-scrollbar-hover-color, rgba(0, 0, 0, 0.32));
background-color: var(--td-scrollbar-hover-color);
}
}
.t-dropdown__item {
padding: 8px 12px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
margin: 1px 0;
transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
font-size: 14px;
transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
cursor: pointer;
min-width: auto !important;
@ -429,10 +429,10 @@
color: var(--td-text-color-secondary);
display: flex;
align-items: center;
transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);
.t-icon {
font-size: 16px;
font-size: var(--app-text-xl);
}
}
@ -442,7 +442,7 @@
.t-dropdown__item-text {
color: inherit !important;
font-size: 14px !important;
font-size: var(--app-text-base) !important;
line-height: 20px !important;
white-space: nowrap !important;
overflow: hidden !important;
@ -496,7 +496,7 @@
padding: 4px !important;
margin-top: 4px !important;
min-width: 120px;
border-radius: 10px !important;
border-radius: var(--app-radius-lg) !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
@ -517,7 +517,7 @@
.t-popup__content {
padding: 4px !important;
margin-top: 4px !important;
border-radius: 10px !important;
border-radius: var(--app-radius-lg) !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
@ -545,12 +545,12 @@
align-items: center;
gap: 6px;
padding: 6px 8px;
border-radius: 6px;
font-size: 13px;
border-radius: var(--app-radius-sm);
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
cursor: pointer;
line-height: 1.2;
transition: background-color 0.15s ease;
transition: background-color var(--app-motion-fast) ease;
&:hover {
background: var(--td-bg-color-container-hover);
@ -563,7 +563,7 @@
}
.tag-popup-check {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-brand-color);
visibility: hidden;
flex-shrink: 0;
@ -619,7 +619,7 @@
padding: 14px 16px !important;
min-width: 300px;
max-width: min(392px, calc(100vw - 24px));
border-radius: 12px !important;
border-radius: var(--app-radius-xl) !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
@ -636,7 +636,7 @@
}
.anchored-form-popup-title {
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
color: var(--td-text-color-primary);
margin: 0 0 12px;
@ -646,7 +646,7 @@
.anchored-form-popup-body {
padding: 0 0 4px;
color: var(--td-text-color-primary);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.6;
word-break: break-word;
}
@ -663,7 +663,7 @@
padding: 14px 16px;
min-width: 300px;
max-width: min(392px, calc(100vw - 24px));
border-radius: 12px;
border-radius: var(--app-radius-xl);
background: var(--td-bg-color-container);
border: 0.5px solid var(--td-component-stroke);
box-shadow:

View File

@ -1,6 +0,0 @@
@font-face {
font-family: 'TencentSans';
src: url('fonts/TencentSans.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

View File

@ -0,0 +1,126 @@
import assert from 'node:assert/strict'
import { test } from 'node:test'
import { readdirSync, readFileSync, statSync } from 'node:fs'
import { dirname, join, relative } from 'node:path'
import { fileURLToPath } from 'node:url'
/**
* 样式守卫(棘轮):统计 views/ components/ assets/ 里绕过设计令牌或和 TDesign 打架的写法,
* 只允许计数下降。新增任何一处都会让测试失败;清理后请把 baseline 调低。
*
* 令牌定义在 assets/theme/theme.css(--app-radius-* / --app-text-* / --app-space-* /
* --app-motion-* / --z-*),TDesign 全局覆盖放在 assets/theme/tdesign-overrides.less。
* 用 .mjs 是因为 `npm test`(tsx --test)在 Node 20 下只自动发现 .mjs 测试文件。
*/
const SRC_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..', '..')
const SCAN_DIRS = ['views', 'components', 'assets']
const EXTS = new Set(['.vue', '.less', '.css'])
const EXEMPT_FILES = new Set(['assets/theme/theme.css'])
const RULES = [
{
name: 'brand-rgba',
why: '品牌色透明叠加请用 color-mix(in srgb, var(--td-brand-color) N%, transparent),否则深色模式不跟随',
pattern: /rgba\(\s*7\s*,\s*192\s*,\s*95\s*,/g,
baseline: 0,
},
{
name: 'legacy-blue-rgba',
why: '旧版 TDesign 蓝 rgba(0,82,217) 已不是品牌色',
pattern: /rgba\(\s*0\s*,\s*82\s*,\s*217\s*,/g,
baseline: 18,
},
{
name: 'td-token-fallback',
why: 'theme.css 保证 --td-* 令牌存在,fallback 永远不会生效且容易写错颜色',
pattern: /var\(\s*--td-(?!purple-5|cyan-6|font-family-code)[A-Za-z0-9-]+\s*,/g,
baseline: 0,
},
{
name: 'radius-literal',
why: '圆角请用 var(--app-radius-xs|sm|md|lg|xl|pill)(4/6/8/10/12/999px)',
pattern: /border(?:-[a-z]+)*-radius\s*:\s*\d+(?:\.\d+)?px/g,
baseline: 162,
},
{
name: 'font-size-literal',
why: '字号请用 var(--app-text-2xs … 4xl)(10~24px)',
pattern: /font-size\s*:\s*\d+(?:\.\d+)?px/g,
baseline: 28,
},
{
name: 'motion-literal',
why: '过渡时长请用 var(--app-motion-instant|fast|base|slow)(120/150/200/300ms)',
pattern: /transition[^;{]*?(?<![\d.])(?:0?\.\d+s|\d+ms)/g,
baseline: 65,
},
{
name: 'transition-all',
why: 'transition: all 会让无关属性也参与动画(含 layout 属性),请列出具体属性',
pattern: /transition\s*:\s*all\b/g,
baseline: 78,
},
{
name: 'important',
why: '!important 通常意味着在和 TDesign 或自己的样式打架;全局意图的覆盖放 tdesign-overrides.less',
pattern: /!important/g,
baseline: 510,
},
{
name: 'z-index-important',
why: 'z-index 不应靠 !important 取胜,改用 t-popup attach="body" 或 --z-* 层级令牌',
pattern: /z-index\s*:\s*-?\d+\s*!important/g,
baseline: 26,
},
{
name: 'raster-icon',
why: 'more.png / circle.png 位图图标请换成 t-icon',
pattern: /(more|circle)\.png/g,
baseline: 10,
},
]
function* walk(dir) {
for (const name of readdirSync(dir)) {
const full = join(dir, name)
if (name === 'node_modules') continue
if (statSync(full).isDirectory()) {
yield* walk(full)
} else if (EXTS.has(full.slice(full.lastIndexOf('.'))) && !/\.test\./.test(name)) {
yield full
}
}
}
function countMatches(rule) {
const byFile = new Map()
let total = 0
for (const dir of SCAN_DIRS) {
for (const file of walk(join(SRC_ROOT, dir))) {
const rel = relative(SRC_ROOT, file)
if (EXEMPT_FILES.has(rel)) continue
const text = readFileSync(file, 'utf8')
const n = (text.match(rule.pattern) ?? []).length
if (n > 0) {
byFile.set(rel, n)
total += n
}
}
}
return { total, byFile }
}
for (const rule of RULES) {
test(`style guard: ${rule.name} does not exceed baseline (${rule.baseline})`, () => {
const { total, byFile } = countMatches(rule)
const top = [...byFile.entries()]
.sort((a, b) => b[1] - a[1])
.slice(0, 8)
.map(([f, n]) => ` ${n}\t${f}`)
.join('\n')
assert.ok(
total <= rule.baseline,
`${rule.name}: ${total} occurrences > baseline ${rule.baseline}.\n${rule.why}\n${top}`,
)
})
}

View File

@ -0,0 +1,22 @@
// 对 TDesign 组件的全局意图覆盖。组件内只做局部微调,不要在 scoped 样式里用 !important 和 TDesign 打架。
// 悬浮面板皮肤:给 t-popup / t-select 等的 overlayClassName 加上 `wk-popover` 即可。
// 用两级选择器压过 TDesign 默认的 .t-popup__content,不需要 !important。
.wk-popover .t-popup__content {
padding: 0;
border-radius: var(--app-radius-xl);
background: var(--td-bg-color-container);
border: 0.5px solid var(--td-component-stroke);
box-shadow:
0 0 0 0.5px rgba(0, 0, 0, 0.03),
0 2px 4px rgba(0, 0, 0, 0.04),
0 8px 24px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
overflow: hidden;
}
:root[theme-mode="dark"] .wk-popover .t-popup__content {
background: rgba(36, 36, 36, 0.92);
border-color: rgba(255, 255, 255, 0.08);
}

File diff suppressed because one or more lines are too long

View File

@ -104,7 +104,7 @@ const letterStyle = computed(() => {
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--app-radius-md);
flex-shrink: 0;
box-shadow: var(--td-shadow-2);
overflow: hidden;
@ -116,7 +116,7 @@ const letterStyle = computed(() => {
box-shadow: none;
.agent-avatar-letter {
font-size: 11px;
font-size: var(--app-text-xs);
}
.agent-sparkles {
@ -127,10 +127,10 @@ const letterStyle = computed(() => {
&.agent-avatar-large {
width: 48px;
height: 48px;
border-radius: 12px;
border-radius: var(--app-radius-xl);
.agent-avatar-letter {
font-size: 20px;
font-size: var(--app-text-3xl);
}
.agent-sparkles {
@ -153,7 +153,7 @@ const letterStyle = computed(() => {
position: relative;
z-index: 1;
color: var(--td-text-color-anti);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
font-family: var(--app-font-family);
}

View File

@ -1109,7 +1109,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
gap: 6px;
flex: 1;
min-width: 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
padding: 0;
border: none;
@ -1148,7 +1148,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 600;
border: 1px solid var(--td-component-stroke);
color: var(--td-text-color-placeholder);
@ -1168,7 +1168,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
}
.im-step-check {
font-size: 12px;
font-size: var(--app-text-sm);
}
.im-step-body {
@ -1190,7 +1190,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.form-label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.4;
@ -1202,7 +1202,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.form-desc {
margin: 4px 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-placeholder);
@ -1267,7 +1267,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
label {
display: block;
margin: 0 0 4px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.4;
@ -1275,7 +1275,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.desc {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-placeholder);
@ -1296,7 +1296,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
border: 1px dashed var(--td-component-stroke);
@ -1304,12 +1304,12 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
flex-shrink: 0;
margin-top: 1px;
color: var(--td-brand-color);
font-size: 16px;
font-size: var(--app-text-xl);
}
p {
margin: 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1321,20 +1321,20 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
gap: 10px;
margin-top: 12px;
padding: 12px 14px;
border-radius: 8px;
background: var(--td-warning-color-1, #fff7e6);
border: 1px solid var(--td-warning-color-3, #ffd591);
border-radius: var(--app-radius-md);
background: var(--td-warning-color-1);
border: 1px solid var(--td-warning-color-3);
&__icon {
flex-shrink: 0;
margin-top: 1px;
color: var(--td-warning-color, #e37318);
font-size: 16px;
color: var(--td-warning-color);
font-size: var(--app-text-xl);
}
p {
margin: 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1374,14 +1374,14 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
&__title {
margin: 0 0 4px;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
color: var(--td-text-color-primary);
}
&__desc {
margin: 0 0 12px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1400,7 +1400,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.mono-text-input :deep(input) {
font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 12px;
font-size: var(--app-text-sm);
}
.snippet-tabs {
@ -1411,7 +1411,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
}
:deep(.t-tabs__nav-item) {
font-size: 13px;
font-size: var(--app-text-md);
height: 36px;
line-height: 36px;
}
@ -1423,7 +1423,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.snippet-scenario {
margin: 0 0 8px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-secondary);
}
@ -1431,22 +1431,22 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.snippet-note {
margin: 0 0 10px;
padding: 8px 10px;
border-radius: 6px;
font-size: 12px;
border-radius: var(--app-radius-sm);
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-secondary);
background: color-mix(in srgb, var(--td-warning-color, #ed7b2f) 8%, var(--td-bg-color-container));
border: 1px solid color-mix(in srgb, var(--td-warning-color, #ed7b2f) 20%, transparent);
background: color-mix(in srgb, var(--td-warning-color) 8%, var(--td-bg-color-container));
border: 1px solid color-mix(in srgb, var(--td-warning-color) 20%, transparent);
}
.snippet-note--ok {
background: color-mix(in srgb, var(--td-success-color, #2ba471) 8%, var(--td-bg-color-container));
border-color: color-mix(in srgb, var(--td-success-color, #2ba471) 20%, transparent);
background: color-mix(in srgb, var(--td-success-color) 8%, var(--td-bg-color-container));
border-color: color-mix(in srgb, var(--td-success-color) 20%, transparent);
}
.code-panel {
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
overflow: hidden;
@ -1461,7 +1461,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
}
&__label {
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
color: var(--td-text-color-secondary);
}
@ -1477,7 +1477,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
margin: 0;
padding: 10px 12px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
white-space: pre-wrap;
word-break: break-all;
@ -1489,7 +1489,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.widget-preview {
border: 1px dashed var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
padding: 6px;
background: var(--td-bg-color-secondarycontainer);
width: 100%;
@ -1498,7 +1498,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
.preview-surface {
position: relative;
height: 88px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
overflow: hidden;
@ -1514,7 +1514,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {
border: none;
border-radius: 50%;
color: #fff;
font-size: 16px;
font-size: var(--app-text-xl);
line-height: 1;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
cursor: default;

View File

@ -627,7 +627,7 @@ watch(activeDetail, (detail) => {
position: fixed !important;
background: var(--td-bg-color-container);
border: .5px solid var(--td-component-border);
border-radius: 8px;
border-radius: var(--app-radius-md);
box-shadow: var(--td-shadow-2);
display: flex;
flex-direction: column;
@ -657,7 +657,7 @@ watch(activeDetail, (detail) => {
min-height: 36px;
padding: 8px 12px;
border-bottom: .5px solid var(--td-component-stroke);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 1;
color: var(--td-text-color-secondary);
@ -671,7 +671,7 @@ watch(activeDetail, (detail) => {
padding: 0 6px;
border-radius: 5px;
color: var(--td-brand-color);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 1;
cursor: pointer;
@ -701,7 +701,7 @@ watch(activeDetail, (detail) => {
}
.agent-group-title {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
padding: 8px 12px 4px;
font-weight: 600;
@ -716,7 +716,7 @@ watch(activeDetail, (detail) => {
margin: 0 4px;
padding: 6px 8px;
cursor: pointer;
transition: background 0.12s;
transition: background var(--app-motion-instant);
border-radius: 5px;
&:hover,
@ -744,7 +744,7 @@ watch(activeDetail, (detail) => {
}
.agent-option-name {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
flex: 1;
min-width: 0;
@ -755,7 +755,7 @@ watch(activeDetail, (detail) => {
}
.shared-tag {
font-size: 10px;
font-size: var(--app-text-2xs);
color: var(--td-text-color-placeholder);
flex-shrink: 0;
line-height: 22px;
@ -772,7 +772,7 @@ watch(activeDetail, (detail) => {
.not-ready-icon {
flex-shrink: 0;
color: var(--td-warning-color, #ed7b2f);
color: var(--td-warning-color);
cursor: default;
display: block;
line-height: 1;
@ -817,15 +817,15 @@ watch(activeDetail, (detail) => {
height: 22px;
border-radius: 5px;
flex-shrink: 0;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1;
background: var(--td-bg-color-secondarycontainer, #f5f5f5);
background: var(--td-bg-color-secondarycontainer);
overflow: hidden;
&.detail-icon {
width: 28px;
height: 28px;
font-size: 18px;
font-size: var(--app-text-2xl);
}
}
@ -850,13 +850,13 @@ watch(activeDetail, (detail) => {
.agent-detail-panel-inner {
padding: 12px;
border: 1px solid var(--td-component-stroke);
border-radius: var(--td-radius-large, 9px);
border-radius: var(--td-radius-large);
background: var(--td-bg-color-container);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.agent-detail-content {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
line-height: 1.5;
}
@ -885,7 +885,7 @@ watch(activeDetail, (detail) => {
.detail-name {
font-weight: 600;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 18px;
word-break: break-word;
min-width: 0;
@ -902,28 +902,28 @@ watch(activeDetail, (detail) => {
height: 22px;
padding: 0;
border: none;
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: transparent;
color: var(--td-text-color-placeholder);
cursor: pointer;
&:hover {
background: var(--td-bg-color-component-hover, #e8e8e8);
background: var(--td-bg-color-component-hover);
color: var(--td-text-color-secondary);
}
&--warn {
color: var(--td-warning-color, #ed7b2f);
color: var(--td-warning-color);
&:hover {
background: rgba(237, 123, 47, 0.1);
color: var(--td-warning-color, #ed7b2f);
color: var(--td-warning-color);
}
}
}
.detail-current {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
}
@ -937,12 +937,12 @@ watch(activeDetail, (detail) => {
.detail-not-ready-icon {
flex-shrink: 0;
color: var(--td-warning-color, #ed7b2f);
color: var(--td-warning-color);
opacity: 0.85;
}
.detail-not-ready-label {
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 16px;
color: var(--td-text-color-secondary);
}
@ -952,8 +952,8 @@ watch(activeDetail, (detail) => {
align-items: center;
padding: 0 5px;
border: 1px solid rgba(237, 123, 47, 0.28);
border-radius: 4px;
font-size: 10px;
border-radius: var(--app-radius-xs);
font-size: var(--app-text-2xs);
line-height: 16px;
color: var(--td-text-color-secondary);
background: var(--td-bg-color-container);
@ -963,14 +963,14 @@ watch(activeDetail, (detail) => {
display: block;
width: 100%;
margin-top: 2px;
font-size: 10px;
font-size: var(--app-text-2xs);
line-height: 1.4;
color: var(--td-text-color-placeholder);
}
.detail-desc {
margin: 0 0 8px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
line-height: 1.5;
display: -webkit-box;
@ -1001,7 +1001,7 @@ watch(activeDetail, (detail) => {
}
.detail-tag-group-title {
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 600;
line-height: 16px;
color: var(--td-text-color-placeholder);
@ -1013,8 +1013,8 @@ watch(activeDetail, (detail) => {
align-items: center;
padding: 2px 8px;
border: 1px solid var(--td-component-stroke);
border-radius: var(--td-radius-medium, 6px);
font-size: 11px;
border-radius: var(--td-radius-medium);
font-size: var(--app-text-xs);
line-height: 18px;
color: var(--td-text-color-secondary);
background: var(--td-bg-color-secondarycontainer);
@ -1036,7 +1036,7 @@ watch(activeDetail, (detail) => {
.detail-capability-state {
flex-shrink: 0;
font-size: 10px;
font-size: var(--app-text-2xs);
line-height: 14px;
color: var(--td-text-color-placeholder);
}
@ -1047,16 +1047,16 @@ watch(activeDetail, (detail) => {
background: rgba(0, 168, 112, 0.06);
.detail-capability-icon-wrap {
color: var(--td-success-color, #00a870);
color: var(--td-success-color);
background: rgba(0, 168, 112, 0.12);
}
.detail-capability-icon {
color: var(--td-success-color, #00a870);
color: var(--td-success-color);
}
.detail-capability-state {
color: var(--td-success-color, #00a870);
color: var(--td-success-color);
}
}
@ -1065,13 +1065,13 @@ watch(activeDetail, (detail) => {
background: rgba(237, 123, 47, 0.06);
.detail-capability-icon-wrap {
color: var(--td-warning-color, #ed7b2f);
color: var(--td-warning-color);
background: rgba(237, 123, 47, 0.12);
}
.detail-capability-icon,
.detail-capability-state {
color: var(--td-warning-color, #ed7b2f);
color: var(--td-warning-color);
}
}
@ -1081,7 +1081,7 @@ watch(activeDetail, (detail) => {
.detail-capability-icon-wrap {
color: var(--td-text-color-placeholder);
background: var(--td-bg-color-component, rgba(0, 0, 0, 0.04));
background: var(--td-bg-color-component);
}
.detail-capability-icon {
@ -1112,7 +1112,7 @@ watch(activeDetail, (detail) => {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
}

View File

@ -4,7 +4,7 @@
<div class="share-panel-header-row">
<div class="share-panel-titlewrap">
<h2 class="share-panel-title">{{ $t('organization.share.title') }}</h2>
<t-popup placement="bottom-start" trigger="hover" overlay-class-name="share-hint-popup-overlay"
<t-popup placement="bottom-start" trigger="hover" overlay-class-name="wk-popover share-hint-popup-overlay"
:overlay-inner-style="shareHintPopupInnerStyle">
<button type="button" class="share-hint-trigger-btn" :aria-label="$t('agent.shareScope.title')"
:title="$t('agent.shareScope.title')">

View File

@ -323,9 +323,9 @@ defineExpose({
align-items: center;
gap: 10px;
padding: 8px 32px 8px 10px;
border-radius: 8px;
border: 1px solid var(--td-border-level-1-color, #e7e7e7);
background: var(--td-bg-color-container, #fff);
border-radius: var(--app-radius-md);
border: 1px solid var(--td-border-level-1-color);
background: var(--td-bg-color-container);
max-width: 240px;
min-width: 140px;
cursor: default;
@ -346,17 +346,17 @@ defineExpose({
}
.attachment-preview-name {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary, #333);
color: var(--td-text-color-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.attachment-preview-meta {
font-size: 11px;
color: var(--td-text-color-secondary, #999);
font-size: var(--app-text-xs);
color: var(--td-text-color-secondary);
white-space: nowrap;
}
@ -365,11 +365,11 @@ defineExpose({
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: var(--td-text-color-secondary, #999);
font-size: var(--app-text-xs);
color: var(--td-text-color-secondary);
&.is-ready { color: var(--td-success-color, #2ba471); }
&.is-failed { color: var(--td-error-color, #d54941); }
&.is-ready { color: var(--td-success-color); }
&.is-failed { color: var(--td-error-color); }
}
.attachment-status-spinner {
@ -380,7 +380,7 @@ defineExpose({
border: 1px solid currentColor;
border-right-color: transparent;
border-radius: 50%;
animation: attachment-spin .8s linear infinite;
animation: wk-spin .8s linear infinite;
}
.attachment-preview-remove {
@ -395,7 +395,7 @@ defineExpose({
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-size: var(--app-text-md);
cursor: pointer;
line-height: 1;
@ -405,7 +405,4 @@ defineExpose({
}
}
@keyframes attachment-spin {
to { transform: rotate(360deg); }
}
</style>

View File

@ -169,9 +169,9 @@ onUnmounted(() => {
display: flex;
align-items: center;
justify-content: center;
background: rgba(7, 192, 95, 0.1);
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
font-size: 16px;
font-size: var(--app-text-xl);
}
.chat-attachment-drawer-header-text {
@ -180,7 +180,7 @@ onUnmounted(() => {
}
.chat-attachment-drawer-header-title {
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -222,7 +222,7 @@ onUnmounted(() => {
border-radius: 1px;
background: var(--td-component-border);
opacity: 0.55;
transition: opacity 0.15s ease, background 0.15s ease;
transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
}
.chat-attachment-drawer-resize-handle:hover .chat-attachment-drawer-resize-line,

View File

@ -360,7 +360,7 @@ function handleMenuClick(data: { value: string }): void {
max-width: min(280px, calc(100% - 24px));
min-width: 0;
padding: 2px 2px 2px 8px;
border-radius: 8px;
border-radius: var(--app-radius-md);
box-sizing: border-box;
background: color-mix(in srgb, var(--td-bg-color-container) 88%, transparent);
backdrop-filter: blur(8px);
@ -390,7 +390,7 @@ function handleMenuClick(data: { value: string }): void {
backdrop-filter: none;
-webkit-backdrop-filter: none;
box-sizing: border-box;
transition: border-color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
transition: border-color var(--app-motion-slow) cubic-bezier(0.22, 0.61, 0.36, 1);
&.is-editing {
max-width: none;
@ -415,7 +415,7 @@ function handleMenuClick(data: { value: string }): void {
border-radius: 5px;
color: var(--td-text-color-primary);
background: var(--td-bg-color-container);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 26px;
outline: none;
box-sizing: border-box;
@ -434,7 +434,7 @@ function handleMenuClick(data: { value: string }): void {
margin: 0;
padding: 0;
color: var(--td-text-color-secondary);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
line-height: 20px;
cursor: default;
@ -465,7 +465,7 @@ function handleMenuClick(data: { value: string }): void {
color: var(--td-text-color-placeholder);
background: transparent;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease;
transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
&:hover:not(:disabled) {
color: var(--td-text-color-primary);
@ -487,18 +487,9 @@ function handleMenuClick(data: { value: string }): void {
}
.chat-header__menu-loading {
animation: chat-header-spin 0.8s linear infinite;
animation: wk-spin 0.8s linear infinite;
}
@keyframes chat-header-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>
<style lang="less">
@ -510,7 +501,7 @@ function handleMenuClick(data: { value: string }): void {
margin-top: 2px !important;
min-width: 168px !important;
width: max-content !important;
border-radius: 8px !important;
border-radius: var(--app-radius-md) !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
@ -543,14 +534,14 @@ function handleMenuClick(data: { value: string }): void {
.chat-header-confirm__title {
margin: 0;
color: var(--td-text-color-primary);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
line-height: 20px;
}
.chat-header-confirm__body {
color: var(--td-text-color-secondary);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.5;
word-break: break-word;
}
@ -567,13 +558,13 @@ function handleMenuClick(data: { value: string }): void {
height: 30px;
padding: 0 12px;
border: 0.5px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
color: var(--td-text-color-primary);
background: var(--td-bg-color-container);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 28px;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;
&:hover:not(:disabled) {
background: var(--td-bg-color-container-hover);
@ -606,7 +597,7 @@ function handleMenuClick(data: { value: string }): void {
border-radius: 5px;
color: var(--td-text-color-primary);
background: transparent;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 20px;
text-align: left;
white-space: nowrap;
@ -632,7 +623,7 @@ function handleMenuClick(data: { value: string }): void {
.chat-header-menu__icon {
flex: 0 0 auto;
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-secondary);
}

View File

@ -370,7 +370,7 @@ watch(visible, (open) => {
.chat-references-panel__title {
margin: 0;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-secondary);
line-height: 1.4;
@ -387,16 +387,16 @@ watch(visible, (open) => {
color: var(--td-text-color-secondary);
width: 36px;
height: 36px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: background 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
:deep(.t-icon) {
font-size: 20px;
font-size: var(--app-text-3xl);
}
&:hover {
@ -415,7 +415,7 @@ watch(visible, (open) => {
padding: 24px 8px;
text-align: center;
color: var(--td-text-color-placeholder);
font-size: 13px;
font-size: var(--app-text-md);
}
.chat-references-panel__section {
@ -431,7 +431,7 @@ watch(visible, (open) => {
.chat-references-panel__section-title {
margin: 0 0 8px;
padding: 0 4px;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
color: var(--td-text-color-placeholder);
text-transform: uppercase;
@ -439,8 +439,8 @@ watch(visible, (open) => {
}
.reference-item {
border-radius: 12px;
transition: background-color 0.15s ease;
border-radius: var(--app-radius-xl);
transition: background-color var(--app-motion-fast) ease;
&:hover:not(.is-highlighted) {
background: color-mix(in srgb, var(--td-text-color-primary) 4%, transparent);
@ -473,7 +473,7 @@ watch(visible, (open) => {
flex-shrink: 0;
width: 18px;
margin-top: 3px;
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-primary);
}
@ -494,14 +494,14 @@ watch(visible, (open) => {
flex-shrink: 0;
width: 16px;
height: 16px;
border-radius: 999px;
border-radius: var(--app-radius-pill);
object-fit: cover;
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-placeholder);
}
.reference-item__domain {
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.35;
color: var(--td-text-color-placeholder);
overflow: hidden;
@ -520,7 +520,7 @@ watch(visible, (open) => {
flex: 1;
min-width: 0;
margin: 0;
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -537,7 +537,7 @@ watch(visible, (open) => {
color: var(--td-text-color-placeholder);
line-height: 1;
opacity: 0;
transition: opacity 0.15s ease, color 0.15s ease;
transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
}
.reference-item:hover .reference-item__open,
@ -551,7 +551,7 @@ watch(visible, (open) => {
.reference-item__snippet {
margin: 4px 0 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
color: var(--td-text-color-secondary);
display: -webkit-box;
@ -562,7 +562,7 @@ watch(visible, (open) => {
.reference-item__content {
margin: 4px 0 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.55;
color: var(--td-text-color-secondary);
white-space: pre-wrap;
@ -594,7 +594,7 @@ watch(visible, (open) => {
}
.references-backdrop-leave-active {
transition: opacity 0.3s ease;
transition: opacity var(--app-motion-slow) ease;
}
.references-backdrop-enter-from,

View File

@ -105,7 +105,7 @@ const copyAll = async () => {
.chat-request-info-popup {
.t-popup__content {
padding: 0;
border-radius: 8px;
border-radius: var(--app-radius-md);
box-shadow: var(--td-shadow-2);
}
}
@ -116,7 +116,7 @@ const copyAll = async () => {
min-width: 260px;
max-width: 360px;
padding: 10px 12px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
}
@ -131,7 +131,7 @@ const copyAll = async () => {
}
.chat-request-card-title {
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
}
@ -156,8 +156,8 @@ const copyAll = async () => {
.chat-request-value {
flex: 1;
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 11px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-xs);
color: var(--td-text-color-primary);
word-break: break-all;
}

View File

@ -133,7 +133,7 @@ const handleSubmit = async () => {
.create-tenant-tip {
margin: 0 0 16px;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.55;
color: var(--td-text-color-secondary);
}

View File

@ -116,8 +116,8 @@ watch(() => props.visible, async (open) => {
flex-shrink: 0;
margin: 0;
padding: 10px 12px;
border-radius: 8px;
font-size: 13px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-md);
line-height: 1.55;
color: var(--td-text-color-secondary);
background: var(--td-bg-color-secondarycontainer);
@ -130,7 +130,7 @@ watch(() => props.visible, async (open) => {
display: flex;
flex-direction: column;
border: 1px solid var(--td-component-stroke);
border-radius: 12px;
border-radius: var(--app-radius-xl);
overflow: hidden;
background: var(--td-bg-color-container);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
@ -167,8 +167,8 @@ watch(() => props.visible, async (open) => {
flex: 1;
margin-left: 8px;
padding: 4px 10px;
border-radius: 6px;
font-size: 12px;
border-radius: var(--app-radius-sm);
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
background: var(--td-bg-color-container);
overflow: hidden;
@ -199,7 +199,7 @@ watch(() => props.visible, async (open) => {
flex: 1;
min-height: 480px;
border: 1px solid var(--td-component-stroke);
border-radius: 12px;
border-radius: var(--app-radius-xl);
overflow: hidden;
background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
@ -209,7 +209,7 @@ watch(() => props.visible, async (open) => {
padding: 28px 32px;
&__title {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
color: var(--td-text-color-placeholder);
margin-bottom: 16px;
@ -238,11 +238,11 @@ watch(() => props.visible, async (open) => {
border: none;
border-radius: 50%;
color: #fff;
font-size: 20px;
font-size: var(--app-text-3xl);
cursor: pointer;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
z-index: 3;
transition: transform 0.15s ease;
transition: transform var(--app-motion-fast) ease;
&:hover {
transform: scale(1.04);
@ -255,7 +255,7 @@ watch(() => props.visible, async (open) => {
max-width: calc(100% - 32px);
height: 500px;
max-height: calc(100% - 88px);
border-radius: 12px;
border-radius: var(--app-radius-xl);
overflow: hidden;
background: #fff;
box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);

View File

@ -267,14 +267,14 @@ onUnmounted(() => {
width: 100%;
max-width: 800px;
margin: 0 auto;
background: var(--td-bg-color-container, #fff);
border-radius: 12px;
border: 0.5px solid var(--td-component-border, #e7e7e7);
background: var(--td-bg-color-container);
border-radius: var(--app-radius-xl);
border: 0.5px solid var(--td-component-border);
box-shadow: 0 6px 6px rgba(0, 0, 0, 0.04), 0 12px 12px -1px rgba(0, 0, 0, 0.08);
transition: border-color 0.15s ease;
transition: border-color var(--app-motion-fast) ease;
&:focus-within {
border-color: var(--embed-primary, var(--td-brand-color, #07c05f));
border-color: var(--embed-primary, var(--td-brand-color));
}
&__files {
@ -299,7 +299,7 @@ onUnmounted(() => {
box-shadow: none;
background: transparent;
padding: 14px 16px 52px;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.5;
resize: none;
}
@ -348,9 +348,9 @@ onUnmounted(() => {
gap: 6px;
max-width: 220px;
padding: 6px 10px;
border-radius: 8px;
background: var(--td-bg-color-secondarycontainer, #f3f3f3);
font-size: 12px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
font-size: var(--app-text-sm);
&__name {
overflow: hidden;
@ -371,9 +371,9 @@ onUnmounted(() => {
position: relative;
width: 56px;
height: 56px;
border-radius: 8px;
border-radius: var(--app-radius-md);
overflow: hidden;
border: 1px solid var(--td-component-border, #e7e7e7);
border: 1px solid var(--td-component-border);
img {
width: 100%;
@ -406,11 +406,11 @@ onUnmounted(() => {
height: 28px;
padding: 0;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
color: var(--td-text-color-secondary);
background: transparent;
transition: color 0.15s ease, background 0.15s ease;
transition: color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
&:hover {
background: var(--td-bg-color-secondarycontainer);
@ -418,7 +418,7 @@ onUnmounted(() => {
}
&.active {
color: var(--embed-primary, var(--td-brand-color, #07c05f));
color: var(--embed-primary, var(--td-brand-color));
background: color-mix(in srgb, var(--embed-primary, #07c05f) 12%, transparent);
}
}
@ -431,10 +431,10 @@ onUnmounted(() => {
height: 28px;
padding: 0;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
background: var(--embed-primary, var(--td-brand-color, #07c05f));
transition: background 0.15s ease, opacity 0.15s ease;
background: var(--embed-primary, var(--td-brand-color));
transition: background var(--app-motion-fast) ease, opacity var(--app-motion-fast) ease;
&:hover:not(.disabled) {
filter: brightness(0.94);
@ -459,7 +459,7 @@ onUnmounted(() => {
height: 28px;
padding: 0;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
color: var(--td-text-color-secondary);
background: var(--td-bg-color-secondarycontainer);

View File

@ -0,0 +1,97 @@
<template>
<div class="wk-empty-state" :class="{ 'wk-empty-state--compact': compact }">
<div v-if="$slots.icon || icon || image" class="wk-empty-state__icon">
<slot name="icon">
<img v-if="image" :src="image" alt="" aria-hidden="true" />
<t-icon v-else :name="icon" />
</slot>
</div>
<div class="wk-empty-state__title">{{ title }}</div>
<div v-if="description || $slots.description" class="wk-empty-state__desc">
<slot name="description">{{ description }}</slot>
</div>
<div v-if="$slots.default" class="wk-empty-state__actions">
<slot />
</div>
</div>
</template>
<script setup lang="ts">
/**
* 统一的空状态:图标 / 标题 / 描述 / 操作区。
* 列表页用 `icon`(TDesign 图标名),需要插图时用 `image`;`compact` 用于抽屉、卡片等小容器。
*/
withDefaults(
defineProps<{
title: string
description?: string
icon?: string
image?: string
compact?: boolean
}>(),
{ description: '', icon: '', image: '', compact: false },
)
</script>
<style lang="less" scoped>
.wk-empty-state {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 56px 20px;
&--compact {
padding: 32px 16px;
}
}
.wk-empty-state__icon {
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
margin-bottom: 16px;
border-radius: 50%;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-placeholder);
font-size: 30px;
img {
width: 40px;
height: 40px;
}
.wk-empty-state--compact & {
width: 48px;
height: 48px;
margin-bottom: 12px;
font-size: 22px;
}
}
.wk-empty-state__title {
color: var(--td-text-color-primary);
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 22px;
}
.wk-empty-state__desc {
margin-top: 6px;
max-width: 360px;
color: var(--td-text-color-secondary);
font-size: var(--app-text-md);
line-height: 20px;
}
.wk-empty-state__actions {
display: flex;
align-items: center;
gap: 12px;
margin-top: 20px;
}
</style>

View File

@ -174,10 +174,10 @@ watch(showTooltip, (newVal) => {
background: var(--td-bg-color-container);
color: var(--td-text-color-primary);
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);
font-family: var(--app-font-family);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 400;
line-height: 1.6;
word-break: break-word;
@ -279,7 +279,7 @@ watch(showTooltip, (newVal) => {
.tooltip-content {
color: var(--td-text-color-primary);
font-family: var(--app-font-family);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 400;
line-height: 1.6;
white-space: pre-wrap;
@ -288,7 +288,7 @@ watch(showTooltip, (newVal) => {
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.15s ease;
transition: opacity var(--app-motion-fast) ease;
}
.fade-enter-from {

View File

@ -672,7 +672,7 @@ onUnmounted(() => {
.cmdk__input-icon {
color: var(--td-text-color-placeholder);
font-size: 16px;
font-size: var(--app-text-xl);
}
.cmdk__scope-chip {
@ -684,8 +684,8 @@ onUnmounted(() => {
padding: 0 2px 0 8px;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
border-radius: 4px;
font-size: 12px;
border-radius: var(--app-radius-xs);
font-size: var(--app-text-sm);
font-weight: 500;
flex-shrink: 0;
@ -731,7 +731,7 @@ onUnmounted(() => {
border: none;
outline: none;
background: transparent;
font-size: 15px;
font-size: var(--app-text-lg);
color: var(--td-text-color-primary);
font-family: inherit;
@ -752,7 +752,7 @@ onUnmounted(() => {
width: 28px;
height: 28px;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
@ -779,7 +779,7 @@ onUnmounted(() => {
gap: 12px;
padding: 40px 20px 20px;
color: var(--td-text-color-placeholder);
font-size: 13px;
font-size: var(--app-text-md);
p {
margin: 0;
@ -796,7 +796,7 @@ onUnmounted(() => {
gap: 16px;
padding: 8px 14px;
border-top: 1px solid var(--td-component-stroke);
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
flex-wrap: wrap;
}
@ -810,7 +810,7 @@ onUnmounted(() => {
display: inline-block;
padding: 1px 5px;
min-width: 16px;
font-size: 10px;
font-size: var(--app-text-2xs);
font-family: inherit;
line-height: 14px;
text-align: center;
@ -822,7 +822,7 @@ onUnmounted(() => {
}
.cmdk-chunk-kb {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
padding: 1px 6px;
background: var(--td-bg-color-secondarycontainer);
@ -839,7 +839,7 @@ onUnmounted(() => {
display: inline-block;
margin-right: 6px;
padding: 0 5px;
font-size: 10px;
font-size: var(--app-text-2xs);
font-weight: 600;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);

View File

@ -50,7 +50,7 @@ defineEmits<{
align-items: center;
gap: 6px;
padding: 4px 12px 2px;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
letter-spacing: 0.3px;
color: var(--td-text-color-placeholder);
@ -70,15 +70,15 @@ defineEmits<{
border: none;
background: transparent;
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
border-radius: var(--app-radius-xs);
font-size: var(--app-text-xs);
color: var(--td-brand-color);
cursor: pointer;
text-transform: none;
letter-spacing: normal;
&:hover {
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
}
}

View File

@ -73,7 +73,7 @@ const onHover = (e: MouseEvent) => {
gap: 10px;
width: 100%;
padding: 8px 12px;
border-radius: 8px;
border-radius: var(--app-radius-md);
border: none;
background: transparent;
cursor: pointer;
@ -107,7 +107,7 @@ const onHover = (e: MouseEvent) => {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
line-height: 20px;
white-space: nowrap;
@ -116,7 +116,7 @@ const onHover = (e: MouseEvent) => {
}
.cmdk-item__badge {
font-size: 10px;
font-size: var(--app-text-2xs);
padding: 1px 5px;
border-radius: 3px;
font-weight: 500;
@ -124,7 +124,7 @@ const onHover = (e: MouseEvent) => {
line-height: 1.4;
&--vector {
background: rgba(7, 192, 95, 0.1);
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
}
@ -141,14 +141,14 @@ const onHover = (e: MouseEvent) => {
.cmdk-item__score {
margin-left: auto;
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
flex-shrink: 0;
}
.cmdk-item__subtitle {
margin-top: 2px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 18px;
color: var(--td-text-color-secondary);
display: -webkit-box;
@ -170,7 +170,7 @@ const onHover = (e: MouseEvent) => {
display: inline-flex;
align-items: center;
gap: 2px;
font-size: 10px;
font-size: var(--app-text-2xs);
color: var(--td-text-color-placeholder);
opacity: 0.55;
transition: opacity 0.1s;

View File

@ -50,7 +50,7 @@ const openDialog = () => {
height: 32px;
padding: 0;
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
/* 用 container 背景而非透明,铃铛悬在内容区上方时和不同颜色的页面背景都能看清。 */
background: var(--td-bg-color-container);
color: var(--td-text-color-secondary);

View File

@ -1135,7 +1135,7 @@ onUnmounted(() => {
gap: 6px;
flex: 1;
min-width: 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
@ -1164,7 +1164,7 @@ onUnmounted(() => {
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 600;
border: 1px solid var(--td-component-stroke);
color: var(--td-text-color-placeholder);
@ -1184,7 +1184,7 @@ onUnmounted(() => {
}
.im-step-check {
font-size: 12px;
font-size: var(--app-text-sm);
}
.im-step-body {
@ -1211,7 +1211,7 @@ onUnmounted(() => {
.mono-text-input :deep(input) {
font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 12px;
font-size: var(--app-text-sm);
}
.drawer-form {
@ -1227,7 +1227,7 @@ onUnmounted(() => {
.form-label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.4;
@ -1264,7 +1264,7 @@ onUnmounted(() => {
.form-desc {
margin: 4px 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-placeholder);
@ -1279,7 +1279,7 @@ onUnmounted(() => {
flex-wrap: wrap;
gap: 4px;
padding: 3px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
}
@ -1288,12 +1288,12 @@ onUnmounted(() => {
background: transparent;
color: var(--td-text-color-secondary);
font: inherit;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.3;
padding: 5px 10px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease;
white-space: nowrap;
&:hover:not(:disabled) {
@ -1342,7 +1342,7 @@ onUnmounted(() => {
label {
display: block;
margin: 0 0 4px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.4;
@ -1350,7 +1350,7 @@ onUnmounted(() => {
.desc {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-placeholder);
}
@ -1366,7 +1366,7 @@ onUnmounted(() => {
align-items: center;
flex-wrap: wrap;
gap: 6px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.4;
color: var(--td-text-color-placeholder);
@ -1387,12 +1387,12 @@ onUnmounted(() => {
padding: 12px 16px;
background: rgba(7, 193, 96, 0.06);
border: 1px solid rgba(7, 193, 96, 0.2);
border-radius: 8px;
font-size: 14px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
.bound-icon {
font-size: 18px;
font-size: var(--app-text-2xl);
color: #07c160;
}
}
@ -1421,7 +1421,7 @@ onUnmounted(() => {
width: 200px;
height: 200px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
overflow: hidden;
// QR code images are always black-on-white; force white background
// so the code remains scannable in dark mode.
@ -1448,15 +1448,15 @@ onUnmounted(() => {
background: rgba(0, 0, 0, 0.6);
color: #fff;
cursor: pointer;
font-size: 12px;
font-size: var(--app-text-sm);
.refresh-icon {
font-size: 24px;
font-size: var(--app-text-4xl);
}
}
.qr-hint {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
text-align: center;
}
@ -1464,7 +1464,7 @@ onUnmounted(() => {
<style lang="less">
.im-channel-drawer .setting-drawer__header-icon:has(.drawer-platform-icon) {
background: var(--td-bg-color-container, #fff);
background: var(--td-bg-color-container);
box-shadow: inset 0 0 0 1px var(--td-component-stroke);
}

View File

@ -29,7 +29,7 @@ test('mention button matches icon controls and the stream artifact count badge',
assert.match(count, /right: -2px/)
assert.match(count, /min-width: 14px/)
assert.match(count, /height: 14px/)
assert.match(count, /font-size: 10px/)
assert.match(count, /font-size: (?:10px|var\(--app-text-2xs\))/)
assert.match(count, /border-radius: 7px/)
assert.match(count, /font-variant-numeric: tabular-nums/)
assert.doesNotMatch(count, /border: 2px solid/)

View File

@ -2971,8 +2971,8 @@ const getImgSrc = (url: string) => {
box-sizing: border-box;
max-height: 140px;
overflow-y: auto;
background: var(--td-bg-color-secondarycontainer, #f5f5f5);
border: 1px solid var(--td-component-stroke, #dcdcdc);
background: var(--td-bg-color-secondarycontainer);
border: 1px solid var(--td-component-stroke);
border-bottom: 0;
border-radius: 10px 10px 0 0;
}
@ -2985,13 +2985,13 @@ const getImgSrc = (url: string) => {
}
.steer-queue-item + .steer-queue-item {
border-top: 1px solid var(--td-component-stroke, #dcdcdc);
border-top: 1px solid var(--td-component-stroke);
}
.steer-queue-text {
flex: 1;
min-width: 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
color: var(--td-text-color-primary);
white-space: nowrap;
@ -3008,7 +3008,7 @@ const getImgSrc = (url: string) => {
.steer-queue-icon {
flex-shrink: 0;
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-secondary);
}
@ -3020,17 +3020,16 @@ const getImgSrc = (url: string) => {
height: 26px;
padding: 0;
border: 0;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
font-size: 16px;
font-size: var(--app-text-xl);
cursor: pointer;
&:hover:not(:disabled) { background: var(--td-bg-color-secondarycontainer); color: var(--td-text-color-primary); }
&:disabled { opacity: 0.4; cursor: default; }
}
.steer-sending { animation: steer-spin 1s linear infinite; }
@keyframes steer-spin { to { transform: rotate(360deg); } }
.steer-sending { animation: wk-spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .steer-sending { animation: none; } }
/* 富文本输入框容器 */
@ -3038,13 +3037,13 @@ const getImgSrc = (url: string) => {
position: relative;
width: 100%;
max-width: 960px;
background: var(--td-bg-color-container, #FFF);
border-radius: 12px;
border: 1px solid var(--td-component-stroke, #dcdcdc);
background: var(--td-bg-color-container);
border-radius: var(--app-radius-xl);
border: 1px solid var(--td-component-stroke);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
&:focus-within {
border-color: var(--td-brand-color, #07C05F);
border-color: var(--td-brand-color);
}
}
@ -3055,8 +3054,8 @@ const getImgSrc = (url: string) => {
align-items: center;
gap: 5px;
padding: 6px 12px 6px;
border-bottom: 1px solid var(--td-component-stroke, #dcdcdc);
background: var(--td-bg-color-container, #fff);
border-bottom: 1px solid var(--td-component-stroke);
background: var(--td-bg-color-container);
border-radius: 11px 11px 0 0;
/* 与 .rich-input-container 内缘上边圆角一致(12px - 1px 边框) */
}
@ -3069,12 +3068,12 @@ const getImgSrc = (url: string) => {
gap: 5px;
min-height: 26px;
padding: 3px 7px 3px 6px;
border-radius: var(--td-radius-medium, 6px);
border-radius: var(--td-radius-medium);
box-sizing: border-box;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
cursor: default;
transition: background 0.15s, border-color 0.15s;
transition: background var(--app-motion-fast), border-color var(--app-motion-fast);
line-height: 18px;
&:hover {
@ -3094,7 +3093,7 @@ const getImgSrc = (url: string) => {
}
.mention-chip__icon {
font-size: 12px;
font-size: var(--app-text-sm);
display: flex;
align-items: center;
justify-content: center;
@ -3108,7 +3107,7 @@ const getImgSrc = (url: string) => {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--td-bg-color-secondarycontainer, #f0f2f5);
background: var(--td-bg-color-secondarycontainer);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
display: flex;
align-items: center;
@ -3138,12 +3137,12 @@ const getImgSrc = (url: string) => {
height: 14px;
margin-left: 1px;
border-radius: 50%;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1;
font-weight: 400;
cursor: pointer;
opacity: 0.5;
transition: opacity 0.15s, background 0.15s, color 0.15s;
transition: opacity var(--app-motion-fast), background var(--app-motion-fast), color var(--app-motion-fast);
color: currentColor;
flex-shrink: 0;
}
@ -3155,7 +3154,7 @@ const getImgSrc = (url: string) => {
.mention-chip__remove:hover {
opacity: 1;
background: var(--td-bg-color-component);
color: var(--td-text-color-primary, #1f2937);
color: var(--td-text-color-primary);
}
/* 标签表面保持中性,仅用图标颜色表达资源类型。 */
@ -3164,7 +3163,7 @@ const getImgSrc = (url: string) => {
}
.mention-chip--kb .mention-chip__icon-wrap {
color: var(--td-brand-color, #07c05f);
color: var(--td-brand-color);
}
.mention-chip--faq {
@ -3180,7 +3179,7 @@ const getImgSrc = (url: string) => {
}
.mention-chip--file .mention-chip__icon-wrap {
color: var(--td-text-color-secondary, #6b7280);
color: var(--td-text-color-secondary);
}
.mention-chip--tag,
@ -3212,8 +3211,8 @@ const getImgSrc = (url: string) => {
max-height: 152px !important;
min-height: 72px !important;
resize: none;
color: var(--td-text-color-primary, #000000e6);
font-size: 16px;
color: var(--td-text-color-primary);
font-size: var(--app-text-xl);
font-weight: 400;
line-height: 24px;
font-family: var(--app-font-family);
@ -3230,9 +3229,9 @@ const getImgSrc = (url: string) => {
}
&::placeholder {
color: var(--td-text-color-placeholder, #00000066);
color: var(--td-text-color-placeholder);
font-family: var(--app-font-family);
font-size: 16px;
font-size: var(--app-text-xl);
font-weight: 400;
line-height: 24px;
}
@ -3240,7 +3239,7 @@ const getImgSrc = (url: string) => {
/* 当没有选中标签时,textarea 样式 */
.rich-input-container:not(:has(.selected-tags-inline)) :deep(.t-textarea__inner) {
border-radius: 12px;
border-radius: var(--app-radius-xl);
padding-top: 16px;
}
@ -3279,15 +3278,15 @@ const getImgSrc = (url: string) => {
justify-content: center;
gap: 4px;
padding: 6px 10px;
border-radius: 6px;
color: var(--td-text-color-secondary, #666);
border-radius: var(--app-radius-sm);
color: var(--td-text-color-secondary);
cursor: pointer;
transition: background 0.12s, color 0.12s;
transition: background var(--app-motion-instant), color var(--app-motion-instant);
user-select: none;
flex-shrink: 0;
&:hover {
background: var(--td-bg-color-secondarycontainer-hover, #e6e6e6);
background: var(--td-bg-color-secondarycontainer-hover);
}
&.disabled {
@ -3295,7 +3294,7 @@ const getImgSrc = (url: string) => {
cursor: not-allowed;
&:hover {
background: var(--td-bg-color-secondarycontainer, #f5f5f5);
background: var(--td-bg-color-secondarycontainer);
}
}
}
@ -3306,7 +3305,7 @@ const getImgSrc = (url: string) => {
min-width: auto;
font-weight: 500;
position: relative;
border: .5px solid var(--td-component-border, #e7e7e7);
border: .5px solid var(--td-component-border);
}
.agent-icon {
@ -3323,12 +3322,12 @@ const getImgSrc = (url: string) => {
height: 20px;
border-radius: 5px;
flex-shrink: 0;
color: var(--td-text-color-secondary, #666);
color: var(--td-text-color-secondary);
}
.agent-mode-text {
font-size: 13px;
color: var(--td-text-color-secondary, #666);
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
font-weight: 500;
white-space: nowrap;
margin: 0 4px;
@ -3347,7 +3346,7 @@ const getImgSrc = (url: string) => {
position: relative;
&:hover:not(.disabled):not(.active) {
color: var(--td-text-color-primary, #333);
color: var(--td-text-color-primary);
}
&.active {
@ -3365,7 +3364,7 @@ const getImgSrc = (url: string) => {
opacity: 0.85;
&:hover {
background: var(--td-bg-color-secondarycontainer, #f5f5f5);
background: var(--td-bg-color-secondarycontainer);
}
&.active:hover {
@ -3389,7 +3388,7 @@ const getImgSrc = (url: string) => {
border-radius: 7px;
background: var(--td-brand-color);
color: var(--td-text-color-anti);
font-size: 10px;
font-size: var(--app-text-2xs);
font-weight: 600;
line-height: 1;
font-variant-numeric: tabular-nums;
@ -3397,8 +3396,8 @@ const getImgSrc = (url: string) => {
}
.kb-btn-text {
font-size: 13px;
color: var(--td-text-color-secondary, #666);
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
font-weight: 500;
white-space: nowrap;
}
@ -3417,11 +3416,11 @@ const getImgSrc = (url: string) => {
align-items: center;
justify-content: center;
position: relative;
color: var(--td-text-color-secondary, #666);
color: var(--td-text-color-secondary);
&:hover {
background: var(--td-bg-color-secondarycontainer-hover, #f0f0f0);
color: var(--td-text-color-primary, #333);
background: var(--td-bg-color-secondarycontainer-hover);
color: var(--td-text-color-primary);
}
&.active {
@ -3435,7 +3434,7 @@ const getImgSrc = (url: string) => {
right: -2px;
background: #07C05F;
color: #fff;
font-size: 10px;
font-size: var(--app-text-2xs);
width: 14px;
height: 14px;
border-radius: 50%;
@ -3456,11 +3455,11 @@ const getImgSrc = (url: string) => {
align-items: center;
justify-content: center;
position: relative;
color: var(--td-text-color-secondary, #666);
color: var(--td-text-color-secondary);
&:hover {
background: var(--td-bg-color-secondarycontainer-hover, #f0f0f0);
color: var(--td-text-color-primary, #333);
background: var(--td-bg-color-secondarycontainer-hover);
color: var(--td-text-color-primary);
}
&.active {
@ -3474,7 +3473,7 @@ const getImgSrc = (url: string) => {
right: -2px;
background: #07C05F;
color: #fff;
font-size: 10px;
font-size: var(--app-text-2xs);
width: 14px;
height: 14px;
border-radius: 50%;
@ -3496,9 +3495,9 @@ const getImgSrc = (url: string) => {
position: relative;
width: 60px;
height: 60px;
border-radius: 8px;
border-radius: var(--app-radius-md);
overflow: hidden;
border: 1px solid var(--td-border-level-1-color, #e7e7e7);
border: 1px solid var(--td-border-level-1-color);
.image-preview-thumb {
width: 100%;
@ -3518,7 +3517,7 @@ const getImgSrc = (url: string) => {
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-size: var(--app-text-sm);
cursor: pointer;
line-height: 1;
@ -3535,7 +3534,7 @@ const getImgSrc = (url: string) => {
background: transparent;
&:hover:not(.disabled):not(.active) {
color: var(--td-text-color-primary, #333);
color: var(--td-text-color-primary);
}
&.active {
@ -3590,14 +3589,14 @@ const getImgSrc = (url: string) => {
&:not(.active) {
.websearch-icon {
color: var(--td-text-color-secondary, #666);
color: var(--td-text-color-secondary);
}
&:hover {
background: var(--td-bg-color-secondarycontainer-hover, #f0f0f0);
background: var(--td-bg-color-secondarycontainer-hover);
.websearch-icon {
color: var(--td-text-color-primary, #333);
color: var(--td-text-color-primary);
}
}
}
@ -3607,7 +3606,7 @@ const getImgSrc = (url: string) => {
opacity: 0.85;
&:hover {
background: var(--td-bg-color-secondarycontainer, #f5f5f5);
background: var(--td-bg-color-secondarycontainer);
}
&.active:hover {
@ -3619,7 +3618,7 @@ const getImgSrc = (url: string) => {
:global(.input-field-tooltip) {
.t-popup__content {
box-shadow: var(--td-shadow-2);
border: .5px solid var(--td-component-border, #e7e7e7);
border: .5px solid var(--td-component-border);
}
}
@ -3628,8 +3627,8 @@ const getImgSrc = (url: string) => {
flex-direction: column;
gap: 6px;
max-width: 220px;
font-size: 12px;
color: var(--td-text-color-primary, #333);
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
}
:global(.tooltip-with-link a) {
@ -3651,7 +3650,7 @@ const getImgSrc = (url: string) => {
width: 10px;
height: 10px;
margin-left: 2px;
transition: transform 0.12s;
transition: transform var(--app-motion-instant);
&.rotate {
transform: rotate(180deg);
@ -3669,7 +3668,7 @@ const getImgSrc = (url: string) => {
height: 28px;
padding: 0;
box-sizing: border-box;
font-size: 16px;
font-size: var(--app-text-xl);
line-height: 1;
&:focus-visible {
@ -3718,13 +3717,13 @@ const getImgSrc = (url: string) => {
padding: 2px 8px;
min-width: 100px;
height: 22px;
border-radius: 6px;
border: .5px solid var(--td-component-border, #e7e7e7);
transition: background 0.12s, border-color 0.12s;
border-radius: var(--app-radius-sm);
border: .5px solid var(--td-component-border);
transition: background var(--app-motion-instant), border-color var(--app-motion-instant);
cursor: pointer;
&:hover {
background: var(--td-bg-color-secondarycontainer-hover, #e6e6e6);
background: var(--td-bg-color-secondarycontainer-hover);
}
&.disabled {
@ -3732,16 +3731,16 @@ const getImgSrc = (url: string) => {
cursor: not-allowed;
&:hover {
background: var(--td-bg-color-secondarycontainer, #f5f5f5);
background: var(--td-bg-color-secondarycontainer);
}
}
}
.model-selector-name {
flex: 1;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
color: var(--td-text-color-secondary, #666);
color: var(--td-text-color-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -3749,9 +3748,9 @@ const getImgSrc = (url: string) => {
.model-selector-ctx {
flex-shrink: 0;
font-size: 11px;
font-size: var(--app-text-xs);
font-variant-numeric: tabular-nums;
color: var(--td-text-color-placeholder, #999);
color: var(--td-text-color-placeholder);
font-weight: 400;
&.is-default {
@ -3762,9 +3761,9 @@ const getImgSrc = (url: string) => {
.model-dropdown-arrow {
width: 10px;
height: 10px;
color: var(--td-text-color-placeholder, #999);
color: var(--td-text-color-placeholder);
flex-shrink: 0;
transition: transform 0.12s;
transition: transform var(--app-motion-instant);
&.rotate {
transform: rotate(180deg);
@ -3772,7 +3771,7 @@ const getImgSrc = (url: string) => {
}
.model-selector-trigger.disabled .model-dropdown-arrow {
color: var(--td-text-color-placeholder, #999);
color: var(--td-text-color-placeholder);
}
.model-selector-overlay {
@ -3788,7 +3787,7 @@ const getImgSrc = (url: string) => {
z-index: 10000;
background: var(--td-bg-color-container);
border: .5px solid var(--td-component-border);
border-radius: 10px;
border-radius: var(--app-radius-lg);
box-shadow: var(--td-shadow-2);
overflow: hidden;
display: flex;
@ -3819,7 +3818,7 @@ const getImgSrc = (url: string) => {
padding: 8px 10px;
border-bottom: .5px solid var(--td-component-stroke);
background: var(--td-bg-color-container);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
color: var(--td-text-color-secondary);
}
@ -3839,17 +3838,17 @@ const getImgSrc = (url: string) => {
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
border: .5px solid transparent;
background: transparent;
color: var(--td-brand-color);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
cursor: pointer;
transition: all 0.12s;
transition: all var(--app-motion-instant);
.add-icon {
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1;
font-weight: 400;
}
@ -3867,8 +3866,8 @@ const getImgSrc = (url: string) => {
gap: 8px;
padding: 6px 8px;
cursor: pointer;
transition: background 0.12s;
border-radius: 6px;
transition: background var(--app-motion-instant);
border-radius: var(--app-radius-sm);
margin-bottom: 4px;
&:last-child {
@ -3919,7 +3918,7 @@ const getImgSrc = (url: string) => {
}
.model-option-name {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
white-space: nowrap;
overflow: hidden;
@ -3928,19 +3927,19 @@ const getImgSrc = (url: string) => {
}
.model-option-raw-name {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
flex-shrink: 0;
}
.model-option-ctx {
flex-shrink: 0;
font-size: 11px;
font-size: var(--app-text-xs);
font-variant-numeric: tabular-nums;
color: var(--td-text-color-secondary);
background: var(--td-bg-color-secondarycontainer);
padding: 0 6px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
line-height: 18px;
&.is-default {
@ -3960,10 +3959,10 @@ const getImgSrc = (url: string) => {
.agent-mode-selector-dropdown {
position: fixed !important;
z-index: 9999;
background: var(--td-bg-color-container, #fff);
border-radius: 10px;
box-shadow: var(--td-shadow-2, 0 6px 28px rgba(15, 23, 42, 0.08));
border: 1px solid var(--td-component-border, #e7e9eb);
background: var(--td-bg-color-container);
border-radius: var(--app-radius-lg);
box-shadow: var(--td-shadow-2);
border: 1px solid var(--td-component-border);
overflow: hidden;
padding: 6px 8px;
min-width: 200px;
@ -3980,13 +3979,13 @@ const getImgSrc = (url: string) => {
justify-content: space-between;
padding: 8px 10px;
cursor: pointer;
transition: background 0.12s;
border-radius: 6px;
transition: background var(--app-motion-instant);
border-radius: var(--app-radius-sm);
position: relative;
margin: 4px 6px;
&:hover:not(.disabled) {
background: var(--td-bg-color-container-hover, #f6f8f7);
background: var(--td-bg-color-container-hover);
}
&.disabled {
@ -3999,7 +3998,7 @@ const getImgSrc = (url: string) => {
}
&.selected {
background: var(--td-brand-color-light, #eefdf5);
background: var(--td-brand-color-light);
.agent-mode-option-name {
color: var(--td-success-color);
@ -4017,16 +4016,16 @@ const getImgSrc = (url: string) => {
}
.agent-mode-option-name {
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
color: var(--td-text-color-primary, #222);
color: var(--td-text-color-primary);
line-height: 1.4;
transition: color 0.12s;
transition: color var(--app-motion-instant);
}
.agent-mode-option-desc {
font-size: 11px;
color: var(--td-text-color-secondary, #8b9196);
font-size: var(--app-text-xs);
color: var(--td-text-color-secondary);
line-height: 1.3;
}
@ -4045,26 +4044,26 @@ const getImgSrc = (url: string) => {
.warning-icon {
color: var(--td-warning-color);
font-size: 14px;
font-size: var(--app-text-base);
}
}
.agent-mode-footer {
padding: 6px 10px;
border-top: 1px solid var(--td-component-border, #f2f4f5);
border-top: 1px solid var(--td-component-border);
margin-top: 2px;
background: var(--td-bg-color-secondarycontainer, #fafcfc);
background: var(--td-bg-color-secondarycontainer);
}
.agent-mode-link {
color: var(--td-success-color);
text-decoration: none;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 3px;
transition: all 0.12s;
transition: all var(--app-motion-instant);
&:hover {
color: var(--td-brand-color-active);

View File

@ -59,11 +59,11 @@ function onSelect(data: { value?: string }) {
max-width: 220px;
padding: 2px 6px 2px 4px;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-placeholder);
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;
&:hover {
background: var(--td-bg-color-container-hover);
@ -90,7 +90,7 @@ function onSelect(data: { value?: string }) {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
color: inherit;
}

View File

@ -389,7 +389,7 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st
justify-content: center;
color: var(--td-text-color-placeholder);
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;
padding: 0;
&:hover:not(:disabled) {
@ -415,11 +415,11 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st
height: 7px;
background: var(--td-error-color);
border-radius: 50%;
border: 1.5px solid var(--td-bg-color-container, #fff);
border: 1.5px solid var(--td-bg-color-container);
}
:deep(.t-icon) {
font-size: 16px;
font-size: var(--app-text-xl);
}
}
@ -433,14 +433,14 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st
display: flex;
flex-direction: column;
padding: 12px 16px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
overflow: hidden;
}
.kb-info-card-header {
flex: 0 0 auto;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
margin-bottom: 8px;
padding-bottom: 8px;
@ -477,7 +477,7 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st
}
.kb-info-card-body .setting-drawer__section-title {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-primary);
margin: 0 0 4px;
@ -531,8 +531,8 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st
}
.kb-info-card-value-mono {
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 11px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-xs);
color: var(--td-text-color-secondary);
}
@ -541,15 +541,15 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st
align-items: center;
padding: 1px 6px;
border-radius: 3px;
background: var(--td-bg-color-component, #f5f7fa);
background: var(--td-bg-color-component);
color: var(--td-text-color-secondary);
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 11px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-xs);
line-height: 1.4;
}
.kb-info-card-hint {
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
}
</style>

View File

@ -110,13 +110,13 @@ const handleSelect = (id: string): void => {
gap: 8px;
padding: 6px 10px;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.4;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
text-align: left;
&:hover {
@ -124,7 +124,7 @@ const handleSelect = (id: string): void => {
}
&.active {
background: var(--td-brand-color-light, rgba(0, 82, 217, 0.08));
background: var(--td-brand-color-light);
color: var(--td-brand-color);
font-weight: 500;
}
@ -154,7 +154,7 @@ const handleSelect = (id: string): void => {
.kb-switcher-empty {
padding: 16px;
text-align: center;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
</style>

View File

@ -369,7 +369,7 @@ watch(() => props.visible, async (v) => {
position: fixed !important;
background: var(--td-bg-color-container);
border: .5px solid var(--td-component-border);
border-radius: 10px;
border-radius: var(--app-radius-lg);
box-shadow: var(--td-shadow-2);
overflow: hidden;
animation: fadeIn 0.15s ease-out;
@ -389,12 +389,12 @@ watch(() => props.visible, async (v) => {
.kb-search-input {
width: 100%;
padding: 6px 10px;
font-size: 12px;
font-size: var(--app-text-sm);
border: .5px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-secondarycontainer);
outline: none;
transition: border 0.12s;
transition: border var(--app-motion-instant);
}
.kb-search-input:focus {
border-color: var(--td-success-color);
@ -416,9 +416,9 @@ watch(() => props.visible, async (v) => {
display: flex;
align-items: center;
padding: 6px 8px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
transition: background 0.12s;
transition: background var(--app-motion-instant);
margin-bottom: 4px;
}
.kb-item:last-child { margin-bottom: 0; }
@ -466,10 +466,10 @@ watch(() => props.visible, async (v) => {
}
}
.kb-name-wrap { display:flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; }
.kb-name { font-size: 12px; color: var(--td-text-color-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.kb-docs { font-size: 11px; color: var(--td-text-color-placeholder); flex-shrink: 0; }
.kb-name { font-size: var(--app-text-sm); color: var(--td-text-color-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.kb-docs { font-size: var(--app-text-xs); color: var(--td-text-color-placeholder); flex-shrink: 0; }
.kb-empty { padding: 20px 8px; text-align: center; color: var(--td-text-color-placeholder); font-size: 12px; }
.kb-empty { padding: 20px 8px; text-align: center; color: var(--td-text-color-placeholder); font-size: var(--app-text-sm); }
.kb-actions {
display: flex;
@ -481,13 +481,13 @@ watch(() => props.visible, async (v) => {
.kb-btn {
flex: 1;
padding: 6px 10px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
border: 1px solid var(--td-component-stroke);
background: var(--td-bg-color-container);
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
cursor: pointer;
transition: all 0.12s;
transition: all var(--app-motion-instant);
}
.kb-btn:hover {
border-color: var(--td-success-color);

View File

@ -339,7 +339,7 @@ onBeforeUnmount(() => {
border-radius: 1px;
background: var(--td-bg-color-component-disabled);
opacity: 0.45;
transition: opacity 0.2s ease, background 0.2s ease;
transition: opacity var(--app-motion-base) ease, background var(--app-motion-base) ease;
}
/* ========== Icon strip (collapsed) ========== */
@ -364,7 +364,7 @@ onBeforeUnmount(() => {
.icon-item-labeled {
width: 46px;
padding: 5px 0 2px;
border-radius: 8px;
border-radius: var(--app-radius-md);
display: flex;
flex-direction: column;
align-items: center;
@ -372,7 +372,7 @@ onBeforeUnmount(() => {
gap: 2px;
cursor: pointer;
color: var(--td-text-color-secondary);
transition: all 0.15s ease;
transition: all var(--app-motion-fast) ease;
flex-shrink: 0;
&:hover {
@ -396,12 +396,12 @@ onBeforeUnmount(() => {
:deep(.space-avatar) {
width: 20px;
height: 20px;
font-size: 10px;
font-size: var(--app-text-2xs);
}
}
.icon-label {
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 1.25;
color: var(--td-text-color-secondary);
max-width: 52px;
@ -409,7 +409,7 @@ onBeforeUnmount(() => {
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
transition: color 0.15s ease;
transition: color var(--app-motion-fast) ease;
}
@ -448,9 +448,9 @@ onBeforeUnmount(() => {
border-radius: 7px;
color: var(--td-text-color-primary);
cursor: pointer;
transition: all 0.15s ease;
transition: all var(--app-motion-fast) ease;
font-family: var(--app-font-family);
font-size: 14px;
font-size: var(--app-text-base);
-webkit-font-smoothing: antialiased;
.item-left {
@ -464,8 +464,8 @@ onBeforeUnmount(() => {
.item-icon {
flex-shrink: 0;
color: var(--td-text-color-secondary);
font-size: 14px;
transition: color 0.15s ease;
font-size: var(--app-text-base);
transition: color var(--app-motion-fast) ease;
}
.item-avatar {
@ -478,22 +478,22 @@ onBeforeUnmount(() => {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 430;
line-height: 1.4;
letter-spacing: 0.01em;
}
.item-count {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
font-weight: 500;
padding: 2px 7px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
margin-left: 6px;
flex-shrink: 0;
transition: all 0.15s ease;
transition: all var(--app-motion-fast) ease;
}
&:hover {
@ -541,7 +541,7 @@ onBeforeUnmount(() => {
border-top: 1px solid var(--td-component-stroke);
.section-title {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
font-weight: 600;
line-height: 1.4;

View File

@ -585,9 +585,9 @@ const scrollToItem = (index: number) => {
.mention-menu {
position: fixed;
z-index: 10000;
background: var(--td-bg-color-container, #fff);
border: 1px solid var(--td-component-stroke, #e7e9eb);
border-radius: var(--td-radius-extraLarge, 12px);
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: var(--td-radius-extraLarge);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
width: 220px;
max-height: 388px;
@ -610,11 +610,11 @@ const scrollToItem = (index: number) => {
margin: 1px 6px;
padding: 0 8px;
border: 0;
border-radius: var(--td-radius-medium, 6px);
border-radius: var(--td-radius-medium);
background: transparent;
color: var(--td-text-color-primary, #333);
color: var(--td-text-color-primary);
font-family: var(--app-font-family);
font-size: var(--td-font-size-body-medium, 14px);
font-size: var(--td-font-size-body-medium);
font-weight: 400;
line-height: 20px;
cursor: pointer;
@ -622,13 +622,13 @@ const scrollToItem = (index: number) => {
display: flex;
align-items: center;
gap: 8px;
transition: background 0.15s ease;
transition: background var(--app-motion-fast) ease;
}
.mention-group-entry:hover,
.mention-group-entry.active,
.mention-back-row:hover {
background: var(--td-bg-color-secondarycontainer, #f3f3f3);
background: var(--td-bg-color-secondarycontainer);
}
.mention-group-entry__icon {
@ -638,8 +638,8 @@ const scrollToItem = (index: number) => {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--td-text-color-secondary, #666);
font-size: 16px;
color: var(--td-text-color-secondary);
font-size: var(--app-text-xl);
}
.mention-group-entry__label,
@ -658,10 +658,10 @@ const scrollToItem = (index: number) => {
flex-shrink: 0;
min-width: 18px;
padding: 0 6px;
border-radius: 999px;
background: var(--td-bg-color-secondarycontainer, #f3f3f3);
color: var(--td-text-color-placeholder, #999);
font-size: var(--td-font-size-mark-small, 12px);
border-radius: var(--app-radius-pill);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-placeholder);
font-size: var(--td-font-size-mark-small);
line-height: 18px;
text-align: center;
font-variant-numeric: tabular-nums;
@ -669,20 +669,20 @@ const scrollToItem = (index: number) => {
.mention-group-entry__arrow {
flex-shrink: 0;
color: var(--td-text-color-placeholder, #999);
font-size: 16px;
color: var(--td-text-color-placeholder);
font-size: var(--app-text-xl);
}
.mention-back-row {
min-height: 30px;
margin-bottom: 4px;
color: var(--td-text-color-secondary, #666);
border-bottom: 1px solid var(--td-component-stroke, #f0f0f0);
color: var(--td-text-color-secondary);
border-bottom: 1px solid var(--td-component-stroke);
border-radius: 0;
}
.mention-back-row span {
font-size: var(--td-font-size-body-medium, 14px);
font-size: var(--td-font-size-body-medium);
}
.mention-group {
@ -690,15 +690,15 @@ const scrollToItem = (index: number) => {
}
.mention-group:not(:last-child) {
border-bottom: 1px solid var(--td-component-stroke, #f0f0f0);
border-bottom: 1px solid var(--td-component-stroke);
}
.mention-group-header {
padding: 7px 14px 5px;
font-size: var(--td-font-size-mark-small, 12px);
font-size: var(--td-font-size-mark-small);
font-weight: 600;
line-height: 18px;
color: var(--td-text-color-placeholder, #999);
color: var(--td-text-color-placeholder);
}
.mention-item {
@ -710,20 +710,20 @@ const scrollToItem = (index: number) => {
margin: 1px 6px;
box-sizing: border-box;
cursor: pointer;
border-radius: var(--td-radius-medium, 6px);
color: var(--td-text-color-primary, #333);
font-size: var(--td-font-size-body-medium, 14px);
border-radius: var(--td-radius-medium);
color: var(--td-text-color-primary);
font-size: var(--td-font-size-body-medium);
font-family: var(--app-font-family);
transition: background 0.15s ease;
transition: background var(--app-motion-fast) ease;
}
.mention-item:hover {
background: var(--td-bg-color-secondarycontainer, #f3f3f3);
background: var(--td-bg-color-secondarycontainer);
}
.mention-item.active {
background: var(--td-bg-color-secondarycontainer, #f3f3f3);
color: var(--td-text-color-primary, #333);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
}
.icon-wrap {
@ -740,7 +740,7 @@ const scrollToItem = (index: number) => {
width: 18px;
height: 18px;
flex-shrink: 0;
font-size: 16px;
font-size: var(--app-text-xl);
}
/* 右下角组织角标:柔和小圆 + 绿色/灰色 icon,不刺眼 */
@ -751,7 +751,7 @@ const scrollToItem = (index: number) => {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--td-bg-color-secondarycontainer, #f0f2f5);
background: var(--td-bg-color-secondarycontainer);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
@ -773,7 +773,7 @@ const scrollToItem = (index: number) => {
.skill-icon,
.tag-icon {
background: transparent;
color: var(--td-text-color-secondary, #666);
color: var(--td-text-color-secondary);
}
.mention-item.active .icon {
@ -808,13 +808,13 @@ const scrollToItem = (index: number) => {
.count {
margin-left: auto;
flex-shrink: 0;
font-size: var(--td-font-size-mark-small, 12px);
font-size: var(--td-font-size-mark-small);
font-variant-numeric: tabular-nums;
color: var(--td-text-color-placeholder, #999);
color: var(--td-text-color-placeholder);
}
.count.is-stale {
color: var(--td-warning-color, #e37318);
color: var(--td-warning-color);
}
.org-name {
@ -823,8 +823,8 @@ const scrollToItem = (index: number) => {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--td-font-size-mark-small, 12px);
color: var(--td-text-color-placeholder, #999);
font-size: var(--td-font-size-mark-small);
color: var(--td-text-color-placeholder);
}
.kb-name {
@ -833,15 +833,15 @@ const scrollToItem = (index: number) => {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--td-font-size-mark-small, 12px);
color: var(--td-text-color-secondary, #999);
font-size: var(--td-font-size-mark-small);
color: var(--td-text-color-secondary);
}
.empty {
padding: 28px 16px;
text-align: center;
color: var(--td-text-color-placeholder, #999);
font-size: var(--td-font-size-body-medium, 14px);
color: var(--td-text-color-placeholder);
font-size: var(--td-font-size-body-medium);
}
.loading-more {
@ -858,23 +858,23 @@ const scrollToItem = (index: number) => {
max-width: 280px;
padding: 13px 14px;
border: 1px solid var(--td-component-stroke);
border-radius: var(--td-radius-large, 9px);
border-radius: var(--td-radius-large);
background: var(--td-bg-color-container);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mention-detail-content {
font-size: var(--td-font-size-body-small, 12px);
color: var(--td-text-color-primary, #333);
font-size: var(--td-font-size-body-small);
color: var(--td-text-color-primary);
line-height: 1.5;
}
.mention-detail-content .detail-loading,
.mention-detail-content .detail-error {
padding: 8px 0;
color: var(--td-text-color-secondary, #999);
font-size: var(--td-font-size-body-small, 12px);
color: var(--td-text-color-secondary);
font-size: var(--td-font-size-body-small);
}
.mention-detail-content .detail-error {
color: var(--td-error-color, #e34d59);
color: var(--td-error-color);
}
.mention-detail-content .detail-header {
display: flex;
@ -885,7 +885,7 @@ const scrollToItem = (index: number) => {
}
.mention-detail-content .detail-name {
font-weight: 600;
font-size: var(--td-font-size-body-medium, 14px);
font-size: var(--td-font-size-body-medium);
line-height: 20px;
word-break: break-word;
}
@ -893,8 +893,8 @@ const scrollToItem = (index: number) => {
flex-shrink: 0;
padding: 1px 6px;
border: 1px solid var(--td-component-stroke);
border-radius: var(--td-radius-medium, 6px);
font-size: var(--td-font-size-mark-small, 12px);
border-radius: var(--td-radius-medium);
font-size: var(--td-font-size-mark-small);
line-height: 18px;
}
.mention-detail-content .detail-type-badge.doc {
@ -908,8 +908,8 @@ const scrollToItem = (index: number) => {
}
.mention-detail-content .detail-desc {
margin: 0 0 8px;
font-size: var(--td-font-size-body-small, 12px);
color: var(--td-text-color-secondary, #666);
font-size: var(--td-font-size-body-small);
color: var(--td-text-color-secondary);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 4;
@ -919,8 +919,8 @@ const scrollToItem = (index: number) => {
word-break: break-word;
}
.mention-detail-content .detail-meta {
font-size: var(--td-font-size-mark-small, 12px);
color: var(--td-text-color-placeholder, #999);
font-size: var(--td-font-size-mark-small);
color: var(--td-text-color-placeholder);
display: flex;
flex-direction: column;
gap: 5px;
@ -929,8 +929,8 @@ const scrollToItem = (index: number) => {
.mention-detail-content .detail-readonly-hint {
display: block;
margin-top: 6px;
font-size: var(--td-font-size-mark-small, 12px);
color: var(--td-text-color-placeholder, #999);
font-size: var(--td-font-size-mark-small);
color: var(--td-text-color-placeholder);
font-style: italic;
}
@ -944,8 +944,8 @@ const scrollToItem = (index: number) => {
}
.mention-detail-content .detail-icon {
flex-shrink: 0;
font-size: 14px;
color: var(--td-text-color-placeholder, #999);
font-size: var(--app-text-base);
color: var(--td-text-color-placeholder);
margin-right: 2px;
display: inline-flex;
align-items: center;
@ -960,14 +960,14 @@ const scrollToItem = (index: number) => {
width: 14px;
height: 14px;
margin-right: 2px;
color: var(--td-text-color-placeholder, #000000);
color: var(--td-text-color-placeholder);
opacity: 0.7;
display: inline-block;
vertical-align: middle;
object-fit: contain;
}
.mention-detail-content .detail-label {
color: var(--td-text-color-placeholder, #999);
color: var(--td-text-color-placeholder);
flex-shrink: 0;
line-height: 1.5;
display: inline-flex;
@ -985,14 +985,14 @@ const scrollToItem = (index: number) => {
.mention-detail-content .detail-value.clickable {
cursor: pointer;
text-decoration: underline;
text-decoration-color: var(--td-text-color-placeholder, #999);
transition: color 0.2s, text-decoration-color 0.2s;
text-decoration-color: var(--td-text-color-placeholder);
transition: color var(--app-motion-base), text-decoration-color var(--app-motion-base);
}
.mention-detail-content .detail-value.clickable:hover {
color: var(--td-brand-color, #07c05f);
text-decoration-color: var(--td-brand-color, #07c05f);
color: var(--td-brand-color);
text-decoration-color: var(--td-brand-color);
}
.mention-detail-content .detail-stale {
color: var(--td-warning-color, #e37318);
color: var(--td-warning-color);
}
</style>

View File

@ -476,7 +476,7 @@ onBeforeUnmount(() => {
.form-label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.4;
@ -484,7 +484,7 @@ onBeforeUnmount(() => {
.form-desc {
margin: 4px 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-placeholder);
@ -506,16 +506,16 @@ onBeforeUnmount(() => {
padding: 6px 12px;
min-height: 32px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.4;
cursor: pointer;
transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
transition: border-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
&__icon {
font-size: 15px;
font-size: var(--app-text-lg);
flex-shrink: 0;
}
@ -524,7 +524,7 @@ onBeforeUnmount(() => {
}
&:hover:not(.is-active) {
border-color: var(--td-brand-color-3, var(--td-brand-color));
border-color: var(--td-brand-color-3);
color: var(--td-text-color-primary);
}
@ -557,7 +557,7 @@ onBeforeUnmount(() => {
&__meta {
flex-shrink: 0;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
}
}
@ -602,12 +602,12 @@ onBeforeUnmount(() => {
gap: 8px;
padding: 5px 10px;
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-container);
color: var(--td-text-color-secondary);
cursor: pointer;
font: inherit;
font-size: 12px;
font-size: var(--app-text-sm);
&__label {
color: var(--td-text-color-primary);
@ -630,8 +630,8 @@ onBeforeUnmount(() => {
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 8px;
font-size: 13px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-md);
&--ok {
background: var(--td-success-color-light);
@ -658,7 +658,7 @@ onBeforeUnmount(() => {
span {
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
}
}
}
@ -672,16 +672,16 @@ onBeforeUnmount(() => {
.metric-chip {
padding: 2px 8px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
}
.result-error {
margin: 10px 0 0;
color: var(--td-error-color);
font-size: 13px;
font-size: var(--app-text-md);
white-space: pre-wrap;
}
@ -700,7 +700,7 @@ onBeforeUnmount(() => {
margin: 8px 0 0;
padding: 12px 14px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

View File

@ -260,23 +260,15 @@
above and the 自定义请求头 controls below — no more
"card inside a card" feel.
Create mode: the resource doesn't exist yet, so we render a
plain password input with a leading lock icon and a trailing
show/hide eye toggle.
plain password input with a leading lock icon; TDesign's password
input provides the show/hide toggle.
-->
<CredentialResource v-if="isEdit && props.modelData?.id" :api="credentialApi" :fields="credentialFields"
:meta="credentialMeta" @changed="invalidateConnectionTest()" />
<t-input v-else v-model="formData.apiKey" :type="showApiKey ? 'text' : 'password'"
<t-input v-else v-model="formData.apiKey" type="password"
:placeholder="isSignedRerank ? signedRerankAccessKeyPlaceholder : apiKeyPlaceholder"
class="api-key-input" autocomplete="off" spellcheck="false">
<template #prefix-icon><t-icon name="lock-on" /></template>
<template #suffix-icon>
<t-icon
:name="showApiKey ? 'browse-off' : 'browse'"
class="api-key-toggle"
:aria-label="showApiKey ? 'Hide' : 'Show'"
@click.stop="showApiKey = !showApiKey"
/>
</template>
</t-input>
<p v-if="isSignedRerank" class="form-desc">{{ signedRerankCredentialHint }}</p>
</div>
@ -862,7 +854,6 @@ watch(() => props.visible && saving.value, (locked) => {
// affordance for everyday use. Reset every time the drawer closes (see
// reset block in the visible watcher) so we never leak the previous value
// across editor sessions.
const showApiKey = ref(false)
const modelChecked = ref(false)
const modelAvailable = ref(false)
const checking = ref(false)
@ -1229,7 +1220,6 @@ const resetForm = () => {
dimensionChecked.value = false
dimensionSuccess.value = false
dimensionMessage.value = ''
showApiKey.value = false
}
// 处理厂商选择变化 (自动填充默认 URL)
@ -1813,7 +1803,7 @@ const handleCancel = () => {
.form-label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.4;
@ -1842,16 +1832,16 @@ const handleCancel = () => {
padding: 6px 12px;
min-height: 32px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.4;
cursor: pointer;
transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
transition: border-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
&__icon {
font-size: 15px;
font-size: var(--app-text-lg);
flex-shrink: 0;
}
@ -1860,7 +1850,7 @@ const handleCancel = () => {
}
&:hover:not(.is-active) {
border-color: var(--td-brand-color-3, var(--td-brand-color));
border-color: var(--td-brand-color-3);
color: var(--td-text-color-primary);
}
@ -1886,7 +1876,7 @@ const handleCancel = () => {
padding: 3px;
background: var(--td-bg-color-component);
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
}
.source-option {
@ -1897,13 +1887,13 @@ const handleCancel = () => {
height: 28px;
background: transparent;
border: 1px solid transparent;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
font-family: inherit;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
line-height: 1;
transition: all 0.15s ease;
transition: all var(--app-motion-fast) ease;
&:hover:not(.is-disabled):not(.is-active) {
color: var(--td-text-color-primary);
@ -1925,7 +1915,7 @@ const handleCancel = () => {
}
.source-option__icon {
font-size: 14px;
font-size: var(--app-text-base);
flex-shrink: 0;
}
@ -1940,7 +1930,7 @@ const handleCancel = () => {
:deep(.t-textarea),
:deep(.t-input-number) {
width: 100%;
font-size: 13px;
font-size: var(--app-text-md);
}
// 厂商选择器样式 — 移至非 scoped 块,因为 t-select popup 渲染到 body 下
@ -1948,10 +1938,10 @@ const handleCancel = () => {
// 复选框
:deep(.t-checkbox) {
font-size: 13px;
font-size: var(--app-text-md);
.t-checkbox__label {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
}
}
@ -1968,15 +1958,6 @@ const handleCancel = () => {
color: var(--td-text-color-placeholder);
}
.api-key-toggle {
cursor: pointer;
transition: color 0.15s ease;
font-size: 16px;
&:hover {
color: var(--td-text-color-primary);
}
}
}
// API 测试区域 — 弱卡片化:用浅底 + dashed 边把"操作 + 反馈"框成一块,
@ -1990,10 +1971,10 @@ const handleCancel = () => {
padding: 10px 12px;
background: var(--td-bg-color-container-hover);
border: 1px dashed var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
.test-message {
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
flex: 1;
@ -2009,13 +1990,13 @@ const handleCancel = () => {
:deep(.t-button) {
min-width: 88px;
height: 32px;
font-size: 13px;
border-radius: 6px;
font-size: var(--app-text-md);
border-radius: var(--app-radius-sm);
flex-shrink: 0;
}
.status-icon {
font-size: 16px;
font-size: var(--app-text-xl);
flex-shrink: 0;
&.available {
@ -2029,7 +2010,7 @@ const handleCancel = () => {
}
.connection-status {
font-size: 12px;
font-size: var(--app-text-sm);
&.success { color: var(--td-brand-color-active); }
&.error { color: var(--td-error-color); }
}
@ -2037,7 +2018,7 @@ const handleCancel = () => {
.connection-hint {
margin: 0 0 8px;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
}
@ -2048,7 +2029,7 @@ const handleCancel = () => {
border-radius: var(--td-radius-default);
background: var(--td-error-color-1);
color: var(--td-error-color);
font-size: 12px;
font-size: var(--app-text-sm);
text-align: left;
&__header {
@ -2070,7 +2051,7 @@ const handleCancel = () => {
// Status icon variant used inside the footer button.
.status-icon {
font-size: 16px;
font-size: var(--app-text-xl);
flex-shrink: 0;
&.available {
@ -2088,8 +2069,8 @@ const handleCancel = () => {
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
border-radius: 8px;
font-size: 13px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
line-height: 1.5;
@ -2101,13 +2082,13 @@ const handleCancel = () => {
}
&--warn {
background: var(--td-warning-color-light, #fff7ed);
border: 1px solid var(--td-warning-color-focus, #fed7aa);
border-left: 3px solid var(--td-warning-color, #f97316);
background: var(--td-warning-color-light);
border: 1px solid var(--td-warning-color-focus);
border-left: 3px solid var(--td-warning-color);
}
.hint-icon {
font-size: 16px;
font-size: var(--app-text-xl);
flex-shrink: 0;
margin-top: 2px;
@ -2116,7 +2097,7 @@ const handleCancel = () => {
}
&--warn {
color: var(--td-warning-color, #f97316);
color: var(--td-warning-color);
}
&--loading {
@ -2134,25 +2115,25 @@ const handleCancel = () => {
padding: 4px 0;
.downloaded-icon {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-brand-color);
flex-shrink: 0;
}
.download-icon {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-brand-color);
flex-shrink: 0;
}
.model-name {
flex: 1;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
}
.model-size {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
margin-left: auto;
}
@ -2173,13 +2154,13 @@ const handleCancel = () => {
padding: 0 4px;
.spinning {
animation: spin 1s linear infinite;
font-size: 14px;
animation: wk-spin 1s linear infinite;
font-size: var(--app-text-base);
color: var(--td-brand-color);
}
.progress-text {
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
color: var(--td-brand-color);
}
@ -2198,8 +2179,8 @@ const handleCancel = () => {
top: 0;
bottom: 0;
width: var(--progress, 0%);
background: linear-gradient(90deg, rgba(7, 192, 95, 0.08), rgba(7, 192, 95, 0.15));
transition: width 0.3s ease;
background: linear-gradient(90deg, color-mix(in srgb, var(--td-brand-color) 8%, transparent), color-mix(in srgb, var(--td-brand-color) 15%, transparent));
transition: width var(--app-motion-slow) ease;
z-index: 0;
border-radius: 5px 0 0 5px;
}
@ -2227,16 +2208,6 @@ const handleCancel = () => {
flex-shrink: 0;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
// 维度控制样式
.dimension-control {
display: flex;
@ -2254,7 +2225,7 @@ const handleCancel = () => {
.dimension-hint {
margin: 8px 0 0 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
color: var(--td-error-color);
@ -2273,7 +2244,7 @@ const handleCancel = () => {
.custom-headers-desc {
margin: 0 0 10px 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-placeholder);
}
@ -2306,7 +2277,7 @@ const handleCancel = () => {
height: 32px;
padding: 0;
color: var(--td-text-color-placeholder);
border-radius: 6px;
border-radius: var(--app-radius-sm);
transition: all 0.18s ease;
&:hover {
@ -2318,7 +2289,7 @@ const handleCancel = () => {
.form-desc {
margin: 4px 0 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-placeholder);
@ -2352,12 +2323,12 @@ const handleCancel = () => {
padding: 10px 12px;
background: var(--td-error-color-light);
border: 1px solid var(--td-error-color-focus);
border-radius: 8px;
font-size: 13px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-md);
.tip-icon {
color: var(--td-error-color);
font-size: 16px;
font-size: var(--app-text-xl);
flex-shrink: 0;
margin-right: 2px;
@ -2385,7 +2356,7 @@ const handleCancel = () => {
:deep(.tip-link) {
color: var(--td-brand-color);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
padding: 4px 6px 4px 10px !important;
min-height: auto !important;
@ -2396,20 +2367,20 @@ const handleCancel = () => {
display: inline-flex !important;
align-items: center !important;
gap: 1px;
border-radius: 4px;
transition: all 0.2s ease;
border-radius: var(--app-radius-xs);
transition: all var(--app-motion-base) ease;
&:hover {
background: rgba(7, 192, 95, 0.08) !important;
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent) !important;
color: var(--td-brand-color-active) !important;
}
&:active {
background: rgba(7, 192, 95, 0.12) !important;
background: color-mix(in srgb, var(--td-brand-color) 12%, transparent) !important;
}
.t-icon {
font-size: 14px !important;
font-size: var(--app-text-base) !important;
margin: 0 !important;
line-height: 1 !important;
display: inline-flex !important;
@ -2426,7 +2397,7 @@ const handleCancel = () => {
:deep(.t-checkbox__label) {
color: var(--td-error-color);
font-size: 13px;
font-size: var(--app-text-md);
}
}
</style>
@ -2441,7 +2412,7 @@ const handleCancel = () => {
.t-select-option {
height: auto !important;
padding: 8px 10px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
margin: 2px 0;
white-space: normal;
}
@ -2455,12 +2426,12 @@ const handleCancel = () => {
min-width: 0;
&__title {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
}
&__hint {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
word-break: break-word;
}
@ -2481,10 +2452,10 @@ const handleCancel = () => {
.t-select-option {
height: auto !important;
padding: 8px 10px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
margin: 2px 0;
outline: none;
transition: background-color 0.15s ease;
transition: background-color var(--app-motion-fast) ease;
&:focus,
&:focus-visible {
@ -2528,14 +2499,14 @@ const handleCancel = () => {
min-width: 0;
.provider-name {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 20px;
}
.provider-desc {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
line-height: 18px;
white-space: nowrap;

View File

@ -186,19 +186,19 @@ onMounted(() => {
gap: 8px;
.model-icon {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-brand-color);
}
.add-icon {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-brand-color);
}
.model-name {
flex: 0 1 auto;
min-width: 0;
font-size: 13px;
font-size: var(--app-text-md);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -207,7 +207,7 @@ onMounted(() => {
.model-raw-name {
flex: 1;
min-width: 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
overflow: hidden;
text-overflow: ellipsis;
@ -228,12 +228,12 @@ onMounted(() => {
.model-ctx {
flex-shrink: 0;
font-size: 11px;
font-size: var(--app-text-xs);
font-variant-numeric: tabular-nums;
color: var(--td-text-color-secondary);
background: var(--td-bg-color-secondarycontainer);
padding: 0 6px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
line-height: 18px;
&--default {

View File

@ -216,7 +216,7 @@ watch(
<style lang="less" scoped>
.my-invitations-desc {
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.55;
margin: 0 0 16px 0;
}
@ -255,7 +255,7 @@ watch(
padding: 12px 14px;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
.invitation-card-main {
flex: 1 1 auto;
@ -272,7 +272,7 @@ watch(
flex-wrap: wrap;
.tenant-name {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
color: var(--td-text-color-primary);
}
@ -283,7 +283,7 @@ watch(
flex-direction: column;
gap: 3px;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
.meta-row {
display: inline-flex;

View File

@ -231,7 +231,7 @@ onMounted(() => {
align-items: center;
gap: 3px;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
height: 26px;
padding: 0 6px;
@ -246,7 +246,7 @@ onMounted(() => {
}
:deep(.t-icon) {
font-size: 14px;
font-size: var(--app-text-base);
vertical-align: middle;
line-height: 1;
}
@ -258,7 +258,7 @@ onMounted(() => {
gap: 4px;
color: var(--td-text-color-secondary);
border-color: var(--td-component-stroke);
font-size: 12px;
font-size: var(--app-text-sm);
height: 26px;
padding: 0 8px;
background: var(--td-bg-color-container);
@ -296,7 +296,7 @@ onMounted(() => {
}
.template-title {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
}
@ -306,7 +306,7 @@ onMounted(() => {
padding: 40px 16px;
text-align: center;
color: var(--td-text-color-placeholder);
font-size: 13px;
font-size: var(--app-text-md);
}
.template-list {
@ -317,9 +317,9 @@ onMounted(() => {
.template-item {
padding: 12px;
border-radius: 8px;
border-radius: var(--app-radius-md);
cursor: pointer;
transition: all 0.2s ease;
transition: all var(--app-motion-base) ease;
margin-bottom: 4px;
&:last-child {
@ -340,7 +340,7 @@ onMounted(() => {
}
.template-name {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
}
@ -350,8 +350,8 @@ onMounted(() => {
align-items: center;
gap: 3px;
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
border-radius: var(--app-radius-xs);
font-size: var(--app-text-xs);
&.kb-tag {
background: var(--td-brand-color-light);
@ -371,7 +371,7 @@ onMounted(() => {
}
.template-desc {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
margin: 0;
line-height: 1.5;

View File

@ -35,13 +35,13 @@ onUnmounted(() => window.removeEventListener(RESOURCE_PREVIEW_EVENT, open))
align-items: center;
max-width: 100%;
padding: 14px 18px;
border: 1px solid var(--td-component-border, #ddd);
border-radius: 10px;
color: var(--td-text-color-primary, #222);
background: var(--td-bg-color-container, #fff);
border: 1px solid var(--td-component-border);
border-radius: var(--app-radius-lg);
color: var(--td-text-color-primary);
background: var(--td-bg-color-container);
overflow-wrap: anywhere;
text-decoration: none;
}
.protected-resource-card::before { content: '↗'; margin-right: 12px; }
.protected-resource-card:hover { border-color: var(--td-brand-color, #07c160); }
.protected-resource-card:hover { border-color: var(--td-brand-color); }
</style>

View File

@ -130,8 +130,8 @@ const tooltipText = computed(() => {
align-items: center;
gap: 3px;
padding: 1px 6px;
border-radius: 8px;
font-size: 11px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-xs);
line-height: 1.4;
font-weight: 500;
max-width: 140px;
@ -162,8 +162,8 @@ const tooltipText = computed(() => {
}
&.origin-space {
color: var(--td-warning-color-7, #b86e02);
background: var(--td-warning-color-1, #fff7e6);
color: var(--td-warning-color-7);
background: var(--td-warning-color-1);
}
&.origin-shared {

View File

@ -37,15 +37,15 @@ onUnmounted(() => clearInterval(timer))
min-width: 0;
margin: 8px 0;
padding: 8px 10px;
border-radius: 4px;
background: var(--td-bg-color-secondarycontainer, #f7f7f7);
color: var(--td-text-color-secondary, #666);
font-size: 12px;
border-radius: var(--app-radius-xs);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
font-size: var(--app-text-sm);
line-height: 1.5;
code, pre {
font-family: var(--td-font-family-code, monospace);
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 1.6;
}
@ -64,7 +64,7 @@ onUnmounted(() => clearInterval(timer))
padding-top: 8px;
overflow: auto;
overscroll-behavior: contain;
border-top: 1px solid var(--td-component-stroke, #e7e7e7);
border-top: 1px solid var(--td-component-stroke);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
@ -78,8 +78,8 @@ onUnmounted(() => clearInterval(timer))
}
.sandbox-command-elapsed {
flex-shrink: 0;
color: var(--td-text-color-placeholder, #999);
font-size: 11px;
color: var(--td-text-color-placeholder);
font-size: var(--app-text-xs);
font-variant-numeric: tabular-nums;
}
</style>

View File

@ -1797,7 +1797,7 @@ onUnmounted(stopTemplatePolling)
gap: 8px;
min-width: 0;
color: var(--td-text-color-placeholder);
transition: color 0.15s ease;
transition: color var(--app-motion-fast) ease;
/* Only the steps that draw a connector need to absorb the leftover width. */
&:not(:last-child) {
@ -1832,7 +1832,7 @@ onUnmounted(stopTemplatePolling)
&:focus-visible {
outline: 2px solid var(--td-brand-color);
outline-offset: 2px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
}
}
}
@ -1846,7 +1846,7 @@ onUnmounted(stopTemplatePolling)
flex-shrink: 0;
border: 1px solid currentColor;
border-radius: 50%;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 600;
line-height: 1;
@ -1865,7 +1865,7 @@ onUnmounted(stopTemplatePolling)
.sandbox-step__title {
overflow: hidden;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
@ -1906,7 +1906,7 @@ onUnmounted(stopTemplatePolling)
:deep(.t-form__label) {
padding-bottom: 6px;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
line-height: 1.4;
}
@ -1915,7 +1915,7 @@ onUnmounted(stopTemplatePolling)
:deep(.t-input-number),
:deep(.t-select) {
width: 100%;
font-size: 13px;
font-size: var(--app-text-md);
}
}
@ -1930,12 +1930,12 @@ onUnmounted(stopTemplatePolling)
background: var(--td-bg-color-secondarycontainer);
:deep(.t-alert__icon) {
font-size: 15px;
font-size: var(--app-text-lg);
}
:deep(.t-alert__message) {
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
}
}
@ -1947,14 +1947,14 @@ onUnmounted(stopTemplatePolling)
gap: 16px;
padding: 10px 12px;
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-secondarycontainer);
}
.private-endpoint-row__title {
margin: 0 0 3px;
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
}
@ -1984,14 +1984,14 @@ onUnmounted(stopTemplatePolling)
.backend-choice__name {
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
line-height: 1.4;
}
.backend-choice__desc {
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
white-space: normal;
}
@ -2014,7 +2014,7 @@ onUnmounted(stopTemplatePolling)
gap: 12px;
padding: 12px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
&.is-active {
@ -2030,7 +2030,7 @@ onUnmounted(stopTemplatePolling)
p {
margin: 4px 0 0;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
}
}
@ -2042,7 +2042,7 @@ onUnmounted(stopTemplatePolling)
}
.weknora-template-card__title {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
}
@ -2054,9 +2054,9 @@ onUnmounted(stopTemplatePolling)
width: 100%;
min-height: 88px;
border: 1px dashed var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
}
.template-list {
@ -2080,15 +2080,15 @@ onUnmounted(stopTemplatePolling)
padding: 10px 12px;
overflow: hidden;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
color: var(--td-text-color-primary);
text-align: left;
cursor: pointer;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
transition: border-color var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease;
&:hover:not(.is-disabled):not(.template-row--offer) {
border-color: var(--td-brand-color-3, var(--td-brand-color));
border-color: var(--td-brand-color-3);
}
&.is-active {
@ -2116,7 +2116,7 @@ onUnmounted(stopTemplatePolling)
height: 14px;
margin-top: 3px;
box-sizing: border-box;
border: 1.5px solid var(--td-border-level-2-color, var(--td-component-stroke));
border: 1.5px solid var(--td-border-level-2-color);
border-radius: 50%;
background: var(--td-bg-color-container);
@ -2155,7 +2155,7 @@ onUnmounted(stopTemplatePolling)
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
line-height: 22px;
text-overflow: ellipsis;
@ -2198,7 +2198,7 @@ onUnmounted(stopTemplatePolling)
dt {
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 18px;
white-space: nowrap;
}
@ -2208,14 +2208,14 @@ onUnmounted(stopTemplatePolling)
min-width: 0;
overflow: hidden;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
&.is-mono {
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 11px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-xs);
}
}
}
@ -2224,7 +2224,7 @@ onUnmounted(stopTemplatePolling)
margin: 0;
overflow-wrap: anywhere;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
&--error {
@ -2251,7 +2251,7 @@ onUnmounted(stopTemplatePolling)
gap: 5px;
margin-top: -4px;
color: var(--td-brand-color);
font-size: 12px;
font-size: var(--app-text-sm);
text-decoration: none;
&:hover {
@ -2272,7 +2272,7 @@ onUnmounted(stopTemplatePolling)
}
.net-list__title {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-primary);
}
@ -2295,7 +2295,7 @@ onUnmounted(stopTemplatePolling)
.net-rule {
border: 1px solid var(--td-component-border);
border-radius: 6px;
border-radius: var(--app-radius-sm);
padding: 12px;
margin-bottom: 12px;
}
@ -2304,7 +2304,7 @@ onUnmounted(stopTemplatePolling)
padding: 0;
margin-bottom: 2px;
border: 0;
border-radius: 4px;
border-radius: var(--app-radius-xs);
}
.net-rule--collapsible.is-open {
@ -2336,7 +2336,7 @@ onUnmounted(stopTemplatePolling)
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
border-radius: 4px;
border-radius: var(--app-radius-xs);
text-align: left;
}
@ -2350,7 +2350,7 @@ onUnmounted(stopTemplatePolling)
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 18px;
color: var(--td-text-color-primary);
}
@ -2371,7 +2371,7 @@ onUnmounted(stopTemplatePolling)
background: transparent;
color: var(--td-text-color-placeholder);
cursor: pointer;
border-radius: 4px;
border-radius: var(--app-radius-xs);
}
.net-rule__move:hover:not(:disabled) {
@ -2415,9 +2415,9 @@ onUnmounted(stopTemplatePolling)
.env-empty {
padding: 18px;
border: 1px dashed var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
text-align: center;
}
@ -2431,7 +2431,7 @@ onUnmounted(stopTemplatePolling)
.section-help {
margin: 0;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
&--under-title {
@ -2461,7 +2461,7 @@ onUnmounted(stopTemplatePolling)
gap: 6px;
margin: 0;
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
line-height: 1.45;
@ -2478,7 +2478,7 @@ onUnmounted(stopTemplatePolling)
.check-result__hint {
margin: 0;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.55;
}
@ -2497,7 +2497,7 @@ onUnmounted(stopTemplatePolling)
gap: 8px;
flex-wrap: wrap;
padding: 2px 0;
font-size: 12px;
font-size: var(--app-text-sm);
}
.check-item .ok {
@ -2550,7 +2550,7 @@ onUnmounted(stopTemplatePolling)
}
.sandbox-step__title {
font-size: 12px;
font-size: var(--app-text-sm);
}
.template-row__fields {

View File

@ -1419,7 +1419,7 @@ onUnmounted(() => {
.installer-model-hint {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1433,10 +1433,10 @@ onUnmounted(() => {
width: 100%;
min-height: 44px;
border: 1px dashed var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-secondarycontainer);
cursor: pointer;
transition: border-color 0.2s ease, background 0.2s ease;
transition: border-color var(--app-motion-base) ease, background var(--app-motion-base) ease;
display: flex;
align-items: center;
justify-content: center;
@ -1459,7 +1459,7 @@ onUnmounted(() => {
&--large {
min-height: 180px;
border-radius: 12px;
border-radius: var(--app-radius-xl);
border-width: 2px;
}
}
@ -1498,11 +1498,11 @@ onUnmounted(() => {
}
.file-upload-area--large .upload-primary-text {
font-size: 15px;
font-size: var(--app-text-lg);
}
.file-upload-area--large .upload-secondary-text {
font-size: 13px;
font-size: var(--app-text-md);
}
.upload-icon {
@ -1520,18 +1520,18 @@ onUnmounted(() => {
}
.upload-primary-text {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
}
.upload-secondary-text {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
}
.upload-file-name {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-brand-color);
}
@ -1542,7 +1542,7 @@ onUnmounted(() => {
.upload-hint {
margin: 8px 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
line-height: 1.5;
}
@ -1561,7 +1561,7 @@ onUnmounted(() => {
align-items: center;
gap: 12px;
margin: 10px 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
&::before,
@ -1630,14 +1630,14 @@ onUnmounted(() => {
label {
display: block;
margin-bottom: 4px;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
}
p {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1653,7 +1653,7 @@ onUnmounted(() => {
h4 {
margin: 0;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-primary);
}
@ -1669,7 +1669,7 @@ onUnmounted(() => {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 1;
color: var(--td-brand-color);
@ -1687,7 +1687,7 @@ onUnmounted(() => {
.skill-manage__remove-stage {
margin: 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1698,11 +1698,11 @@ onUnmounted(() => {
align-items: flex-start;
gap: 10px;
padding: 8px 0 4px;
color: var(--td-success-color, var(--td-brand-color));
color: var(--td-success-color);
p {
margin: 0;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.55;
color: var(--td-text-color-primary);
}
@ -1710,7 +1710,7 @@ onUnmounted(() => {
.skill-envs__hint {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1735,17 +1735,17 @@ onUnmounted(() => {
}
.skill-envs__name {
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
font-size: 12px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
overflow-wrap: anywhere;
}
.skill-envs__tag {
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 18px;
padding: 0 8px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
}
@ -1761,7 +1761,7 @@ onUnmounted(() => {
}
.skill-envs__desc {
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -1793,14 +1793,14 @@ onUnmounted(() => {
gap: 12px;
padding: 14px 14px 14px 12px;
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-container);
transition: border-color 0.18s ease, box-shadow 0.18s ease;
min-width: 0;
&--focused {
border-color: var(--td-brand-color);
box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0, 168, 112, 0.18));
box-shadow: 0 0 0 2px var(--td-brand-color-focus);
}
&--bare {
@ -1843,14 +1843,14 @@ onUnmounted(() => {
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
font-size: 18px;
font-size: var(--app-text-2xl);
}
&__label {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
line-height: 1.4;
}
@ -1899,7 +1899,7 @@ onUnmounted(() => {
flex: 1;
min-width: 0;
margin: 0;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -1914,17 +1914,17 @@ onUnmounted(() => {
align-items: center;
gap: 5px;
padding: 1px 8px 1px 6px;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
line-height: 16px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-secondarycontainer);
&--on {
color: var(--td-success-color-7, #118053);
color: var(--td-success-color-7);
.skill-card__status-dot {
background: var(--td-success-color, #118053);
background: var(--td-success-color);
}
}
@ -1945,10 +1945,10 @@ onUnmounted(() => {
}
&--failed {
color: var(--td-warning-color-7, #b85c00);
color: var(--td-warning-color-7);
.skill-card__status-dot {
background: var(--td-warning-color, #e37318);
background: var(--td-warning-color);
}
}
}
@ -2001,7 +2001,7 @@ onUnmounted(() => {
color: var(--td-text-color-placeholder);
cursor: pointer;
line-height: 0;
transition: background 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
:deep(.t-icon) {
display: block;
@ -2027,7 +2027,7 @@ onUnmounted(() => {
}
&--danger:hover:not(:disabled) {
background: var(--td-error-color-1, var(--td-bg-color-secondarycontainer));
background: var(--td-error-color-1);
color: var(--td-error-color);
}
}
@ -2042,7 +2042,7 @@ onUnmounted(() => {
}
.skill-card__type {
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
line-height: 1.3;
color: var(--td-text-color-placeholder);
@ -2056,14 +2056,14 @@ onUnmounted(() => {
overflow: hidden;
min-width: 0;
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-secondary);
}
.skill-card__log {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.4;
color: var(--td-text-color-placeholder);
}
@ -2071,7 +2071,7 @@ onUnmounted(() => {
.skill-card__error {
margin: 2px 0 0;
padding: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
word-break: break-word;
list-style: none;
@ -2106,7 +2106,7 @@ onUnmounted(() => {
padding: 0 !important;
width: 420px;
max-width: min(420px, calc(100vw - 32px));
border-radius: 10px !important;
border-radius: var(--app-radius-lg) !important;
background: var(--td-bg-color-container) !important;
border: 1px solid var(--td-component-stroke) !important;
box-shadow:
@ -2135,7 +2135,7 @@ onUnmounted(() => {
}
&__title {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
line-height: 1.35;
color: var(--td-text-color-primary);
@ -2149,7 +2149,7 @@ onUnmounted(() => {
align-items: center;
gap: 6px;
margin-top: 2px;
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 1.4;
color: var(--td-text-color-placeholder);
}
@ -2217,7 +2217,7 @@ onUnmounted(() => {
.skill-envs__hint {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -2243,17 +2243,17 @@ onUnmounted(() => {
}
.skill-envs__name {
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
font-size: 12px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
overflow-wrap: anywhere;
}
.skill-envs__tag {
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 18px;
padding: 0 8px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
}
@ -2269,7 +2269,7 @@ onUnmounted(() => {
}
.skill-envs__desc {
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
}

View File

@ -227,13 +227,7 @@ const confirmDangerAction = (): void => {
border: 1.5px solid var(--td-component-stroke);
border-top-color: currentColor;
border-radius: 50%;
animation: session-running-spin 0.8s linear infinite;
}
@keyframes session-running-spin {
to {
transform: rotate(360deg);
}
animation: wk-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
@ -260,7 +254,7 @@ const confirmDangerAction = (): void => {
border-radius: 5px;
color: var(--td-text-color-primary);
background: var(--td-bg-color-container);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 24px;
outline: none;
box-shadow: 0 0 0 2px var(--td-brand-color-light);
@ -278,7 +272,7 @@ const confirmDangerAction = (): void => {
color: inherit;
background: transparent;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease;
transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
&:hover {
background: var(--td-bg-color-container-hover);
@ -297,10 +291,10 @@ const confirmDangerAction = (): void => {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 15px;
font-weight: 400;
border-radius: 4px;
border-radius: var(--app-radius-xs);
&--user {
color: var(--td-brand-color);
@ -325,7 +319,7 @@ const confirmDangerAction = (): void => {
margin-top: 2px !important;
min-width: 160px !important;
width: max-content !important;
border-radius: 8px !important;
border-radius: var(--app-radius-md) !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
@ -359,7 +353,7 @@ const confirmDangerAction = (): void => {
border-radius: 5px;
color: var(--td-text-color-primary);
background: transparent;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 20px;
text-align: left;
white-space: nowrap;
@ -389,7 +383,7 @@ const confirmDangerAction = (): void => {
color: var(--td-text-color-secondary);
.t-icon {
font-size: 16px;
font-size: var(--app-text-xl);
}
}
@ -409,14 +403,14 @@ const confirmDangerAction = (): void => {
.session-action-confirm__title {
margin: 0;
color: var(--td-text-color-primary);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
line-height: 20px;
}
.session-action-confirm__body {
color: var(--td-text-color-secondary);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.5;
word-break: break-word;
}
@ -433,13 +427,13 @@ const confirmDangerAction = (): void => {
height: 30px;
padding: 0 12px;
border: 0.5px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
color: var(--td-text-color-primary);
background: var(--td-bg-color-container);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 28px;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;
&:hover:not(:disabled) {
background: var(--td-bg-color-container-hover);

View File

@ -169,11 +169,11 @@ onBeforeUnmount(() => {
min-height: 28px;
padding: 4px 10px 4px 14px;
border: 0;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
font-family: var(--app-font-family);
text-align: left;
@ -215,13 +215,13 @@ onBeforeUnmount(() => {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 18px;
letter-spacing: 0.01em;
.session-source-filter--inline .session-source-filter__trigger & {
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 600;
line-height: 16px;
color: inherit;
@ -247,7 +247,7 @@ onBeforeUnmount(() => {
color: var(--td-text-color-placeholder);
.session-source-filter--inline & {
font-size: 12px !important;
font-size: var(--app-text-sm) !important;
color: var(--td-text-color-disabled);
}
}
@ -255,7 +255,7 @@ onBeforeUnmount(() => {
.session-source-filter__chevron {
flex: 0 0 auto;
color: var(--td-text-color-placeholder);
transition: transform 0.18s ease, color 0.15s ease;
transition: transform 0.18s ease, color var(--app-motion-fast) ease;
&--open {
transform: rotate(180deg);
@ -265,7 +265,7 @@ onBeforeUnmount(() => {
.session-source-filter--inline & {
color: var(--td-text-color-disabled);
opacity: 0.85;
font-size: 10px !important;
font-size: var(--app-text-2xs) !important;
}
}
@ -278,7 +278,7 @@ onBeforeUnmount(() => {
padding: 3px;
border: 1px solid var(--td-component-stroke);
border-radius: 7px;
background: var(--td-bg-color-sidebar, var(--td-bg-color-container));
background: var(--td-bg-color-sidebar);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.04);
}
@ -295,7 +295,7 @@ onBeforeUnmount(() => {
background: transparent;
color: var(--td-text-color-primary);
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
font-family: var(--app-font-family);
text-align: left;
white-space: nowrap;
@ -320,7 +320,7 @@ onBeforeUnmount(() => {
}
.session-source-filter__option-label {
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 16px;
}
@ -330,7 +330,7 @@ onBeforeUnmount(() => {
width: 13px;
margin-left: 2px;
color: var(--td-text-color-placeholder);
font-size: 12px !important;
font-size: var(--app-text-sm) !important;
visibility: hidden;
&--visible {

View File

@ -0,0 +1,413 @@
<template>
<Teleport to="body">
<Transition name="settings-modal-shell">
<div v-if="visible" class="settings-modal-shell settings-overlay" :class="overlayClass" :style="{ zIndex }"
@click.self="emit('close')">
<div class="settings-modal">
<div v-if="loading" class="editor-initializing" role="status" :aria-label="$t('common.loading')">
<t-loading size="medium" :text="$t('common.loading')" />
</div>
<button class="close-btn" type="button" @click="emit('close')" :aria-label="$t('common.close')">
<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path d="M15 5L5 15M5 5L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
</svg>
</button>
<div class="settings-container">
<aside class="settings-sidebar">
<div class="sidebar-header">
<h2 class="sidebar-title">{{ title }}</h2>
<slot name="sidebar-header-extra" />
</div>
<nav class="settings-nav" :data-guide="navGuide || undefined">
<slot name="nav">
<template v-for="group in navGroups" :key="group.key">
<div class="nav-group-title">{{ group.label }}</div>
<div v-for="item in group.items" :key="item.key" :class="['nav-item', { active: modelValue === item.key }]"
:data-guide="navItemGuidePrefix ? `${navItemGuidePrefix}-${item.key}` : undefined"
@click="emit('update:modelValue', item.key)">
<slot name="nav-icon" :item="item" :active="modelValue === item.key">
<t-icon :name="item.icon" class="nav-icon" />
</slot>
<span class="nav-label">{{ item.label }}</span>
<span v-if="showBadge(item)" :class="['nav-badge', item.badgeClass]">{{ item.badge }}</span>
</div>
</template>
</slot>
</nav>
</aside>
<div class="settings-content">
<div class="settings-body">
<slot />
</div>
<div v-if="$slots.footer || $slots['footer-note']" class="settings-footer">
<slot name="footer-note" />
<div class="settings-footer-actions">
<slot name="footer" />
</div>
</div>
</div>
</div>
</div>
</div>
</Transition>
</Teleport>
</template>
<script setup lang="ts">
/**
* 全屏"设置类"弹窗壳:遮罩 + 1080×780 面板 + 左侧分组导航 + 右侧内容 + 可选底栏。
* 被 Settings / AgentEditorModal / OrganizationSettingsModal / KnowledgeBaseEditorModal 共用,
* 关闭行为(Esc / 遮罩 / 未保存守卫)由消费方通过 useModalShell 决定,本组件只发出 `close`。
*
* 样式为非 scoped、以 `.settings-modal-shell` 为根前缀,这样通过 `nav` 插槽自定义导航的消费方
* 也能复用 .nav-item / .nav-icon 等基础样式。
*/
export interface SettingsModalNavItem {
key: string
label: string
icon?: string
badge?: number | string | null
/** 额外的徽标 class,例如 'nav-badge-count' */
badgeClass?: string
/** 徽标为 0 时是否仍显示 */
showZeroBadge?: boolean
[extra: string]: unknown
}
export interface SettingsModalNavGroup {
key: string
label: string
items: SettingsModalNavItem[]
}
withDefaults(
defineProps<{
visible: boolean
title: string
/** 当前分区 key(v-model) */
modelValue?: string
navGroups?: SettingsModalNavGroup[]
loading?: boolean
zIndex?: number
overlayClass?: string
navGuide?: string
navItemGuidePrefix?: string
}>(),
{
modelValue: '',
navGroups: () => [],
loading: false,
zIndex: 1100,
overlayClass: '',
navGuide: '',
navItemGuidePrefix: '',
},
)
const emit = defineEmits<{
(e: 'update:modelValue', key: string): void
(e: 'close'): void
}>()
function showBadge(item: SettingsModalNavItem): boolean {
if (item.badge == null || item.badge === '') return false
if (typeof item.badge === 'number' && item.badge <= 0) return !!item.showZeroBadge
return true
}
</script>
<style lang="less">
.settings-modal-shell.settings-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
backdrop-filter: blur(4px);
overscroll-behavior: none;
}
.settings-modal-shell {
.settings-modal {
position: relative;
width: 100%;
// 1080×780:给成员表 / 系统设置这类多列内容留足空间;外层 20px padding 后 1120,
// 1280+ 的笔记本都放得下;更窄的视口由 width: 100% 收缩。
max-width: 1080px;
height: 780px;
max-height: calc(100vh - 40px);
background: var(--td-bg-color-container);
border-radius: var(--app-radius-xl);
box-shadow: var(--td-shadow-3);
overflow: hidden;
display: flex;
flex-direction: column;
}
.editor-initializing {
position: absolute;
inset: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
background: var(--td-bg-color-container);
}
.close-btn {
position: absolute;
top: 16px;
right: 16px;
width: 32px;
height: 32px;
border: none;
background: transparent;
border-radius: var(--app-radius-sm);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--td-text-color-secondary);
transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;
z-index: 10;
&:hover {
background: var(--td-bg-color-container-hover);
color: var(--td-text-color-primary);
}
}
.settings-container {
display: flex;
height: 100%;
width: 100%;
overflow: hidden;
}
.settings-sidebar {
width: 208px;
background-color: var(--td-bg-color-settings-modal);
border-right: 1px solid var(--td-component-stroke);
flex-shrink: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.sidebar-header {
padding: 16px 14px 12px;
border-bottom: 1px solid var(--td-component-stroke);
flex-shrink: 0;
}
.sidebar-title {
margin: 0;
font-size: var(--app-text-xl);
font-weight: 600;
color: var(--td-text-color-primary);
}
.settings-nav {
flex: 1;
padding: 8px 8px 12px;
overflow-y: auto;
min-height: 0;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--td-bg-color-secondarycontainer);
}
&::-webkit-scrollbar-thumb {
background: var(--td-gray-color-5);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb:hover {
background: var(--td-gray-color-6);
}
}
.nav-group-title {
padding: 8px 14px 2px;
color: var(--td-text-color-placeholder);
font-size: var(--app-text-sm);
font-weight: 600;
letter-spacing: 0.02em;
}
.settings-nav > .nav-group-title:first-child {
padding-top: 2px;
}
.nav-item {
display: flex;
align-items: center;
padding: 6px 12px;
margin-bottom: 2px;
border-radius: var(--app-radius-sm);
cursor: pointer;
transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
user-select: none;
&:hover {
background-color: var(--td-bg-color-container-hover);
color: var(--td-text-color-primary);
}
&.active {
background-color: var(--td-bg-color-secondarycontainer);
color: var(--td-brand-color);
font-weight: 500;
}
}
.nav-icon {
margin-right: 9px;
font-size: var(--app-text-xl);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: inherit;
&.nav-icon-img {
width: 16px;
height: 16px;
}
&.nav-icon-emoji {
font-size: var(--app-text-base);
line-height: 1;
}
}
.nav-label {
flex: 1;
}
.nav-badge {
flex-shrink: 0;
margin-left: 2px;
padding: 0 6px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
font-size: var(--app-text-xs);
line-height: 16px;
font-weight: 500;
text-align: center;
&.nav-badge-count {
min-width: 20px;
}
}
.settings-content {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
background-color: var(--td-bg-color-container);
}
// 既是滚动容器,也是 flex 列:消费方的 .content-wrapper 想自己滚动时设 flex:1 + overflow:auto,
// 想让整块内容随页面滚动时保持自然高度即可。
.settings-body {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow-y: auto;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: var(--td-bg-color-container);
}
&::-webkit-scrollbar-thumb {
background: var(--td-gray-color-5);
border-radius: 3px;
}
&::-webkit-scrollbar-thumb:hover {
background: var(--td-gray-color-6);
}
}
.settings-footer {
padding: 12px 40px;
border-top: 1px solid var(--td-component-stroke);
display: flex;
align-items: center;
justify-content: flex-end;
gap: 16px;
flex-shrink: 0;
background-color: var(--td-bg-color-container);
}
.settings-footer-note {
margin: 0;
margin-right: auto;
flex: 1;
min-width: 0;
display: flex;
align-items: flex-start;
gap: 6px;
font-size: var(--app-text-md);
line-height: 20px;
color: var(--td-text-color-secondary);
strong {
margin-right: 4px;
color: var(--td-text-color-primary);
font-weight: 500;
}
&__icon {
flex-shrink: 0;
margin-top: 2px;
font-size: var(--app-text-base);
color: var(--td-success-color);
}
}
.settings-footer-actions {
display: flex;
gap: 12px;
flex-shrink: 0;
}
}
.settings-modal-shell-leave-active {
transition: opacity var(--app-motion-base) ease;
.settings-modal {
transition: transform var(--app-motion-base) ease, opacity var(--app-motion-base) ease;
}
}
.settings-modal-shell-leave-to {
opacity: 0;
.settings-modal {
transform: scale(0.95);
opacity: 0;
}
}
</style>

View File

@ -289,10 +289,10 @@ function handleGoToOrgSettings(orgId: string) {
gap: 8px;
padding: 12px;
background: var(--td-bg-color-container-hover);
border-radius: 6px;
border-radius: var(--app-radius-sm);
margin-top: 8px;
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
.t-icon {
@ -341,8 +341,8 @@ function handleGoToOrgSettings(orgId: string) {
padding: 14px 16px;
background: var(--td-bg-color-container-hover);
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
transition: background 0.2s, border-color 0.2s;
border-radius: var(--app-radius-md);
transition: background var(--app-motion-base), border-color var(--app-motion-base);
}
.share-item:hover {
@ -371,9 +371,9 @@ function handleGoToOrgSettings(orgId: string) {
height: auto;
align-items: center;
padding: 6px 12px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
margin: 1px 6px;
transition: background 0.15s ease;
transition: background var(--app-motion-fast) ease;
}
:deep(.t-select-option:hover),
@ -414,7 +414,7 @@ function handleGoToOrgSettings(orgId: string) {
.org-option-name {
font-family: var(--app-font-family);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
overflow: hidden;
@ -428,7 +428,7 @@ function handleGoToOrgSettings(orgId: string) {
align-items: center;
gap: 6px;
font-family: var(--app-font-family);
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
.org-meta-tag {
@ -437,7 +437,7 @@ function handleGoToOrgSettings(orgId: string) {
gap: 3px;
padding: 0px 4px;
background: var(--td-bg-color-secondarycontainer);
border-radius: 4px;
border-radius: var(--app-radius-xs);
}
.org-meta-icon {
@ -447,7 +447,7 @@ function handleGoToOrgSettings(orgId: string) {
}
.org-meta-icon-user {
font-size: 12px;
font-size: var(--app-text-sm);
}
.org-meta-icon-kb {
@ -457,7 +457,7 @@ function handleGoToOrgSettings(orgId: string) {
}
.org-meta-icon-agent {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
opacity: 0.75;
}
@ -470,7 +470,7 @@ function handleGoToOrgSettings(orgId: string) {
padding: 4px 0;
max-height: 320px;
overflow-y: auto;
border-radius: 6px;
border-radius: var(--app-radius-sm);
box-shadow: var(--td-shadow-2);
}
@ -478,7 +478,7 @@ function handleGoToOrgSettings(orgId: string) {
height: auto;
align-items: center;
padding: 6px 12px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
margin: 1px 6px;
}

View File

@ -195,9 +195,9 @@ onUnmounted(() => {
display: flex;
align-items: center;
justify-content: center;
background: rgba(7, 192, 95, 0.1);
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
font-size: 16px;
font-size: var(--app-text-xl);
}
.skill-files-drawer__head-text {
@ -206,7 +206,7 @@ onUnmounted(() => {
}
.skill-files-drawer__title {
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -217,7 +217,7 @@ onUnmounted(() => {
.skill-files-drawer__subtitle {
margin-top: 2px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.4;
color: var(--td-text-color-secondary);
}
@ -231,7 +231,7 @@ onUnmounted(() => {
justify-content: center;
padding: 0;
border: 0;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
@ -297,7 +297,7 @@ onUnmounted(() => {
border-radius: 1px;
background: var(--td-component-border);
opacity: 0.55;
transition: opacity 0.15s ease, background 0.15s ease;
transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
}
.skill-files-drawer-resize-handle:hover .skill-files-drawer-resize-line,

View File

@ -615,14 +615,14 @@ watch(
margin-bottom: 2px;
padding: 6px 12px;
border: 0;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
cursor: pointer;
text-align: left;
user-select: none;
transition: background-color 0.2s ease, color 0.2s ease;
transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;
&:hover {
background-color: var(--td-bg-color-container-hover);
@ -691,7 +691,7 @@ watch(
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
}
@ -700,9 +700,9 @@ watch(
height: 24px;
padding: 0 8px;
border: 0;
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: transparent;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 24px;
color: var(--td-text-color-secondary);
cursor: pointer;
@ -727,21 +727,21 @@ watch(
&::-webkit-scrollbar-thumb {
background: var(--td-bg-color-component-disabled);
border-radius: 4px;
border-radius: var(--app-radius-xs);
}
}
.skill-files-panel__hint {
margin: 24px 8px;
text-align: center;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-placeholder);
}
.skill-files-panel__warn {
margin: 0 0 8px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-warning-color);
}
@ -749,7 +749,7 @@ watch(
margin: 0 0 20px;
padding: 8px 12px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
}
@ -765,7 +765,7 @@ watch(
dt {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 1.5;
color: var(--td-text-color-secondary);
@ -774,15 +774,15 @@ watch(
dd {
margin: 0;
min-width: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-primary);
word-break: break-word;
white-space: pre-wrap;
&.is-code {
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
font-size: 11px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-xs);
}
}
}
@ -797,8 +797,8 @@ watch(
padding: 0;
background: transparent;
overflow: visible;
font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
font-size: 12px;
font-family: var(--td-font-family-mono);
font-size: var(--app-text-sm);
line-height: 1.55;
color: var(--td-text-color-primary);
white-space: pre-wrap;
@ -831,7 +831,7 @@ watch(
background: var(--td-component-border);
opacity: 0.55;
pointer-events: none;
transition: opacity 0.15s ease, background 0.15s ease;
transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
}
.skill-files-split-handle:hover .skill-files-split-handle__line,

View File

@ -356,8 +356,8 @@ onUnmounted(stop)
flex-shrink: 0;
margin-top: 12px;
padding-top: 12px;
background: var(--td-bg-color-container, #fff);
border-top: 1px solid var(--td-component-stroke, #e7e7e7);
background: var(--td-bg-color-container);
border-top: 1px solid var(--td-component-stroke);
// Cover the timeline's padding too, so scrolling text cannot peek around
// the sticky composer. Its z-index keeps this backdrop above the transcript.
@ -374,8 +374,8 @@ onUnmounted(stop)
margin: 8px 0;
padding: 8px;
background: var(--td-bg-color-container);
border-radius: 6px;
span { font-size: 12px; color: var(--td-text-color-secondary); }
border-radius: var(--app-radius-sm);
span { font-size: var(--app-text-sm); color: var(--td-text-color-secondary); }
p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
}
.skill-timeline__guidance-actions {
@ -384,17 +384,17 @@ onUnmounted(stop)
justify-content: flex-end;
gap: 12px;
margin-top: 8px;
span { flex: 1; font-size: 12px; color: var(--td-text-color-secondary); }
span { flex: 1; font-size: var(--app-text-sm); color: var(--td-text-color-secondary); }
}
.skill-timeline__guidance-error { color: var(--td-error-color); font-size: 12px; }
.skill-timeline__guidance-error { color: var(--td-error-color); font-size: var(--app-text-sm); }
.skill-timeline {
display: flex;
flex-direction: column;
padding: 12px;
background: var(--td-bg-color-secondarycontainer, #f7f7f7);
border: 1px solid var(--td-component-stroke, #e7e7e7);
border-radius: 8px;
background: var(--td-bg-color-secondarycontainer);
border: 1px solid var(--td-component-stroke);
border-radius: var(--app-radius-md);
}
.skill-timeline__turn + .skill-timeline__turn {
@ -406,19 +406,19 @@ onUnmounted(stop)
margin: 0;
padding: 8px 10px;
overflow-y: auto;
color: var(--td-text-color-secondary, #666);
font-size: 12px;
color: var(--td-text-color-secondary);
font-size: var(--app-text-sm);
line-height: 1.6;
background: var(--td-bg-color-container, #fff);
border-radius: 6px;
background: var(--td-bg-color-container);
border-radius: var(--app-radius-sm);
white-space: pre-wrap;
word-break: break-word;
}
.skill-timeline__empty {
margin: 8px 0;
color: var(--td-text-color-placeholder, #999);
font-size: 13px;
color: var(--td-text-color-placeholder);
font-size: var(--app-text-md);
}
.skill-timeline--compact {
@ -431,40 +431,40 @@ onUnmounted(stop)
.skill-timeline--compact .skill-timeline__prompt {
max-height: 72px;
padding: 6px 8px;
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 1.5;
}
.skill-timeline--compact .skill-timeline__empty {
margin: 4px 0;
font-size: 12px;
font-size: var(--app-text-sm);
}
.skill-timeline--compact :deep(.agent-stream-display.is-embedded) {
font-size: 12px;
font-size: var(--app-text-sm);
--agent-step-text-size: 12px;
--agent-step-summary-size: 12px;
}
.skill-timeline--compact :deep(.agent-stream-display.is-embedded .tree-root .action-name) {
font-size: 12px;
font-size: var(--app-text-sm);
}
// Chat answer Markdown is 16px. That is the right size in a conversation and
// too loud in this 420px popup, where the prompt and step summary are 11–13px.
.skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content) {
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.55;
}
.skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content h1) {
font-size: 13px;
font-size: var(--app-text-md);
margin-bottom: 0.35em;
}
.skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content h2),
.skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content h3) {
font-size: 12px;
font-size: var(--app-text-sm);
}
.skill-timeline__turn--command {
// AgentStreamDisplay also renders an empty inline image-viewer trigger.

View File

@ -110,7 +110,7 @@ const letterStyle = computed(() => {
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--app-radius-md);
flex-shrink: 0;
box-shadow: var(--td-shadow-2);
overflow: hidden;
@ -122,7 +122,7 @@ const letterStyle = computed(() => {
box-shadow: none;
.space-avatar-letter {
font-size: 11px;
font-size: var(--app-text-xs);
}
.space-avatar-decoration {
@ -133,10 +133,10 @@ const letterStyle = computed(() => {
&.space-avatar-large {
width: 48px;
height: 48px;
border-radius: 12px;
border-radius: var(--app-radius-xl);
.space-avatar-letter {
font-size: 20px;
font-size: var(--app-text-3xl);
}
.space-avatar-emoji-char {
@ -155,11 +155,11 @@ const letterStyle = computed(() => {
}
.space-avatar-emoji-char {
font-size: 18px;
font-size: var(--app-text-2xl);
line-height: 1;
.space-avatar-small & {
font-size: 14px;
font-size: var(--app-text-base);
}
}
@ -178,7 +178,7 @@ const letterStyle = computed(() => {
position: relative;
z-index: 1;
color: var(--td-text-color-anti);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
font-family: var(--app-font-family);
}

View File

@ -443,7 +443,7 @@ defineExpose({ open, close })
box-sizing: border-box;
pointer-events: none;
border: 2px solid var(--td-brand-color);
box-shadow: 0 0 0 4px rgba(7, 192, 95, 0.18);
box-shadow: 0 0 0 4px color-mix(in srgb, var(--td-brand-color) 18%, transparent);
transition:
top 0.28s cubic-bezier(0.4, 0, 0.2, 1),
left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
@ -486,7 +486,7 @@ defineExpose({ open, close })
height: 28px;
padding: 0;
border: none;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
@ -507,43 +507,43 @@ defineExpose({ open, close })
height: 6px;
border-radius: 50%;
background: var(--td-bg-color-component);
transition: width 0.2s ease, background 0.2s ease;
transition: width var(--app-motion-base) ease, background var(--app-motion-base) ease;
&.is-active {
width: 16px;
border-radius: 999px;
border-radius: var(--app-radius-pill);
background: var(--td-brand-color);
}
&.is-done {
background: rgba(7, 192, 95, 0.4);
background: color-mix(in srgb, var(--td-brand-color) 40%, transparent);
}
}
.guide__step-label {
margin: 6px 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
.guide__title {
margin: 0;
padding-right: 24px;
font-size: 18px;
font-size: var(--app-text-2xl);
font-weight: 600;
line-height: 26px;
}
.guide__desc {
margin: 0;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 22px;
color: var(--td-text-color-secondary);
}
.guide__interact-hint {
margin: 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 20px;
color: var(--td-brand-color);
font-weight: 500;
@ -563,7 +563,7 @@ defineExpose({ open, close })
border: none;
background: transparent;
padding: 0;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-placeholder);
cursor: pointer;
@ -579,7 +579,7 @@ defineExpose({ open, close })
.guide-fade-enter-active,
.guide-fade-leave-active {
transition: opacity 0.2s ease;
transition: opacity var(--app-motion-base) ease;
}
.guide-fade-enter-from,

View File

@ -320,9 +320,9 @@ onUnmounted(() => {
display: flex;
align-items: center;
padding: 10px 12px;
border-radius: 8px;
border-radius: var(--app-radius-md);
cursor: pointer;
transition: all 0.2s;
transition: all var(--app-motion-base);
background: var(--td-bg-color-secondarycontainer);
border: .5px solid var(--td-component-stroke);
@ -338,7 +338,7 @@ onUnmounted(() => {
}
.tenant-label {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
margin-bottom: 2px;
font-weight: 500;
@ -352,7 +352,7 @@ onUnmounted(() => {
}
.tenant-name {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
color: var(--td-text-color-primary);
white-space: nowrap;
@ -362,7 +362,7 @@ onUnmounted(() => {
}
.tenant-switch-icon {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-brand-color);
flex-shrink: 0;
}
@ -383,7 +383,7 @@ onUnmounted(() => {
right: 0;
background: var(--td-bg-color-container);
border: .5px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
z-index: 1000;
overflow: hidden;
@ -396,7 +396,7 @@ onUnmounted(() => {
.dropdown-title {
display: block;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
color: var(--td-text-color-secondary);
margin-bottom: 8px;
@ -408,19 +408,19 @@ onUnmounted(() => {
gap: 6px;
padding: 7px 10px;
background: var(--td-bg-color-secondarycontainer);
border-radius: 6px;
border-radius: var(--app-radius-sm);
border: .5px solid transparent;
transition: all 0.2s;
transition: all var(--app-motion-base);
&:focus-within {
background: var(--td-bg-color-container);
border-color: var(--td-brand-color);
box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.1);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--td-brand-color) 10%, transparent);
}
}
.search-icon {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-placeholder);
flex-shrink: 0;
}
@ -430,7 +430,7 @@ onUnmounted(() => {
border: none;
outline: none;
background: transparent;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
min-width: 0;
@ -440,11 +440,11 @@ onUnmounted(() => {
}
.clear-icon {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-placeholder);
cursor: pointer;
flex-shrink: 0;
transition: color 0.2s;
transition: color var(--app-motion-base);
&:hover {
color: var(--td-text-color-secondary);
@ -479,9 +479,9 @@ onUnmounted(() => {
align-items: center;
justify-content: space-between;
padding: 8px 10px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
transition: all 0.15s;
transition: all var(--app-motion-fast);
margin-bottom: 2px;
&:last-child {
@ -493,7 +493,7 @@ onUnmounted(() => {
}
&.selected {
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
.tenant-item-name {
color: var(--td-brand-color);
@ -513,16 +513,16 @@ onUnmounted(() => {
.tenant-item-avatar {
width: 32px;
height: 32px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-secondarycontainer);
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-secondary);
flex-shrink: 0;
transition: all 0.2s;
transition: all var(--app-motion-base);
&.active {
background: linear-gradient(135deg, var(--td-brand-color) 0%, var(--td-brand-color-active) 100%);
@ -539,7 +539,7 @@ onUnmounted(() => {
}
.tenant-item-name {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
white-space: nowrap;
overflow: hidden;
@ -547,7 +547,7 @@ onUnmounted(() => {
}
.tenant-item-id {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
}
@ -565,7 +565,7 @@ onUnmounted(() => {
padding: 24px 12px;
gap: 8px;
color: var(--td-text-color-placeholder);
font-size: 13px;
font-size: var(--app-text-md);
}
.tenant-loading-more {
@ -581,20 +581,20 @@ onUnmounted(() => {
padding: 10px 12px;
margin: 4px 6px 6px;
border-top: .5px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
color: var(--td-brand-color);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
transition: background 0.15s;
transition: background var(--app-motion-fast);
&:hover {
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
}
}
.tenant-create-icon {
font-size: 14px;
font-size: var(--app-text-base);
flex-shrink: 0;
}
@ -608,7 +608,7 @@ onUnmounted(() => {
// 下拉动画
.dropdown-enter-active,
.dropdown-leave-active {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
transition: all var(--app-motion-base) cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-enter-from,

View File

@ -629,9 +629,9 @@ onUnmounted(() => {
align-items: center;
gap: 6px;
padding: 8px 6px;
border-radius: 8px;
border-radius: var(--app-radius-md);
cursor: pointer;
transition: all 0.2s;
transition: all var(--app-motion-base);
background: transparent;
&:hover {
@ -653,7 +653,7 @@ onUnmounted(() => {
display: flex;
align-items: center;
justify-content: center;
transition: width 0.2s ease, height 0.2s ease;
transition: width var(--app-motion-base) ease, height var(--app-motion-base) ease;
img {
width: 100%;
@ -663,7 +663,7 @@ onUnmounted(() => {
.avatar-placeholder {
color: var(--td-text-color-anti);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
line-height: 1;
}
@ -679,7 +679,7 @@ onUnmounted(() => {
justify-content: center;
.user-name {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
white-space: nowrap;
@ -688,7 +688,7 @@ onUnmounted(() => {
}
.user-email {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
white-space: nowrap;
overflow: hidden;
@ -696,7 +696,7 @@ onUnmounted(() => {
}
.user-tenant-name {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
letter-spacing: -0.01em;
color: var(--td-text-color-primary);
@ -712,7 +712,7 @@ onUnmounted(() => {
gap: 4px;
margin-top: 0;
min-width: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.35;
color: var(--td-text-color-secondary);
@ -741,10 +741,10 @@ onUnmounted(() => {
}
.dropdown-icon {
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-secondary);
flex-shrink: 0;
transition: transform 0.2s;
transition: transform var(--app-motion-base);
}
.user-dropdown {
@ -755,7 +755,7 @@ onUnmounted(() => {
right: -5px;
margin-bottom: 6px;
background: var(--td-bg-color-container);
border-radius: 8px;
border-radius: var(--app-radius-md);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
border: 1px solid var(--td-component-stroke);
overflow: hidden;
@ -773,7 +773,7 @@ onUnmounted(() => {
&.is-clickable {
cursor: pointer;
transition: background-color 0.15s ease;
transition: background-color var(--app-motion-fast) ease;
&:hover,
&:focus-visible {
@ -802,7 +802,7 @@ onUnmounted(() => {
.dropdown-user-avatar-placeholder {
color: var(--td-text-color-anti);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
line-height: 1;
}
@ -827,7 +827,7 @@ onUnmounted(() => {
.dropdown-user-name {
flex: 1;
min-width: 0;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.35;
@ -838,7 +838,7 @@ onUnmounted(() => {
.dropdown-user-email {
min-width: 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.35;
color: var(--td-text-color-secondary);
white-space: nowrap;
@ -856,11 +856,11 @@ onUnmounted(() => {
margin: 0;
padding: 0;
border: none;
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: transparent;
color: var(--td-text-color-placeholder);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;
&:hover {
background: var(--td-bg-color-container-hover);
@ -877,11 +877,11 @@ onUnmounted(() => {
padding: 9px 12px;
border-top: 1px solid var(--td-component-stroke);
background: transparent;
transition: background 0.15s ease;
transition: background var(--app-motion-fast) ease;
min-width: 0;
>.menu-icon {
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-secondary);
flex-shrink: 0;
}
@ -908,7 +908,7 @@ onUnmounted(() => {
}
.dropdown-tenant-panel-name {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
line-height: 1.35;
@ -919,16 +919,16 @@ onUnmounted(() => {
.dropdown-tenant-panel-trail {
flex-shrink: 0;
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-placeholder);
transition: color 0.15s ease;
transition: color var(--app-motion-fast) ease;
}
.dropdown-tenant-panel-role {
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.35;
color: var(--td-text-color-secondary);
min-width: 0;
@ -949,8 +949,8 @@ onUnmounted(() => {
gap: 10px;
padding: 9px 12px;
cursor: pointer;
transition: all 0.2s;
font-size: 14px;
transition: all var(--app-motion-base);
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
&:hover {
@ -978,10 +978,10 @@ onUnmounted(() => {
}
.menu-chevron {
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-placeholder);
flex-shrink: 0;
transition: transform 0.15s;
transition: transform var(--app-motion-fast);
}
&.is-open {
@ -994,7 +994,7 @@ onUnmounted(() => {
}
.menu-icon {
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-secondary);
&.svg-icon {
@ -1009,7 +1009,7 @@ onUnmounted(() => {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-size: var(--app-text-lg);
line-height: 1;
flex-shrink: 0;
color: inherit;
@ -1036,11 +1036,11 @@ onUnmounted(() => {
.menu-new-badge {
flex-shrink: 0;
font-size: 10px;
font-size: var(--app-text-2xs);
font-weight: 600;
line-height: 1.2;
padding: 2px 5px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: var(--td-brand-color-light);
color: var(--td-brand-color);
letter-spacing: 0.02em;
@ -1056,7 +1056,7 @@ onUnmounted(() => {
height: 16px;
color: var(--td-text-color-disabled);
flex-shrink: 0;
transition: color 0.2s ease;
transition: color var(--app-motion-base) ease;
pointer-events: none;
}
@ -1080,7 +1080,7 @@ onUnmounted(() => {
// 下拉动画
.dropdown-enter-active,
.dropdown-leave-active {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
transition: all var(--app-motion-base) cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-enter-from,
@ -1110,7 +1110,7 @@ onUnmounted(() => {
flex-direction: column;
background: var(--td-bg-color-container);
border: 0.5px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
// Pointer bridge so the user can slide off the menu item onto the panel
// without hitting the gap and triggering mouseleave-hide.
@ -1119,7 +1119,7 @@ onUnmounted(() => {
.tenant-submenu-header {
padding: 8px 12px 6px;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
color: var(--td-text-color-secondary);
border-bottom: 0.5px solid var(--td-component-stroke);
@ -1135,9 +1135,9 @@ onUnmounted(() => {
align-items: center;
gap: 8px;
padding: 7px 8px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
transition: background 0.15s;
transition: background var(--app-motion-fast);
&:hover {
background: var(--td-bg-color-secondarycontainer);
@ -1157,12 +1157,12 @@ onUnmounted(() => {
.tenant-submenu-item-avatar {
width: 28px;
height: 28px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-secondarycontainer);
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-secondary);
flex-shrink: 0;
@ -1182,7 +1182,7 @@ onUnmounted(() => {
}
.tenant-submenu-item-name {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
white-space: nowrap;
overflow: hidden;
@ -1203,7 +1203,7 @@ onUnmounted(() => {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
.tenant-submenu-item-role-icon {
@ -1215,11 +1215,11 @@ onUnmounted(() => {
.tenant-submenu-item-badge {
flex-shrink: 0;
font-size: 10px;
font-size: var(--app-text-2xs);
font-weight: 600;
line-height: 1.2;
padding: 2px 6px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: var(--td-bg-color-component);
color: var(--td-text-color-secondary);
}
@ -1251,7 +1251,7 @@ onUnmounted(() => {
.tenant-submenu-empty {
padding: 12px 10px;
text-align: center;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
@ -1262,19 +1262,19 @@ onUnmounted(() => {
padding: 8px 10px;
margin: 3px 4px 5px;
border-top: .5px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
cursor: pointer;
color: var(--td-brand-color);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
transition: background 0.15s;
transition: background var(--app-motion-fast);
&:hover {
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
}
.tenant-submenu-create-icon {
font-size: 16px;
font-size: var(--app-text-xl);
flex-shrink: 0;
}
@ -1283,7 +1283,7 @@ onUnmounted(() => {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
font-size: var(--app-text-sm);
}
}
}

View File

@ -72,40 +72,40 @@ const displayName = computed(() => {
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 4px;
font-size: 12px;
border-radius: var(--app-radius-xs);
font-size: var(--app-text-sm);
line-height: 1.4;
background: var(--td-bg-color-component, #f5f7fa);
color: var(--td-text-color-primary, #1d2129);
background: var(--td-bg-color-component);
color: var(--td-text-color-primary);
}
.vs-badge-env {
background: var(--td-brand-color-1, #ecf2fe);
color: var(--td-brand-color-7, #0052d9);
background: var(--td-brand-color-1);
color: var(--td-brand-color-7);
}
.vs-badge-user {
background: var(--td-success-color-1, #e8f8f2);
color: var(--td-success-color-7, #00754a);
background: var(--td-success-color-1);
color: var(--td-success-color-7);
}
.vs-badge-shared {
background: var(--td-warning-color-1, #fff1e9);
color: var(--td-warning-color-7, #b85b00);
background: var(--td-warning-color-1);
color: var(--td-warning-color-7);
}
.vs-badge-warn {
background: var(--td-error-color-1, #fde9e6);
color: var(--td-error-color-7, #b32700);
background: var(--td-error-color-1);
color: var(--td-error-color-7);
}
.vs-badge-icon {
font-size: 14px;
font-size: var(--app-text-base);
}
.vs-badge-engine {
opacity: 0.7;
font-size: 11px;
font-size: var(--app-text-xs);
}
.vs-badge-warn-tag {

View File

@ -84,7 +84,7 @@ test('highlights visible messages without losing them when previewing another ti
})
test('keeps the preview card at 13px instead of inheriting the chat 20px type', () => {
assert.match(component, /font-size: 13px/)
assert.match(component, /font-size: (?:13px|var\(--app-text-md\))/)
assert.doesNotMatch(component, /font: inherit/)
assert.match(component, /--td-text-color-primary/)
})

View File

@ -304,7 +304,7 @@ onBeforeUnmount(() => {
align-items: stretch;
transform: translateY(-50%);
pointer-events: none;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.45;
}
@ -340,7 +340,7 @@ onBeforeUnmount(() => {
opacity: 0.4;
transform: translateY(-50%);
transform-origin: left center;
transition: transform 120ms ease-out, background 120ms ease-out, opacity 120ms ease-out;
transition: transform var(--app-motion-instant) ease-out, background var(--app-motion-instant) ease-out, opacity var(--app-motion-instant) ease-out;
}
.question-minimap__tick--active {
@ -361,7 +361,7 @@ onBeforeUnmount(() => {
overflow: hidden;
scrollbar-width: none;
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-container);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
transform: translateY(-50%);
@ -375,7 +375,7 @@ onBeforeUnmount(() => {
.question-minimap__question,
.question-minimap__answer {
margin: 0;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 400;
line-height: 1.45;
}

View File

@ -72,7 +72,7 @@ const dismiss = () => {
margin-right: auto;
padding: 12px;
border: 1px solid var(--td-component-stroke);
border-radius: 12px;
border-radius: var(--app-radius-xl);
background: var(--td-bg-color-secondarycontainer);
}
.follow-ups__header {
@ -81,7 +81,7 @@ const dismiss = () => {
justify-content: space-between;
margin-bottom: 8px;
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
}
.follow-ups__title {
@ -93,7 +93,7 @@ const dismiss = () => {
width: 14px;
height: 14px;
color: var(--td-text-color-placeholder);
font-size: 14px;
font-size: var(--app-text-base);
}
.follow-ups__actions { display: flex; gap: 4px; }
.follow-ups__actions button {
@ -102,14 +102,14 @@ const dismiss = () => {
gap: 4px;
padding: 4px 8px;
border: 0;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
transition: background-color .2s, color .2s;
transition: background-color var(--app-motion-base), color var(--app-motion-base);
}
.follow-ups__actions button:hover:not(:disabled) {
background: var(--td-bg-color-container-hover, rgba(0, 0, 0, .06));
background: var(--td-bg-color-container-hover);
color: var(--td-brand-color);
}
.follow-ups__actions button:disabled {
@ -125,20 +125,19 @@ const dismiss = () => {
width: 100%;
padding: 9px 11px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
color: var(--td-text-color-primary);
text-align: left;
cursor: pointer;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background var(--app-motion-base) ease;
}
.follow-ups__item:hover {
.suggestion-chip-hover();
}
.follow-ups__item:hover .t-icon { color: var(--td-text-color-secondary); }
.is-spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-spinning { animation: wk-spin 1s linear infinite; }
.follow-up-card-enter-active {
transform-origin: left top;

View File

@ -38,7 +38,7 @@ const label = computed(() => {
width: 100%;
padding: 4px 0 8px;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
font-variant-numeric: tabular-nums;
line-height: 20px;
text-align: center;

View File

@ -299,7 +299,7 @@ function startResize(event: MouseEvent) {
bottom: 0;
width: 1px;
background: transparent;
transition: background-color 0.15s ease;
transition: background-color var(--app-motion-fast) ease;
}
&:hover::after,
@ -314,13 +314,13 @@ function startResize(event: MouseEvent) {
color: var(--td-text-color-secondary);
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--app-radius-md);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: background 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
&:hover {
background: color-mix(in srgb, var(--td-text-color-primary) 8%, var(--td-bg-color-secondarycontainer));
@ -351,13 +351,13 @@ function startResize(event: MouseEvent) {
gap: 6px;
padding: 6px 10px;
border: 0;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
cursor: pointer;
white-space: nowrap;
transition: background-color 0.15s ease, color 0.15s ease;
transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
&:hover {
color: var(--td-text-color-primary);
@ -380,10 +380,10 @@ function startResize(event: MouseEvent) {
min-width: 16px;
height: 16px;
padding: 0 5px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: color-mix(in srgb, var(--td-text-color-primary) 8%, transparent);
color: var(--td-text-color-secondary);
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 16px;
text-align: center;
font-variant-numeric: tabular-nums;
@ -417,7 +417,7 @@ function startResize(event: MouseEvent) {
justify-content: center;
gap: 10px;
color: var(--td-text-color-placeholder);
font-size: 13px;
font-size: var(--app-text-md);
p {
margin: 0;

View File

@ -340,7 +340,7 @@ onBeforeUnmount(() => {
}
.credential-row-label {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
margin-bottom: 4px;
@ -364,9 +364,9 @@ onBeforeUnmount(() => {
padding: 0 4px 0 12px;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-border);
border-radius: 6px;
font-size: 13px;
transition: border-color 0.15s ease, background-color 0.15s ease;
border-radius: var(--app-radius-sm);
font-size: var(--app-text-md);
transition: border-color var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease;
&:hover {
border-color: var(--td-brand-color-hover);
@ -458,7 +458,7 @@ onBeforeUnmount(() => {
.status-icon {
flex-shrink: 0;
font-size: 16px;
font-size: var(--app-text-xl);
&.success {
color: var(--td-success-color);
@ -488,8 +488,8 @@ onBeforeUnmount(() => {
:deep(.t-button--variant-text) {
height: 24px;
padding: 0 8px;
font-size: 12px;
border-radius: 4px;
font-size: var(--app-text-sm);
border-radius: var(--app-radius-xs);
}
}
@ -519,7 +519,7 @@ onBeforeUnmount(() => {
:deep(.t-button) {
height: 28px;
padding: 0 12px;
font-size: 12px;
font-size: var(--app-text-sm);
}
}
</style>

View File

@ -5,7 +5,7 @@
margin-bottom: 12px;
.channels-title {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
}
@ -13,8 +13,8 @@
.channels-count {
padding: 2px 8px;
background: var(--td-bg-color-secondarycontainer);
border-radius: 10px;
font-size: 12px;
border-radius: var(--app-radius-lg);
font-size: var(--app-text-sm);
color: var(--td-text-color-disabled);
}
}
@ -45,7 +45,7 @@
min-height: calc(20px + 14px * 1.4 + 4px + 12px * 1.4);
padding: 10px 12px;
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-container);
text-align: left;
font: inherit;
@ -59,12 +59,12 @@
.channel-card__actions:not(.channel-card__actions--spacer) {
opacity: 0;
pointer-events: none;
transition: opacity 0.15s ease;
transition: opacity var(--app-motion-fast) ease;
}
&:hover,
&:focus-visible {
border-color: var(--td-brand-color-3, var(--td-brand-color));
border-color: var(--td-brand-color-3);
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
outline: none;
}
@ -108,11 +108,11 @@
.channel-card__badge {
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
font-size: 20px;
font-size: var(--app-text-3xl);
}
.channel-card__title {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: inherit;
}
@ -122,7 +122,7 @@
flex-shrink: 0;
width: 36px;
height: 36px;
border-radius: 8px;
border-radius: var(--app-radius-md);
display: flex;
align-items: center;
justify-content: center;
@ -153,7 +153,7 @@
flex: 1;
min-width: 0;
margin: 0;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -165,7 +165,7 @@
&__agent-name {
display: block;
margin-top: 4px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.4;
color: var(--td-text-color-placeholder);
overflow: hidden;

View File

@ -5,7 +5,7 @@
gap: 2px;
vertical-align: baseline;
box-sizing: border-box;
border-radius: 999px;
border-radius: var(--app-radius-pill);
padding: 0 5px;
font-size: 0.72em;
line-height: 1.45;
@ -55,7 +55,7 @@
cursor: pointer;
white-space: nowrap;
position: relative;
transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
}
:deep(.citation-kb:hover) {
@ -73,7 +73,7 @@
white-space: nowrap;
position: relative;
text-decoration: none;
transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
transition: background var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
}
:deep(.citation-web:hover) {
@ -97,7 +97,7 @@
border-bottom: 1px dashed var(--td-brand-color);
text-decoration: none;
font-weight: 500;
transition: border-bottom-style 0.15s ease;
transition: border-bottom-style var(--app-motion-fast) ease;
&:hover {
border-bottom-style: solid;
@ -117,10 +117,10 @@
z-index: 10000;
max-width: 320px;
padding: 10px 12px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-primary);

View File

@ -8,7 +8,7 @@ const here = dirname(fileURLToPath(import.meta.url))
const css = readFileSync(join(here, 'chat-citations.less'), 'utf8')
test('citation pills use compact baseline-aligned source styling', () => {
assert.match(css, /border-radius:\s*999px/)
assert.match(css, /border-radius:\s*(?:999px|var\(--app-radius-pill\))/)
assert.match(css, /font-size:\s*0\.72em/)
assert.match(css, /box-shadow:\s*inset 0 0 0 1px/)
})

View File

@ -11,7 +11,7 @@
// Tuned against ChatGPT markdown test doc: 16px body, 24px line-height on paragraphs,
// stepped headings, dotted links, light tables, pill inline code, kbd chips.
.chat-markdown-typography() {
font-size: 16px;
font-size: var(--app-text-xl);
color: var(--td-text-color-primary);
line-height: 1.625;
letter-spacing: normal;
@ -116,7 +116,7 @@
:deep(code):not(pre code) {
background: color-mix(in srgb, var(--td-text-color-primary) 8%, transparent);
padding: 0.15em 0.3em;
border-radius: 4px;
border-radius: var(--app-radius-xs);
font-family: var(--app-font-family-mono);
font-size: 0.875em;
font-weight: 500;
@ -126,11 +126,11 @@
background: var(--td-bg-color-secondarycontainer);
padding: 14px 16px;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
overflow-x: auto;
margin: 0.75em 0;
line-height: 1.55;
font-size: 13px;
font-size: var(--app-text-md);
code {
background: none;
@ -143,7 +143,7 @@
:deep(.chat-code-block) {
margin: 0.75em 0;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
overflow: hidden;
background: var(--td-bg-color-container);
box-shadow: 0 1px 2px color-mix(in srgb, var(--td-text-color-primary) 6%, transparent);
@ -161,7 +161,7 @@
}
:deep(.chat-code-block__lang) {
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
line-height: 1.2;
color: var(--td-text-color-secondary);
@ -176,14 +176,14 @@
margin: 0;
padding: 4px 8px;
border: 1px solid transparent;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 1;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;
&:hover {
background: color-mix(in srgb, var(--td-text-color-primary) 6%, var(--td-bg-color-secondarycontainer));
@ -210,7 +210,7 @@
border-radius: 0;
background: color-mix(in srgb, var(--td-bg-color-secondarycontainer) 88%, var(--td-bg-color-container));
overflow-x: auto;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.55;
code {
@ -227,7 +227,7 @@
:deep(.chat-mermaid-block) {
margin: 0.75em 0;
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
overflow: hidden;
background: var(--td-bg-color-container);
box-shadow: 0 1px 3px color-mix(in srgb, var(--td-text-color-primary) 5%, transparent);
@ -248,7 +248,7 @@
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
@ -264,11 +264,11 @@
margin: 0;
padding: 0;
border: 1px solid transparent;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;
&:hover:not(:disabled) {
background: color-mix(in srgb, var(--td-text-color-primary) 6%, var(--td-bg-color-secondarycontainer));
@ -330,7 +330,7 @@
margin: 0.75em 0;
padding: 20px 16px;
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-secondarycontainer);
overflow-x: auto;
text-align: center;
@ -516,7 +516,7 @@
margin: 0.875em 0 1em;
overflow-x: auto;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
-webkit-overflow-scrolling: touch;
}
@ -526,7 +526,7 @@
border-collapse: separate;
border-spacing: 0;
display: table;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.55;
width: max-content;
min-width: 0;
@ -586,13 +586,13 @@
max-height: 300px;
width: auto;
height: auto;
border-radius: 8px;
border-radius: var(--app-radius-md);
display: block;
margin: 1.25em 0;
border: 0.5px solid var(--td-component-stroke);
object-fit: contain;
cursor: pointer;
transition: transform 0.2s ease;
transition: transform var(--app-motion-base) ease;
}
// Protected images not yet hydrated still carry the 1x1 placeholder gif.
@ -614,9 +614,9 @@
cursor: default;
background: linear-gradient(
100deg,
var(--td-bg-color-secondarycontainer, #f3f3f3) 30%,
var(--td-bg-color-container-hover, #eaeaea) 50%,
var(--td-bg-color-secondarycontainer, #f3f3f3) 70%
var(--td-bg-color-secondarycontainer) 30%,
var(--td-bg-color-container-hover) 50%,
var(--td-bg-color-secondarycontainer) 70%
);
background-size: 200% 100%;
animation: chat-img-skeleton 1.2s ease-in-out infinite;
@ -651,12 +651,12 @@
margin: 0.75em 0;
box-sizing: border-box;
padding: 12px 8px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: transparent;
cursor: pointer;
vertical-align: middle;
text-align: left;
transition: background 0.15s ease;
transition: background var(--app-motion-fast) ease;
&:hover {
background: var(--td-bg-color-container-hover);
@ -698,7 +698,7 @@
}
:deep(.artifact-ref-card__name) {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
letter-spacing: 0.01em;
line-height: 1.35;
@ -710,7 +710,7 @@
:deep(.artifact-ref-card__hint) {
margin-top: 2px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.3;
color: var(--td-text-color-placeholder);
}

View File

@ -6,23 +6,24 @@
justify-content: flex-start;
gap: 4px;
margin-top: 6px;
margin-left: -7px;
min-height: 30px;
margin-left: -6px;
min-height: 28px;
color: var(--td-text-color-primary);
// 与用户消息的操作键、输入框控制键同规格:28px、6px 圆角
:deep(.t-button) {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: auto;
width: 30px;
height: 30px;
width: 28px;
height: 28px;
padding: 0;
border: none;
border-radius: 8px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
transition: background-color 0.15s ease, color 0.15s ease;
transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
.t-button__content {
display: inline-flex !important;
@ -44,7 +45,7 @@
opacity: 1;
align-items: center;
justify-content: center;
font-size: 16px;
font-size: var(--app-text-xl);
width: 16px;
height: 16px;
flex-shrink: 0;
@ -105,17 +106,7 @@
}
.answer-toolbar__artifact-spinner {
animation: answer-toolbar-artifact-spin 0.8s linear infinite;
}
@keyframes answer-toolbar-artifact-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
animation: wk-spin 0.8s linear infinite;
}
@keyframes artifact-toolbar-arrive {
@ -147,7 +138,7 @@
border-radius: 7px;
background: var(--td-brand-color);
color: var(--td-text-color-anti);
font-size: 10px;
font-size: var(--app-text-2xs);
font-weight: 600;
line-height: 1;
font-variant-numeric: tabular-nums;
@ -190,7 +181,7 @@
padding-left: 9px;
border-left: 1px solid var(--td-component-stroke);
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 18px;
white-space: nowrap;
@ -198,7 +189,7 @@
flex: none;
width: 14px;
height: 14px;
font-size: 14px;
font-size: var(--app-text-base);
}
.answer-toolbar__follow-up-label {
@ -256,7 +247,7 @@
width: clamp(150px, 30vw, 260px);
max-width: 100%;
aspect-ratio: 4 / 3;
border-radius: 10px;
border-radius: var(--app-radius-lg);
border: 1px solid rgba(175, 190, 210, 0.55);
background: linear-gradient(
145deg,

View File

@ -28,9 +28,9 @@
min-height: 26px;
max-width: 200px;
padding: 3px 8px;
border-radius: var(--td-radius-medium, 6px);
border-radius: var(--td-radius-medium);
box-sizing: border-box;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
line-height: 18px;
cursor: default;
@ -68,7 +68,7 @@
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 14px;
font-size: var(--app-text-base);
}
.tag_name {

View File

@ -13,7 +13,7 @@
margin: 16px 0;
padding: 16px;
background: var(--td-bg-color-secondarycontainer);
border-radius: 8px;
border-radius: var(--app-radius-md);
overflow-x: auto;
text-align: center;
@ -33,8 +33,8 @@
font-weight: bold;
color: var(--td-text-color-primary);
font-family: var(--app-font-family);
transition: all 0.2s ease-out;
font-size: 20px;
transition: all var(--app-motion-base) ease-out;
font-size: var(--app-text-3xl);
}
.hljs-title,
@ -91,22 +91,22 @@
ol,
dl,
table {
font-size: 14px;
font-size: var(--app-text-base);
margin: 10px 0;
font-family: var(--app-font-family);
}
h2 {
font-size: 18px;
font-size: var(--app-text-2xl);
}
h3 {
font-size: 16px;
font-size: var(--app-text-xl);
font-weight: 500;
}
summary {
font-size: 14px;
font-size: var(--app-text-base);
cursor: pointer;
}
@ -208,7 +208,7 @@
table {
padding: 0;
word-break: initial;
/* border-radius: 4px; */
/* border-radius: var(--app-radius-xs); */
border-collapse: collapse;
border-spacing: 0;
width: 100%;
@ -257,7 +257,7 @@
}
figure {
border-radius: 8px;
border-radius: var(--app-radius-md);
margin-left: 0;
margin-right: 0;
background: var(--td-bg-color-container);
@ -271,7 +271,7 @@
@media print {
html {
font-size: 13px;
font-size: var(--app-text-md);
}
table,
@ -367,7 +367,7 @@
}
.code-tooltip {
border-radius: 4px;
border-radius: var(--app-radius-xs);
border: 1px solid var(--td-component-stroke);
background-color: var(--td-bg-color-secondarycontainer);
}
@ -387,11 +387,11 @@
h6.md-end-block.md-heading:after {
color: var(--td-text-color-disabled) !important;
border: 1px solid;
border-radius: 4px;
border-radius: var(--app-radius-xs);
position: absolute;
left: -2.5rem;
float: left;
font-size: 14px;
font-size: var(--app-text-base);
padding-left: 4px;
padding-right: 5px;
vertical-align: bottom;

View File

@ -0,0 +1,161 @@
// 设置区「提供方卡片」(模型 / 向量库 / 网络搜索 / 存储后端 / 解析引擎 / 沙箱 / MCP / 技能)共用的视觉规范。
// 页面保留自己的 BEM 前缀(.model-card__badge 等),把重复声明换成这里的 mixin。
//
// @import (reference) '@/components/css/provider-card.less';
// .model-card { .provider-card(); &--add { .provider-card-add(); } }
// .model-card__badge { .provider-card-badge(); }
// .model-card--chat .model-card__badge { .provider-card-badge-color(#0052d9); }
.provider-card() {
position: relative;
display: flex;
align-items: flex-start;
gap: 12px;
min-width: 0;
padding: 14px 16px;
border: 1px solid var(--td-component-stroke);
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-container);
transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
// 可点击(进入编辑)的卡片 hover / focus 反馈
.provider-card-interactive() {
cursor: pointer;
&:hover {
border-color: var(--td-brand-color-3);
box-shadow: 0 4px 14px color-mix(in srgb, var(--td-text-color-primary) 6%, transparent);
}
&:focus-visible {
outline: 2px solid var(--td-brand-color);
outline-offset: 2px;
}
}
// 虚线「新增」卡片
.provider-card-add() {
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 68px;
border-style: dashed;
background: transparent;
color: var(--td-text-color-placeholder);
cursor: pointer;
font: inherit;
text-align: center;
&:hover,
&:focus-visible {
color: var(--td-brand-color);
border-color: var(--td-brand-color);
background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);
}
}
// 左侧徽标:默认 36px;MCP / 技能等紧凑卡片传 26px
.provider-card-badge(@size: 36px, @radius: 9px) {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: @size;
height: @size;
border-radius: @radius;
margin-top: 1px;
font-size: var(--app-text-lg);
font-weight: 600;
letter-spacing: 0.02em;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
&--logo {
background: var(--td-bg-color-container);
box-shadow: inset 0 0 0 1px var(--td-component-stroke);
}
&--mono::before {
content: '';
width: 22px;
height: 22px;
background-color: currentColor;
-webkit-mask-image: var(--logo-url);
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: contain;
mask-image: var(--logo-url);
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
}
}
// 厂商品牌色:前景向文字主色靠拢(深色模式下自动变亮),底色为同色 12% 透明叠加
.provider-card-badge-color(@c) {
color: color-mix(in srgb, @c 75%, var(--td-text-color-primary));
background: color-mix(in srgb, @c 12%, transparent);
}
.provider-card-badge-img() {
width: 24px;
height: 24px;
object-fit: contain;
display: block;
}
.provider-card-body() {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.provider-card-header() {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.provider-card-title() {
flex: 1;
min-width: 0;
margin: 0;
font-size: var(--app-text-base);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.provider-card-subtitle() {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px;
min-width: 0;
font-size: var(--app-text-sm);
line-height: 1.4;
color: var(--td-text-color-secondary);
}
// 右上角「更多」:hover / 聚焦时显现
.provider-card-more() {
flex-shrink: 0;
padding: 2px;
color: var(--td-text-color-placeholder);
opacity: 0;
transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease;
&:hover,
&:focus-visible {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
}
}

View File

@ -0,0 +1,231 @@
// 列表页资源卡片(知识库 / 智能体 / 共享空间)共用的视觉规范。
// 以 mixin 形式提供,消费方保留自己的根 class(.kb-card / .agent-card / .org-card)
// 与特有变体(类型渐变、收藏星标、装饰图案),基础尺寸、hover、更多按钮、徽标由这里统一。
//
// 用法(在消费方 <style lang="less" scoped> 内):
// @import (reference) '@/components/css/resource-card.less';
// .kb-card-wrap { .resource-card-grid(); }
// .kb-card { .resource-card(); /* 变体… */ }
// .feature-badge { .resource-feature-badge(); /* 语义色变体… */ }
.resource-card-grid() {
display: grid;
gap: 12px;
grid-template-columns: 1fr;
animation: contentFadeIn 0.32s ease-out;
}
.resource-card() {
position: relative;
display: flex;
flex-direction: column;
box-sizing: border-box;
height: 136px;
min-height: 136px;
padding: 12px 14px;
border: 1px solid var(--td-component-stroke);
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
overflow: hidden;
cursor: pointer;
transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background var(--app-motion-base) ease;
&:hover {
border-color: var(--td-brand-color);
box-shadow: 0 4px 12px color-mix(in srgb, var(--td-brand-color) 12%, transparent);
}
&.is-skeleton {
cursor: default;
.card-header {
margin-bottom: 12px;
}
.card-content {
flex: 1;
}
.card-bottom {
margin-top: auto;
}
}
// 内容永远压在装饰图案之上
.card-header,
.card-content,
.card-bottom {
position: relative;
z-index: 1;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 4px;
margin-bottom: 6px;
}
.card-header-left {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}
.card-title-block {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
min-width: 0;
}
.card-title {
display: flex;
align-items: center;
gap: 6px;
flex: 1;
min-width: 0;
color: var(--td-text-color-primary);
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 22px;
letter-spacing: 0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card-title-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.permission-tag {
flex-shrink: 0;
}
// 「更多」按钮:hover 卡片时半透明出现,hover 自身时完全不透明
.more-wrap,
.card-more-btn {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
flex-shrink: 0;
border-radius: var(--app-radius-sm);
color: var(--td-text-color-placeholder);
cursor: pointer;
opacity: 0;
transition: background var(--app-motion-base) ease, opacity var(--app-motion-base) ease, color var(--app-motion-base) ease;
&:hover,
&.active-more {
background: var(--td-bg-color-container-hover);
color: var(--td-text-color-secondary);
opacity: 1;
}
.more-icon {
width: 16px;
height: 16px;
}
}
&:hover .more-wrap,
&:hover .card-more-btn {
opacity: 0.6;
}
&:hover .more-wrap:hover,
&:hover .more-wrap.active-more,
&:hover .card-more-btn:hover,
&:hover .card-more-btn.active-more {
opacity: 1;
}
// 触屏没有 hover,保持可见
@media (hover: none) {
.more-wrap,
.card-more-btn {
opacity: 0.6;
}
}
.card-content {
flex: 1;
min-height: 0;
margin-bottom: 6px;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 6px;
}
.card-description {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
color: var(--td-text-color-secondary);
font-size: var(--app-text-sm);
font-weight: 400;
line-height: 17px;
}
.card-bottom {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: auto;
padding-top: 6px;
border-top: 0.5px solid var(--td-component-stroke);
}
.card-time {
color: var(--td-text-color-placeholder);
font-size: var(--app-text-sm);
font-weight: 400;
}
.feature-badges {
display: flex;
align-items: center;
gap: 4px;
}
}
// 卡片底部的小徽标:图标独占时 22×22,带计数时自适应宽度
.resource-feature-badge() {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
height: 22px;
min-width: 22px;
padding: 0 5px;
box-sizing: border-box;
border-radius: 5px;
font-size: var(--app-text-xs);
font-weight: 500;
cursor: default;
transition: background var(--app-motion-base) ease;
.t-icon {
flex-shrink: 0;
}
.badge-count {
font-size: var(--app-text-xs);
font-weight: 500;
line-height: 1;
}
}

View File

@ -0,0 +1,97 @@
// 设置区(views/settings、views/system、views/integrations)各页面共用的版式 mixin:
// 页面标题块、设置行、行内说明 / 控件列、行内保存状态。
// 页面保留自己的 class 名,只把重复声明换成 mixin 调用,需要偏离时在调用后覆盖。
//
// @import (reference) '@/components/css/settings-section.less';
// .section-header { .settings-section-header(); }
// .setting-row { .setting-row(); }
// .setting-info { .setting-info(); }
// .setting-control { .setting-control(); }
.settings-section-header() {
margin-bottom: 28px;
h2 {
margin: 0 0 8px;
color: var(--td-text-color-primary);
font-size: var(--app-text-3xl);
font-weight: 600;
line-height: 28px;
}
.section-description {
margin: 0;
color: var(--td-text-color-secondary);
font-size: var(--app-text-base);
line-height: 1.5;
}
// 标题左、操作按钮右
&__top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}
}
.setting-row() {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
padding: 20px 0;
border-bottom: 1px solid var(--td-component-stroke);
&:last-child {
border-bottom: none;
}
}
.setting-info() {
flex: 1;
min-width: 0;
max-width: 65%;
label,
.setting-label {
display: block;
margin-bottom: 4px;
color: var(--td-text-color-primary);
font-size: var(--app-text-lg);
font-weight: 500;
line-height: 1.4;
}
.desc,
.setting-desc {
margin: 0;
color: var(--td-text-color-secondary);
font-size: var(--app-text-md);
line-height: 1.5;
}
}
.setting-control() {
flex-shrink: 0;
min-width: 280px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
}
// 改即存设置项的行内反馈(替代 toast)
.setting-save-state() {
display: inline-flex;
align-items: center;
gap: 5px;
flex-shrink: 0;
min-width: 52px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
&--success {
color: var(--td-success-color);
}
}

View File

@ -49,7 +49,7 @@
}
.suggested-questions-title {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-placeholder);
font-weight: 400;
letter-spacing: 0.01em;
@ -64,14 +64,14 @@
height: 20px;
padding: 0;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-placeholder);
cursor: pointer;
transition: color 0.2s @suggested-ease, background 0.2s @suggested-ease;
transition: color var(--app-motion-base) @suggested-ease, background var(--app-motion-base) @suggested-ease;
:deep(.t-icon) {
font-size: 12px;
font-size: var(--app-text-sm);
}
&:hover:not(:disabled) {
@ -90,17 +90,7 @@
}
.sq-refresh-spin {
animation: sq-refresh-rotate 0.8s linear infinite;
}
@keyframes sq-refresh-rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
animation: wk-spin 0.8s linear infinite;
}
.suggested-questions-grid {
@ -121,13 +111,13 @@
width: auto;
box-sizing: border-box;
padding: 8px 14px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
border: 1px solid var(--td-component-stroke);
background: var(--td-bg-color-container);
cursor: pointer;
overflow: hidden;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background var(--app-motion-base) ease;
&:not(.sq-card-skeleton):hover {
.suggestion-chip-hover();
@ -179,7 +169,7 @@
position: relative;
flex: 0 1 auto;
min-width: 0;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
color: var(--td-text-color-primary);
overflow: hidden;
@ -191,10 +181,10 @@
position: relative;
flex-shrink: 0;
padding: 1px 6px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
border: none;
background: var(--td-brand-color-light);
font-size: 10px;
font-size: var(--app-text-2xs);
font-weight: 600;
line-height: 1.6;
letter-spacing: 0.04em;

View File

@ -0,0 +1,200 @@
// Wiki 图谱/阅读抽屉的全局样式。抽屉通过 attach="body" 传送,无法用 scoped 覆盖。
// 同时被 views/chat/components/AgentStreamDisplay.vue 与 views/knowledge/wiki/WikiBrowser.vue 引入,
// 保证任一页面先加载时样式都存在。
.wiki-graph-drawer {
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
.wiki-reader-meta {
display: flex;
align-items: center;
gap: 12px;
}
.wiki-reader-meta-text {
font-size: var(--app-text-md);
color: var(--td-text-color-placeholder);
}
// Wiki drawer is a non-chat reader surface. Chat answer Markdown styles are
// centralized in chat-markdown.less; do not copy these rules into chat message components.
.wiki-reader-body {
line-height: 1.6;
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
h1 {
font-size: var(--app-text-4xl);
margin: 28px 0 16px;
font-weight: 600;
line-height: 1.4;
}
h2 {
font-size: var(--app-text-2xl);
margin: 24px 0 12px;
font-weight: 600;
line-height: 1.4;
}
h3 {
font-size: var(--app-text-xl);
margin: 20px 0 10px;
font-weight: 600;
line-height: 1.5;
}
h4,
h5,
h6 {
font-size: var(--app-text-base);
margin: 16px 0 8px;
font-weight: 600;
line-height: 1.5;
}
p {
margin: 0 0 14px;
}
ul,
ol {
margin: 0 0 14px;
padding-left: 24px;
}
li {
margin-bottom: 6px;
line-height: 1.6;
}
li>p {
margin-bottom: 6px;
}
blockquote {
margin: 0 0 14px;
padding: 10px 16px;
background: var(--td-bg-color-secondarycontainer);
border-left: 4px solid var(--td-component-border);
border-radius: 0 4px 4px 0;
color: var(--td-text-color-secondary);
}
code {
font-family: var(--app-font-family-mono);
font-size: var(--app-text-md);
padding: 2px 4px;
background: var(--td-bg-color-secondarycontainer);
border-radius: var(--app-radius-xs);
color: var(--td-brand-color);
}
pre {
margin: 0 0 14px;
padding: 12px 16px;
background: var(--td-bg-color-secondarycontainer);
border-radius: var(--app-radius-sm);
overflow-x: auto;
code {
padding: 0;
background: transparent;
color: inherit;
}
}
p:has(img) {
text-align: center;
color: var(--td-text-color-secondary);
font-size: var(--app-text-md);
margin-top: 16px;
margin-bottom: 24px;
img {
max-width: 100%;
max-height: 400px;
object-fit: contain;
border-radius: var(--app-radius-sm);
display: block;
margin: 0 auto 8px;
cursor: zoom-in;
transition: opacity var(--app-motion-base);
&:hover {
opacity: 0.9;
}
}
}
a.wiki-content-link {
color: var(--td-brand-color);
text-decoration: none;
border-bottom: 1px dashed var(--td-brand-color);
cursor: pointer;
font-weight: 500;
&:hover {
border-bottom-style: solid;
text-decoration: none !important;
}
}
.chat-markdown-table {
width: fit-content;
max-width: 100%;
overflow-x: auto;
margin: 0 0 16px;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: var(--app-radius-sm);
-webkit-overflow-scrolling: touch;
}
table {
display: table;
width: max-content;
min-width: 0;
border-collapse: separate;
border-spacing: 0;
font-size: var(--app-text-md);
line-height: 1.55;
}
table thead {
background: var(--td-bg-color-secondarycontainer);
}
table th,
table td {
padding: 8px 12px;
border-bottom: 1px solid var(--td-component-stroke);
border-right: 1px solid var(--td-component-stroke);
text-align: left;
vertical-align: top;
word-break: break-word;
}
table th {
font-weight: 600;
color: var(--td-text-color-primary);
white-space: nowrap;
}
table th:last-child,
table td:last-child {
border-right: none;
}
table tbody tr:last-child td {
border-bottom: none;
}
table tbody tr:hover {
background: var(--td-bg-color-secondarycontainer);
}
table code {
font-size: var(--app-text-sm);
}
}
}

View File

@ -1985,6 +1985,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
</t-tooltip>
<t-popconfirm v-if="canDeleteGeneratedQuestion && !question.id.startsWith('legacy-')"
theme="warning" :content="$t('knowledgeBase.confirmDeleteQuestion')"
:confirm-btn="{ content: $t('common.delete'), theme: 'danger' }"
@confirm="handleDeleteQuestion(chunk.original, index, question)">
<t-button class="icon-action-btn delete-question-btn" theme="default" variant="text"
shape="square" size="small" :loading="isDeleting(index, question.id)">
@ -2180,7 +2181,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
height: 28px;
padding: 0;
color: var(--td-text-color-secondary);
border-radius: 4px;
border-radius: var(--app-radius-xs);
&:hover,
&.is-active {
@ -2200,7 +2201,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
:deep(.code-block-wrapper) {
margin: 12px 0;
border: 1px solid var(--td-component-border);
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-container);
overflow: hidden;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
@ -2211,7 +2212,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
padding: 8px 12px;
background: var(--td-bg-color-secondarycontainer);
border-bottom: 1px solid var(--td-component-stroke);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
color: var(--td-text-color-primary);
}
@ -2221,7 +2222,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
padding: 12px;
background: var(--td-bg-color-secondarycontainer);
overflow: auto;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
code {
@ -2256,9 +2257,9 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
display: flex;
align-items: center;
justify-content: center;
background: rgba(7, 192, 95, 0.1);
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
font-size: 16px;
font-size: var(--app-text-xl);
}
.doc-drawer-header-text {
@ -2267,7 +2268,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
}
.doc-drawer-header-title {
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -2300,7 +2301,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
}
.doc-drawer-body .setting-drawer__section-title {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-primary);
margin: 0 0 4px;
@ -2334,7 +2335,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.doc-detail-label {
flex: 0 0 72px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
}
@ -2345,7 +2346,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
flex-wrap: wrap;
align-items: center;
gap: 6px;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
word-break: break-word;
}
@ -2363,7 +2364,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.metadata-count {
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 400;
}
@ -2385,7 +2386,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.summary-refreshing-indicator {
gap: 5px;
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
white-space: nowrap;
}
@ -2413,7 +2414,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.metadata-item-key {
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
&::after {
content: ':';
@ -2422,7 +2423,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.metadata-item-value {
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
}
.metadata-empty-action,
@ -2435,12 +2436,12 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
min-height: 28px;
padding: 0 4px;
border: none;
border-radius: 4px;
border-radius: var(--app-radius-xs);
color: var(--td-text-color-secondary);
background: transparent;
cursor: pointer;
font: inherit;
font-size: 12px;
font-size: var(--app-text-sm);
&:hover {
color: var(--td-brand-color);
@ -2480,7 +2481,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
border-radius: 3px;
color: var(--td-text-color-placeholder);
background: var(--td-bg-color-component-disabled);
font-size: 13px;
font-size: var(--app-text-md);
line-height: 30px;
}
@ -2540,8 +2541,8 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
padding: 0;
flex-shrink: 0;
color: var(--td-text-color-secondary);
border-radius: 4px;
transition: background-color 0.15s ease, color 0.15s ease;
border-radius: var(--app-radius-xs);
transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
&:hover {
background: var(--td-bg-color-container-hover);
@ -2590,7 +2591,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
position: relative;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-border);
border-radius: 6px;
border-radius: var(--app-radius-sm);
&.summary_clickable {
cursor: pointer;
@ -2617,7 +2618,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.summary_content {
padding: 12px;
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
word-break: break-word;
white-space: pre-wrap;
@ -2658,14 +2659,14 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
min-height: 42px;
background: var(--td-bg-color-container);
border: 1px dashed var(--td-component-border);
border-radius: 6px;
border-radius: var(--app-radius-sm);
color: var(--td-text-color-placeholder);
font-size: 13px;
font-size: var(--app-text-md);
}
// URL链接区域
.url_link_box {
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: var(--td-bg-color-container-hover);
padding: 8px 12px;
@ -2678,7 +2679,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.url_text {
flex: 1;
font-size: 13px;
font-size: var(--app-text-md);
word-break: break-all;
}
@ -2700,7 +2701,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
max-width: 140px;
height: 20px;
line-height: 20px;
border-radius: 999px;
border-radius: var(--app-radius-pill);
border-color: var(--td-component-stroke);
color: var(--td-text-color-secondary);
padding: 0 8px;
@ -2713,16 +2714,16 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
font-size: 11px;
font-size: var(--app-text-xs);
}
}
.chunk-count {
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
background: var(--td-bg-color-container-hover);
padding: 2px 8px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
flex-shrink: 0;
}
@ -2740,7 +2741,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.no_content {
margin-top: 12px;
color: var(--td-text-color-disabled);
font-size: 13px;
font-size: var(--app-text-md);
padding: 16px;
text-align: center;
}
@ -2753,7 +2754,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
}
.chunk-item {
border-radius: 6px;
border-radius: var(--app-radius-sm);
padding: 12px 14px;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-border);
@ -2784,7 +2785,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.chunk-index {
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
}
@ -2797,7 +2798,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.chunk-meta {
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
}
}
@ -2821,7 +2822,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
gap: 6px;
margin-bottom: 8px;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 500;
}
@ -2829,7 +2830,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
width: min(560px, calc(100vw - 32px));
max-height: min(620px, calc(100vh - 96px));
overflow: hidden;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-container);
}
@ -2847,14 +2848,14 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
align-items: center;
gap: 6px;
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
}
.chunk-history-current {
margin-top: 2px;
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
}
.chunk-history-popup-state {
@ -2864,7 +2865,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
gap: 8px;
min-height: 100px;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
}
.chunk-history-popup-list {
@ -2906,13 +2907,13 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.chunk-history-version {
min-width: 32px;
color: var(--td-text-color-primary);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
}
.chunk-history-time {
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
}
.chunk-history-status-change {
@ -2921,7 +2922,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
gap: 4px;
margin-left: auto;
color: var(--td-text-color-secondary);
font-size: 11px;
font-size: var(--app-text-xs);
}
.chunk-history-row-chevron {
@ -2944,7 +2945,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
gap: 10px;
min-height: 30px;
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
}
.chunk-history-diff-legend {
@ -2954,7 +2955,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
margin: 0;
flex-shrink: 0;
color: var(--td-text-color-placeholder);
font-size: 10px;
font-size: var(--app-text-2xs);
}
.chunk-history-diff-legend-item {
@ -2979,11 +2980,11 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.chunk-history-no-diff {
padding: 12px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
color: var(--td-text-color-placeholder);
background: var(--td-bg-color-container);
text-align: center;
font-size: 12px;
font-size: var(--app-text-sm);
}
.chunk-history-diff-body {
@ -2992,10 +2993,10 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
padding: 8px 0;
overflow: auto;
border: 1px solid var(--td-component-border);
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: var(--td-bg-color-container);
font-family: var(--app-font-family-mono);
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 1.55;
white-space: pre-wrap;
word-break: break-word;
@ -3030,7 +3031,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
width: min(520px, calc(100vw - 32px));
max-height: min(560px, calc(100vh - 96px));
overflow: hidden;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-container);
}
@ -3052,19 +3053,19 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
.chunk-popup-title {
gap: 7px;
color: var(--td-text-color-primary);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
}
.chunk-popup-count {
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 400;
}
.chunk-question-stale-hint {
color: var(--td-warning-color);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 400;
}
@ -3077,7 +3078,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
gap: 8px;
min-height: 120px;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
}
.chunk-context-popup-body {
@ -3085,7 +3086,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
padding: 14px 16px;
overflow: auto;
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
}
.chunk-questions-popup-body {
@ -3112,9 +3113,9 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
min-height: 34px;
padding: 5px 6px;
border-bottom: 1px solid var(--td-component-stroke);
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: transparent;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
line-height: 20px;
@ -3157,7 +3158,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
align-items: center;
gap: 2px;
opacity: 0;
transition: opacity 0.15s ease;
transition: opacity var(--app-motion-fast) ease;
&:focus-within {
opacity: 1;
@ -3179,7 +3180,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
gap: 8px;
padding: 20px 8px 12px;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
}
.question-composer {
@ -3197,7 +3198,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
margin-bottom: 16px;
padding: 12px 16px;
background: var(--td-bg-color-container-hover);
border-radius: 6px;
border-radius: var(--app-radius-sm);
border: 1px solid var(--td-component-border);
.audio-player {
@ -3210,7 +3211,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
align-items: center;
gap: 8px;
color: var(--td-text-color-placeholder);
font-size: 13px;
font-size: var(--app-text-md);
padding: 4px 0;
}
}
@ -3270,7 +3271,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
border-radius: 1px;
background: var(--td-component-border);
opacity: 0.55;
transition: opacity 0.15s ease, background 0.15s ease;
transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
}
.doc-drawer-resize-handle:hover .doc-drawer-resize-line {
@ -3304,7 +3305,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {
border-radius: 1px;
background: var(--td-component-border);
opacity: 0.55;
transition: opacity 0.15s ease, background 0.15s ease;
transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
}
.trace-drawer-resize-handle:hover .trace-drawer-resize-line {

View File

@ -621,7 +621,7 @@ onUnmounted(() => {
<style scoped lang="less">
// ── Design tokens ──
@border-color: var(--td-component-stroke);
@border-radius: 6px;
@border-radius: var(--app-radius-sm);
@bg-white: var(--td-bg-color-container);
@bg-subtle: var(--td-bg-color-container);
@bg-muted: var(--td-bg-color-secondarycontainer);
@ -642,7 +642,7 @@ onUnmounted(() => {
// That produces an extra bit of scroll inside the non-fullscreen preview,
// which is acceptable for document reading. Not worth the complexity of
// inverse-scaling here.
@transition: all 0.2s ease;
@transition: all var(--app-motion-base) ease;
// ── Shared container mixin ──
.preview-container() {
@ -784,7 +784,7 @@ onUnmounted(() => {
text-overflow: ellipsis;
white-space: nowrap;
color: @text-primary;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
}
@ -813,7 +813,7 @@ onUnmounted(() => {
:deep(.t-button__icon) {
margin: 0;
font-size: 16px;
font-size: var(--app-text-xl);
}
}
@ -825,7 +825,7 @@ onUnmounted(() => {
justify-content: center;
padding: 60px 20px;
gap: 16px;
.loading-text { color: @text-tertiary; font-size: 14px; }
.loading-text { color: @text-tertiary; font-size: var(--app-text-base); }
}
.preview-error {
@ -836,7 +836,7 @@ onUnmounted(() => {
padding: 60px 20px;
gap: 12px;
color: @error-color;
p { margin: 0; font-size: 14px; color: @text-secondary; }
p { margin: 0; font-size: var(--app-text-base); color: @text-secondary; }
}
.preview-unsupported {
@ -847,8 +847,8 @@ onUnmounted(() => {
padding: 60px 20px;
gap: 12px;
color: @text-disabled;
p { margin: 0; font-size: 14px; color: @text-secondary; }
.unsupported-hint { font-size: 12px; color: @text-tertiary; }
p { margin: 0; font-size: var(--app-text-base); color: @text-secondary; }
.unsupported-hint { font-size: var(--app-text-sm); color: @text-tertiary; }
}
// ── PDF ──
@ -886,7 +886,7 @@ onUnmounted(() => {
margin: 0;
padding: 16px;
background: @bg-subtle;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.6;
code {
white-space: pre;
@ -928,10 +928,10 @@ onUnmounted(() => {
max-width: 100%;
max-height: calc(100vh - 280px);
border-radius: @border-radius;
box-shadow: 0 2px 12px rgba(7, 192, 95, 0.08);
box-shadow: 0 2px 12px color-mix(in srgb, var(--td-brand-color) 8%, transparent);
object-fit: contain;
}
.image-info { font-size: 12px; color: @text-tertiary; }
.image-info { font-size: var(--app-text-sm); color: @text-tertiary; }
}
}
@ -973,7 +973,7 @@ onUnmounted(() => {
margin: 0;
padding: 16px;
background: @bg-subtle;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.6;
code {
white-space: pre;
@ -995,7 +995,7 @@ onUnmounted(() => {
align-items: center;
gap: 16px;
color: @text-secondary;
.audio-filename { font-size: 14px; color: @text-primary; margin: 0; }
.audio-filename { font-size: var(--app-text-base); color: @text-primary; margin: 0; }
.audio-element { width: 100%; max-width: 480px; }
}
}
@ -1021,7 +1021,7 @@ onUnmounted(() => {
.preview-table() {
width: 100%;
border-collapse: collapse;
font-size: 13px;
font-size: var(--app-text-md);
th, td {
border: 1px solid @table-border;
padding: 6px 12px;
@ -1039,7 +1039,7 @@ onUnmounted(() => {
}
:deep(.markdown-body) {
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.7;
color: @text-primary;
word-break: break-word;
@ -1050,8 +1050,8 @@ onUnmounted(() => {
font-weight: 600;
line-height: 1.4;
}
h1 { font-size: 24px; border-bottom: 1px solid @border-color; padding-bottom: 8px; }
h2 { font-size: 20px; border-bottom: 1px solid @border-color; padding-bottom: 6px; }
h1 { font-size: var(--app-text-4xl); border-bottom: 1px solid @border-color; padding-bottom: 8px; }
h2 { font-size: var(--app-text-3xl); border-bottom: 1px solid @border-color; padding-bottom: 6px; }
h3 { font-size: 17px; }
p { margin: 8px 0; }
@ -1073,7 +1073,7 @@ onUnmounted(() => {
background: @bg-subtle;
border-radius: @border-radius;
overflow: auto;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.5;
code { background: transparent; padding: 0; }
}
@ -1083,7 +1083,7 @@ onUnmounted(() => {
border-radius: 3px;
font-size: 0.9em;
}
img { max-width: 100%; border-radius: 4px; }
img { max-width: 100%; border-radius: var(--app-radius-xs); }
hr { border: none; border-top: 1px solid @border-color; margin: 20px 0; }
a { color: @accent; text-decoration: none; &:hover { color: @accent-hover; text-decoration: underline; } }
strong { font-weight: 600; }
@ -1139,7 +1139,7 @@ onUnmounted(() => {
background: @accent-bg;
padding: 8px 16px;
font-weight: 600;
font-size: 13px;
font-size: var(--app-text-md);
color: @text-primary;
border-bottom: 1px solid @border-color;
z-index: 1;

View File

@ -22,7 +22,7 @@ const { t } = useI18n()
.empty-txt {
color: var(--td-text-color-placeholder);
font-family: var(--app-font-family);
font-size: 16px;
font-size: var(--app-text-xl);
font-weight: 600;
line-height: 26px;
margin: 12px 0 16px 0;
@ -32,7 +32,7 @@ const { t } = useI18n()
color: var(--td-text-color-disabled);
text-align: center;
font-family: var(--app-font-family);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 400;
width: 217px;
}

View File

@ -1855,7 +1855,7 @@ const processConfigLines = computed<string[]>(() => {
<style scoped lang="less">
.kp-timeline {
font-family: var(--app-font-family);
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
width: 100%;
height: 100%;
@ -1897,7 +1897,7 @@ const processConfigLines = computed<string[]>(() => {
flex: 1;
min-width: 0;
margin: 0;
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 1.35;
color: var(--td-text-color-primary);
@ -1920,7 +1920,7 @@ const processConfigLines = computed<string[]>(() => {
border-radius: var(--td-radius-medium);
background: var(--td-warning-color-light);
color: var(--td-warning-color);
font-size: 10px;
font-size: var(--app-text-2xs);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
@ -1963,7 +1963,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-head-meta {
margin: 8px 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
word-break: break-word;
@ -1989,7 +1989,7 @@ const processConfigLines = computed<string[]>(() => {
color: var(--td-text-color-placeholder);
cursor: pointer;
border-radius: var(--td-radius-default);
transition: background 150ms ease, color 150ms ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
}
.kp-icon-btn:hover:not(:disabled) {
@ -2011,30 +2011,24 @@ const processConfigLines = computed<string[]>(() => {
}
.kp-icon-btn-spin :deep(.t-icon) {
animation: kpSpin 0.9s linear infinite;
animation: wk-spin 0.9s linear infinite;
}
/* Slow rotation while auto-polling — visually distinct from the
manual-refresh fast spin. Tells the user "refresh is happening on
its own" without an extra label or badge. */
.kp-icon-btn-autoflow :deep(.t-icon) {
animation: kpSpin 4s linear infinite;
animation: wk-spin 4s linear infinite;
color: var(--td-warning-color);
}
@keyframes kpSpin {
to {
transform: rotate(360deg);
}
}
.kp-meta-glyph {
display: inline-flex;
align-items: center;
justify-content: center;
width: 12px;
height: 12px;
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 1;
}
@ -2073,11 +2067,11 @@ const processConfigLines = computed<string[]>(() => {
border-radius: var(--td-radius-default);
background: var(--td-bg-color-container);
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.4;
cursor: pointer;
white-space: nowrap;
transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
transition: background var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
}
.kp-attempt:not(.kp-attempt-active):hover {
@ -2105,7 +2099,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-attempt-num {
font-weight: 600;
font-size: 11px;
font-size: var(--app-text-xs);
}
.kp-attempt-glyph {
@ -2138,7 +2132,7 @@ const processConfigLines = computed<string[]>(() => {
gap: 8px;
flex: 1 1 auto;
padding: 56px 20px;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-placeholder);
}
@ -2173,7 +2167,7 @@ const processConfigLines = computed<string[]>(() => {
flex-direction: column;
align-items: center;
transform: translateX(-50%);
font-size: 10px;
font-size: var(--app-text-2xs);
color: var(--td-text-color-placeholder);
}
@ -2195,7 +2189,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-tick-label {
margin-top: 2px;
font-size: 10px;
font-size: var(--app-text-2xs);
letter-spacing: 0.02em;
}
@ -2213,7 +2207,7 @@ const processConfigLines = computed<string[]>(() => {
cursor: pointer;
position: relative;
padding: 0 20px;
transition: background 150ms ease;
transition: background var(--app-motion-fast) ease;
}
.kp-row::before {
@ -2225,7 +2219,7 @@ const processConfigLines = computed<string[]>(() => {
width: 2px;
background: transparent;
border-radius: 0 2px 2px 0;
transition: background 150ms ease;
transition: background var(--app-motion-fast) ease;
}
.kp-row:hover {
@ -2281,7 +2275,7 @@ const processConfigLines = computed<string[]>(() => {
width: 22px;
height: 22px;
margin: -3px 0;
transition: color 120ms ease, background 150ms ease;
transition: color var(--app-motion-instant) ease, background var(--app-motion-fast) ease;
flex-shrink: 0;
border-radius: var(--td-radius-default);
}
@ -2308,7 +2302,7 @@ const processConfigLines = computed<string[]>(() => {
}
.kp-name-text {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
overflow: hidden;
text-overflow: ellipsis;
@ -2317,17 +2311,17 @@ const processConfigLines = computed<string[]>(() => {
.kp-name-mono {
font-family: var(--app-font-family-mono);
font-size: 11px;
font-size: var(--app-text-xs);
}
.kp-name-root {
font-weight: 600;
font-size: 13px;
font-size: var(--app-text-md);
}
.kp-name-kind {
font-family: var(--app-font-family-mono);
font-size: 10px;
font-size: var(--app-text-2xs);
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--td-text-color-placeholder);
@ -2338,7 +2332,7 @@ const processConfigLines = computed<string[]>(() => {
/* Duration cell */
.kp-cell-dur {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-secondary);
text-align: right;
padding-right: 12px;
@ -2411,13 +2405,13 @@ const processConfigLines = computed<string[]>(() => {
transform: translateX(-50%);
background: var(--td-text-color-primary);
color: var(--td-text-color-anti);
font-size: 11px;
font-size: var(--app-text-xs);
padding: 4px 8px;
border-radius: var(--td-radius-default);
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 150ms ease;
transition: opacity var(--app-motion-fast) ease;
z-index: 10;
display: flex;
align-items: center;
@ -2525,7 +2519,7 @@ const processConfigLines = computed<string[]>(() => {
}
.kp-bar-wrap-done {
border-color: rgba(7, 192, 95, 0.35);
border-color: color-mix(in srgb, var(--td-brand-color) 35%, transparent);
}
.kp-bar-wrap-failed {
@ -2578,7 +2572,7 @@ const processConfigLines = computed<string[]>(() => {
white-space: nowrap;
transform: translateX(-50%);
opacity: 0;
transition: opacity 150ms ease;
transition: opacity var(--app-motion-fast) ease;
}
.kp-row:hover .kp-bar-offset,
@ -2681,19 +2675,19 @@ const processConfigLines = computed<string[]>(() => {
background: var(--td-error-color);
color: var(--td-text-color-anti);
border-radius: 50%;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 700;
flex-shrink: 0;
}
.kp-last-error-title {
font-weight: 600;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-error-color);
}
.kp-last-error-code {
font-size: 10px;
font-size: var(--app-text-2xs);
background: var(--td-error-color);
color: var(--td-text-color-anti);
padding: 1px 6px;
@ -2702,13 +2696,13 @@ const processConfigLines = computed<string[]>(() => {
}
.kp-last-error-suggestion {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
margin-bottom: 4px;
}
.kp-last-error-raw {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-placeholder);
white-space: pre-wrap;
word-break: break-word;
@ -2756,7 +2750,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-detail-name {
font-weight: 600;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
overflow: hidden;
text-overflow: ellipsis;
@ -2766,7 +2760,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-detail-kind {
font-family: var(--app-font-family-mono);
font-size: 10px;
font-size: var(--app-text-2xs);
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--td-text-color-placeholder);
@ -2780,7 +2774,7 @@ const processConfigLines = computed<string[]>(() => {
align-items: center;
padding: 1px 8px;
border-radius: var(--td-radius-default);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
background: var(--td-bg-color-component);
color: var(--td-text-color-primary);
@ -2841,10 +2835,10 @@ const processConfigLines = computed<string[]>(() => {
border: none;
background: transparent;
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
cursor: pointer;
position: relative;
transition: color 150ms ease;
transition: color var(--app-motion-fast) ease;
}
.kp-tab:hover {
@ -2885,12 +2879,12 @@ const processConfigLines = computed<string[]>(() => {
align-items: center;
justify-content: center;
padding: 48px 0;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-placeholder);
}
.kp-detail-hint {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
padding: 10px 12px;
background: var(--td-bg-color-secondarycontainer);
@ -2906,7 +2900,7 @@ const processConfigLines = computed<string[]>(() => {
}
.kp-section-title {
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
@ -2915,7 +2909,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-section-desc {
margin: 4px 0 8px;
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-placeholder);
}
@ -2934,11 +2928,11 @@ const processConfigLines = computed<string[]>(() => {
border: 1px solid var(--td-component-border);
background: var(--td-bg-color-container);
color: var(--td-text-color-secondary);
font-size: 11px;
font-size: var(--app-text-xs);
padding: 3px 8px;
border-radius: var(--td-radius-default);
cursor: pointer;
transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;
}
.kp-section-action:hover {
@ -2967,7 +2961,7 @@ const processConfigLines = computed<string[]>(() => {
grid-template-columns: 130px 1fr;
gap: 12px;
align-items: center;
font-size: 12px;
font-size: var(--app-text-sm);
min-width: 0;
padding: 8px 12px;
background: var(--td-bg-color-container);
@ -2983,7 +2977,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-kv-key {
color: var(--td-text-color-secondary);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
@ -3020,14 +3014,14 @@ const processConfigLines = computed<string[]>(() => {
}
.kp-kv-scalar {
font-size: 12px;
font-size: var(--app-text-sm);
}
.kp-kv-running {
color: var(--td-warning-color);
font-style: italic;
font-family: var(--app-font-family);
font-size: 11px;
font-size: var(--app-text-xs);
}
.kp-kv-tag-live {
@ -3065,7 +3059,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-mono {
font-family: var(--app-font-family-mono);
font-size: 11px;
font-size: var(--app-text-xs);
letter-spacing: 0;
}
@ -3097,7 +3091,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-kv-summary-static {
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: var(--app-text-xs);
}
.kp-kv-toggle {
@ -3110,7 +3104,7 @@ const processConfigLines = computed<string[]>(() => {
align-items: baseline;
gap: 8px;
color: var(--td-text-color-secondary);
font-size: 12px;
font-size: var(--app-text-sm);
flex-wrap: wrap;
}
@ -3119,7 +3113,7 @@ const processConfigLines = computed<string[]>(() => {
}
.kp-kv-toggle-label {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-brand-color);
font-weight: 500;
}
@ -3144,7 +3138,7 @@ const processConfigLines = computed<string[]>(() => {
grid-template-columns: 110px 1fr 64px;
gap: 10px;
align-items: center;
font-size: 12px;
font-size: var(--app-text-sm);
}
.kp-breakdown-label {
@ -3206,20 +3200,20 @@ const processConfigLines = computed<string[]>(() => {
background: var(--td-error-color);
color: var(--td-text-color-anti);
border-radius: 50%;
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 700;
flex-shrink: 0;
}
.kp-error-title {
font-weight: 600;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-error-color);
}
.kp-error-code {
margin-left: auto;
font-size: 10px;
font-size: var(--app-text-2xs);
background: var(--td-error-color);
color: var(--td-text-color-anti);
padding: 1px 6px;
@ -3228,7 +3222,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-error-msg {
margin: 0;
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-secondary);
white-space: pre-wrap;
word-break: break-word;
@ -3251,7 +3245,7 @@ const processConfigLines = computed<string[]>(() => {
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-primary);
line-height: 1.6;
}
@ -3282,7 +3276,7 @@ const processConfigLines = computed<string[]>(() => {
.kp-compact-caption {
margin-top: 4px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
white-space: nowrap;
overflow: hidden;
@ -3304,13 +3298,13 @@ const processConfigLines = computed<string[]>(() => {
.kp-proccfg-title {
font-weight: 600;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
margin-bottom: 2px;
}
.kp-proccfg-line {
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.6;
color: var(--td-text-color-secondary);
word-break: break-word;

View File

@ -956,7 +956,7 @@ onBeforeUnmount(() => {
}
.form-label {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 500;
color: var(--td-text-color-primary);
@ -969,7 +969,7 @@ onBeforeUnmount(() => {
.form-desc {
margin: 2px 0 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
@ -1045,15 +1045,15 @@ onBeforeUnmount(() => {
transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
&:hover {
border-color: rgba(7, 192, 95, 0.45);
background: rgba(7, 192, 95, 0.06);
border-color: color-mix(in srgb, var(--td-brand-color) 45%, transparent);
background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);
color: var(--td-brand-color);
box-shadow: 0 2px 6px rgba(7, 192, 95, 0.1);
box-shadow: 0 2px 6px color-mix(in srgb, var(--td-brand-color) 10%, transparent);
}
&.is-preview {
border-color: rgba(7, 192, 95, 0.5);
background: rgba(7, 192, 95, 0.1);
border-color: color-mix(in srgb, var(--td-brand-color) 50%, transparent);
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
}
@ -1064,7 +1064,7 @@ onBeforeUnmount(() => {
:deep(.t-button__icon) {
margin-right: 5px;
font-size: 15px;
font-size: var(--app-text-lg);
}
}
@ -1085,26 +1085,26 @@ onBeforeUnmount(() => {
width: 28px;
height: 28px;
padding: 0;
border-radius: 6px;
border-radius: var(--app-radius-sm);
color: var(--td-text-color-secondary);
border: none;
background: transparent;
cursor: pointer;
transition: all 0.2s ease;
transition: all var(--app-motion-base) ease;
display: flex;
align-items: center;
justify-content: center;
.t-icon {
color: var(--td-text-color-secondary);
font-size: 16px;
font-size: var(--app-text-xl);
width: 16px;
height: 16px;
}
}
.toolbar-btn:hover {
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
color: var(--td-brand-color);
.t-icon {
@ -1113,7 +1113,7 @@ onBeforeUnmount(() => {
}
.toolbar-btn.active {
background: rgba(7, 192, 95, 0.12);
background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);
color: var(--td-brand-color);
.t-icon {
@ -1123,11 +1123,11 @@ onBeforeUnmount(() => {
.toolbar-btn:focus-visible {
outline: none;
box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.25);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--td-brand-color) 25%, transparent);
}
.toolbar-btn:active {
background: rgba(7, 192, 95, 0.15);
background: color-mix(in srgb, var(--td-brand-color) 15%, transparent);
transform: translateY(0.5px);
}
@ -1139,14 +1139,14 @@ onBeforeUnmount(() => {
display: flex;
flex-direction: column;
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
overflow: hidden;
background: var(--td-bg-color-container);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease;
&:focus-within {
border-color: var(--td-brand-color);
box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.1);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--td-brand-color) 10%, transparent);
}
}
@ -1174,7 +1174,7 @@ onBeforeUnmount(() => {
border-radius: 0;
padding: 14px 16px;
font-family: var(--app-font-family-mono);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.7;
background: var(--td-bg-color-container);
@ -1194,7 +1194,7 @@ onBeforeUnmount(() => {
overflow-y: auto;
padding: 16px;
background: var(--td-bg-color-container);
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.7;
color: var(--td-text-color-primary);
@ -1209,14 +1209,14 @@ onBeforeUnmount(() => {
:deep(code) {
background: var(--td-bg-color-container-hover);
padding: 2px 4px;
border-radius: 4px;
border-radius: var(--app-radius-xs);
font-family: var(--app-font-family-mono);
}
:deep(pre) {
background: var(--td-bg-color-container-hover);
padding: 12px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
overflow: auto;
}
@ -1225,7 +1225,7 @@ onBeforeUnmount(() => {
padding-left: 12px;
color: var(--td-text-color-secondary);
margin: 16px 0;
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
}
:deep(a) {

View File

@ -1293,8 +1293,8 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
flex-shrink: 0;
cursor: pointer;
color: var(--td-text-color-secondary);
border-radius: 4px;
transition: background-color 0.2s ease;
border-radius: var(--app-radius-xs);
transition: background-color var(--app-motion-base) ease;
box-sizing: border-box;
&:hover {
@ -1341,23 +1341,6 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
}
}
.logo_img {
margin-left: 24px;
width: 30px;
height: 30px;
margin-right: 7.25px;
}
.logo_txt {
transform: rotate(0.049deg);
color: var(--td-text-color-primary);
font-family: "TencentSans";
font-size: 24.12px;
font-style: normal;
font-weight: W7;
line-height: 21.7px;
}
.menu_top {
flex: 1;
display: flex;
@ -1373,7 +1356,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
// Claude 风格细滚动条:默认透明,悬浮时显示一条圆角细灰条
scrollbar-width: thin;
scrollbar-color: transparent transparent;
transition: scrollbar-color 0.2s ease;
transition: scrollbar-color var(--app-motion-base) ease;
&::-webkit-scrollbar {
width: 6px;
@ -1385,20 +1368,20 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 6px;
transition: background-color 0.2s ease;
border-radius: var(--app-radius-sm);
transition: background-color var(--app-motion-base) ease;
}
&:hover {
scrollbar-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18)) transparent;
scrollbar-color: var(--td-scrollbar-color) transparent;
&::-webkit-scrollbar-thumb {
background-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18));
background-color: var(--td-scrollbar-color);
}
}
&::-webkit-scrollbar-thumb:hover {
background-color: var(--td-scrollbar-hover-color, rgba(0, 0, 0, 0.32));
background-color: var(--td-scrollbar-hover-color);
}
}
@ -1423,32 +1406,12 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
}
.upload-file-wrap {
padding: 6px;
border-radius: 3px;
height: 32px;
width: 32px;
box-sizing: border-box;
}
.upload-file-wrap:hover {
background-color: var(--td-brand-color-light);
color: var(--td-brand-color);
}
.upload-file-icon {
width: 20px;
height: 20px;
color: var(--td-text-color-secondary);
}
.active-upload {
color: var(--td-brand-color);
}
.menu_item_active {
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: var(--td-bg-color-secondarycontainer) !important;
.menu_icon,
@ -1465,12 +1428,6 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
}
}
.menu_p {
height: 46px;
padding: 3px 0;
box-sizing: border-box;
}
.menu_item {
cursor: pointer;
display: flex;
@ -1480,8 +1437,8 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
padding: 8px 10px 8px var(--sidebar-inset-x);
box-sizing: border-box;
margin-bottom: 2px;
border-radius: 4px;
transition: background-color 0.2s ease;
border-radius: var(--app-radius-xs);
transition: background-color var(--app-motion-base) ease;
.menu_item-box {
display: flex;
@ -1489,7 +1446,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
}
&:hover {
border-radius: 4px;
border-radius: var(--app-radius-xs);
background: var(--td-bg-color-container-hover);
.menu_icon,
@ -1517,7 +1474,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
color: var(--td-text-color-primary);
text-overflow: ellipsis;
font-family: var(--app-font-family);
font-size: 14px;
font-size: var(--app-text-base);
font-style: normal;
font-weight: 600;
line-height: 20px;
@ -1530,7 +1487,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
.submenu {
position: relative;
font-family: var(--app-font-family);
font-size: 14px;
font-size: var(--app-text-base);
font-style: normal;
min-width: 0;
padding-top: 3px;
@ -1538,7 +1495,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
:deep(.submenu_pin_icon) {
color: inherit;
font-size: 12px;
font-size: var(--app-text-sm);
margin-right: 4px;
vertical-align: middle;
flex-shrink: 0;
@ -1546,7 +1503,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
:deep(.submenu_fork_icon) {
color: inherit;
font-size: 12px;
font-size: var(--app-text-sm);
margin-right: 4px;
vertical-align: middle;
flex-shrink: 0;
@ -1563,7 +1520,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
// 悬浮或选中时恢复彩色,交互时才引人注意。
filter: grayscale(1);
opacity: 0.55;
transition: filter 0.15s ease, opacity 0.15s ease;
transition: filter var(--app-motion-fast) ease, opacity var(--app-motion-fast) ease;
}
:deep(.submenu_item:hover .submenu_source_icon),
@ -1613,7 +1570,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
.timeline_header {
font-family: var(--app-font-family);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 600;
color: var(--td-text-color-disabled);
padding-top: 4px;
@ -1645,7 +1602,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
min-width: 0;
max-width: 100%;
opacity: 0;
transition: opacity 0.15s ease;
transition: opacity var(--app-motion-fast) ease;
}
}
@ -1664,8 +1621,8 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
&.session-chat-row .session-list-row {
min-height: 30px;
border-radius: 6px;
transition: background 0.15s ease, color 0.15s ease;
border-radius: var(--app-radius-sm);
transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
}
&.session-chat-row--revealed {
@ -1701,7 +1658,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
}
&.session-chat-row--selected .session-list-row {
background: rgba(7, 192, 95, 0.05);
background: color-mix(in srgb, var(--td-brand-color) 5%, transparent);
}
}
@ -1712,7 +1669,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
align-items: center;
color: var(--td-text-color-primary);
font-weight: 400;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 20px;
height: 100%;
width: 100%;
@ -1744,7 +1701,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
.menu-more-wrap {
opacity: 0;
transition: opacity 0.2s ease;
transition: opacity var(--app-motion-base) ease;
flex-shrink: 0;
}
@ -1786,7 +1743,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
.batch-footer-left {
display: flex;
align-items: center;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-placeholder);
}
@ -1797,81 +1754,6 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
}
}
/* 知识库下拉菜单样式 */
.kb-dropdown-icon {
margin-left: auto;
color: var(--td-text-color-secondary);
transition: transform 0.3s ease, color 0.2s ease;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
&.rotate-180 {
transform: rotate(180deg);
}
&:hover {
color: var(--td-brand-color);
}
&.active {
color: var(--td-brand-color);
}
&.active:hover {
color: var(--td-brand-color-active);
}
svg {
width: 12px;
height: 12px;
transition: inherit;
}
}
.kb-dropdown-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
box-shadow: var(--td-shadow-2);
z-index: 1000;
max-height: 200px;
overflow-y: auto;
}
.kb-dropdown-item {
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.2s ease;
font-size: 14px;
color: var(--td-text-color-primary);
&:hover {
background-color: var(--td-bg-color-container-hover);
}
&.active {
background-color: var(--td-brand-color-light);
color: var(--td-brand-color);
font-weight: 500;
}
&:first-child {
border-radius: 6px 6px 0 0;
}
&:last-child {
border-radius: 0 0 6px 6px;
}
}
.menu_item-box {
display: flex;
align-items: center;
@ -1883,7 +1765,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
.submenu_empty {
padding: 24px 14px;
text-align: center;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
user-select: none;
}
@ -1904,9 +1786,9 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
height: 26px;
flex-shrink: 0;
cursor: pointer;
border-radius: 6px;
border-radius: var(--app-radius-sm);
color: var(--td-text-color-secondary);
transition: background-color 0.2s ease;
transition: background-color var(--app-motion-base) ease;
box-sizing: border-box;
&:hover {
@ -1928,11 +1810,11 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
white-space: nowrap;
.cmdk-tip-label {
font-size: 13px;
font-size: var(--app-text-md);
}
.cmdk-tip-keys {
font-size: 13px;
font-size: var(--app-text-md);
opacity: 0.6;
letter-spacing: 0.5px;
}
@ -1946,7 +1828,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
border-radius: 9px;
background: rgba(250, 173, 20, 0.2);
color: var(--td-warning-color);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
line-height: 18px;
text-align: center;
@ -2026,10 +1908,10 @@ html[theme-mode="dark"] .aside_box .menu_item_active .menu_icon img.icon {
.t-popconfirm__content {
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
box-shadow: var(--td-shadow-3);
padding: 12px 16px;
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
max-width: 200px;
}

View File

@ -56,14 +56,14 @@ const badgeStyle = computed((): Record<string, string> => (
width: 26px;
height: 26px;
border-radius: 7px;
font-size: 14px;
font-size: var(--app-text-base);
}
.sandbox-badge--xs {
width: 16px;
height: 16px;
border-radius: 4px;
font-size: 10px;
border-radius: var(--app-radius-xs);
font-size: var(--app-text-2xs);
}
.sandbox-badge--e2b {

View File

@ -310,10 +310,10 @@ const handleCancel = () => {
display: flex;
align-items: center;
justify-content: center;
background: rgba(7, 192, 95, 0.1);
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
color: var(--td-brand-color);
font-size: 16px;
transition: background 0.2s ease;
font-size: var(--app-text-xl);
transition: background var(--app-motion-base) ease;
}
.setting-drawer__header-text {
@ -345,7 +345,7 @@ const handleCancel = () => {
}
.setting-drawer__title {
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -355,7 +355,7 @@ const handleCancel = () => {
}
.setting-drawer__subtitle {
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.45;
color: var(--td-text-color-secondary);
}
@ -423,7 +423,7 @@ const handleCancel = () => {
}
.setting-drawer__body :deep(.setting-drawer__section-title) {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-primary);
margin: 0 0 4px;
@ -541,7 +541,7 @@ const handleCancel = () => {
border-radius: 1px;
background: var(--td-component-border);
opacity: 0.55;
transition: opacity 0.15s ease, background 0.15s ease;
transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;
}
.setting-drawer-resize-handle:hover .setting-drawer-resize-line,

View File

@ -12,6 +12,7 @@ interface ConfirmDeleteOptions {
/**
* 统一的删除确认交互,基于 TDesign DialogPlugin.confirm。
* 取代散落在各处的 window.confirm / t-popconfirm / 自定义 Dialog 写法。
* 破坏性操作统一 danger 主题、红色确认键;行内轻量操作才用 t-popconfirm。
*/
export function useConfirmDelete() {
const { t } = useI18n()
@ -20,9 +21,9 @@ export function useConfirmDelete() {
const dialog = DialogPlugin.confirm({
header: opts.title || (t('common.confirmDelete') as string),
body: opts.body,
confirmBtn: opts.confirmText || (t('common.delete') as string),
confirmBtn: { content: opts.confirmText || (t('common.delete') as string), theme: 'danger' },
cancelBtn: opts.cancelText || (t('common.cancel') as string),
theme: 'warning',
theme: 'danger',
onConfirm: async () => {
try {
await opts.onConfirm()

View File

@ -20,7 +20,7 @@
.share-panel-title {
margin: 0;
font-size: 20px;
font-size: var(--app-text-3xl);
font-weight: 600;
line-height: 1.35;
color: var(--td-text-color-primary);
@ -28,7 +28,7 @@
.share-panel-desc {
margin: 8px 0 0;
font-size: 14px;
font-size: var(--app-text-base);
line-height: 1.5;
color: var(--td-text-color-secondary);
}
@ -44,12 +44,12 @@
margin: 0;
padding: 0;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: transparent;
color: var(--td-text-color-secondary);
cursor: pointer;
line-height: 0;
transition: background-color 0.2s ease, color 0.2s ease;
transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;
:deep(.t-icon) {
display: block;
@ -89,7 +89,7 @@
}
.share-panel-list-title {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
color: var(--td-text-color-primary);
}
@ -101,10 +101,10 @@
min-width: 22px;
height: 20px;
padding: 0 7px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
line-height: 1;
}
@ -136,7 +136,7 @@
align-items: center;
gap: 8px;
padding: 20px 0 8px;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
}
@ -146,13 +146,13 @@
.share-panel-table-shell {
overflow-x: auto;
border-radius: 10px;
border-radius: var(--app-radius-lg);
border: 1px solid var(--td-component-stroke);
background: var(--td-bg-color-container);
:deep(thead th) {
font-weight: 600;
font-size: 13px;
font-size: var(--app-text-md);
}
:deep(.t-table td),
@ -173,7 +173,7 @@
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
color: var(--td-text-color-primary);
min-width: 0;
@ -186,7 +186,7 @@
}
.share-space-meta {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
}

View File

@ -4,7 +4,7 @@
.t-popup__content {
padding: 16px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
border: 1px solid var(--td-component-stroke);
box-shadow: var(--td-shadow-2), 0 8px 24px rgba(15, 23, 42, 0.08);
}
@ -17,7 +17,7 @@
.member-invite-popup-title {
margin: 0 0 10px;
font-size: 15px;
font-size: var(--app-text-lg);
font-weight: 600;
line-height: 1.35;
color: var(--td-text-color-primary);
@ -26,10 +26,10 @@
.add-member-tip {
margin: 0 0 12px;
padding: 10px 12px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
border: 1px solid var(--td-component-stroke);
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
line-height: 1.5;
}
@ -55,7 +55,7 @@
.org-upgrade-field-label {
display: block;
margin: 0;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
line-height: 1.4;
color: var(--td-text-color-primary);
@ -69,7 +69,7 @@
.member-form-hint {
margin: 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
line-height: 1.45;
}
@ -90,7 +90,7 @@
.t-popup__content {
padding: 4px !important;
border-radius: 8px !important;
border-radius: var(--app-radius-md) !important;
border: 1px solid var(--td-component-stroke) !important;
background: var(--td-bg-color-container) !important;
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
@ -105,8 +105,8 @@
align-items: center;
padding: 0 !important;
margin: 0 !important;
border-radius: 6px !important;
transition: background-color 0.15s ease;
border-radius: var(--app-radius-sm) !important;
transition: background-color var(--app-motion-fast) ease;
&:hover,
&.t-is-hover {
@ -141,7 +141,7 @@
.share-org-option-name {
flex: 1;
min-width: 0;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-primary);
overflow: hidden;
text-overflow: ellipsis;
@ -150,7 +150,7 @@
.share-org-option-role {
flex-shrink: 0;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
}
@ -159,26 +159,12 @@
.share-hint-popup-overlay {
z-index: 3050 !important;
.t-popup__content {
padding: 0 !important;
border-radius: 12px !important;
background: var(--td-bg-color-container) !important;
border: 0.5px solid var(--td-component-stroke) !important;
box-shadow:
0 0 0 0.5px rgba(0, 0, 0, 0.03),
0 2px 4px rgba(0, 0, 0, 0.04),
0 8px 24px rgba(0, 0, 0, 0.1) !important;
backdrop-filter: blur(20px) saturate(180%) !important;
-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
overflow: hidden;
}
.share-hint-popover {
padding: 14px 16px;
.share-hint-title {
margin: 0 0 6px;
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
color: var(--td-text-color-primary);
line-height: 1.35;
@ -186,7 +172,7 @@
.share-hint-desc {
margin: 0 0 8px;
font-size: 13px;
font-size: var(--app-text-md);
line-height: 1.55;
color: var(--td-text-color-secondary);

View File

@ -20,7 +20,7 @@ const { t } = useI18n()
.drag-txt {
color: var(--td-brand-color);
font-family: var(--app-font-family);
font-size: 24px;
font-size: var(--app-text-4xl);
font-weight: 600;
line-height: 26px;
display: inline-block;
@ -32,7 +32,7 @@ const { t } = useI18n()
color: var(--td-text-color-disabled);
text-align: center;
font-family: var(--app-font-family);
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 400;
}
.upload-img{

View File

@ -0,0 +1,101 @@
import { onBeforeUnmount, onMounted } from 'vue'
import { DialogPlugin } from 'tdesign-vue-next'
import { useI18n } from 'vue-i18n'
/**
* 全屏"设置类"弹窗(Settings / AgentEditor / OrganizationSettings / KnowledgeBaseEditor)
* 共用的壳层交互:
* - Esc 关闭(当有 TDesign 弹窗 / 抽屉 / 弹层叠在上面时不响应,让它们先关)
* - 遮罩点击关闭
* - 有未保存更改时先弹二次确认
*
* 用法:
* const shell = useModalShell({
* visible: () => props.visible,
* close: () => emit('update:visible', false),
* snapshot: () => formData.value, // 可选:参与 dirty 比较的数据
* })
* // 数据加载完成 / 保存成功后:shell.markClean()
* // 模板:@click.self="shell.requestClose",关闭按钮 @click="shell.requestClose"
*/
export interface ModalShellOptions {
visible: () => boolean
close: () => void
/** 参与 dirty 比较的数据;不传则不做未保存提示 */
snapshot?: () => unknown
/** 返回 true 时跳过 Esc(例如组件内部自绘的弹层正打开) */
ignoreEscape?: () => boolean
}
function serialize(value: unknown): string {
try {
return JSON.stringify(value ?? null)
} catch {
return ''
}
}
/** 页面上是否有 TDesign 的弹窗 / 抽屉 / 弹层处于打开状态 */
function hasOpenTDesignOverlay(): boolean {
if (typeof document === 'undefined') return false
const dialogCtx = document.querySelector<HTMLElement>('.t-dialog__ctx')
if (dialogCtx && dialogCtx.style.display !== 'none') return true
if (document.querySelector('.t-drawer--open')) return true
const popups = document.querySelectorAll<HTMLElement>('.t-popup')
for (const popup of popups) {
if (popup.style.display !== 'none') return true
}
return false
}
export function useModalShell(options: ModalShellOptions) {
const { t } = useI18n()
let cleanSnapshot = serialize(options.snapshot?.())
let confirming = false
const markClean = () => {
cleanSnapshot = serialize(options.snapshot?.())
}
const isDirty = () => {
if (!options.snapshot) return false
return serialize(options.snapshot()) !== cleanSnapshot
}
const requestClose = () => {
if (!options.visible() || confirming) return
if (!isDirty()) {
options.close()
return
}
confirming = true
const dialog = DialogPlugin.confirm({
header: t('common.unsavedChanges.title'),
body: t('common.unsavedChanges.body'),
theme: 'warning',
confirmBtn: { content: t('common.unsavedChanges.discard'), theme: 'danger' },
cancelBtn: t('common.unsavedChanges.keepEditing'),
onConfirm: () => {
confirming = false
dialog.destroy()
options.close()
},
onClose: () => {
confirming = false
dialog.destroy()
},
})
}
const onKeydown = (event: KeyboardEvent) => {
if (event.key !== 'Escape' || !options.visible()) return
if (options.ignoreEscape?.()) return
if (hasOpenTDesignOverlay()) return
requestClose()
}
onMounted(() => window.addEventListener('keydown', onKeydown))
onBeforeUnmount(() => window.removeEventListener('keydown', onKeydown))
return { requestClose, markClean, isDirty }
}

View File

@ -2404,6 +2404,12 @@ export default {
me: 'Me',
confirm: 'Confirm',
cancel: 'Cancel',
unsavedChanges: {
title: 'Unsaved changes',
body: 'Your changes will be lost if you close now. Close anyway?',
discard: 'Discard changes',
keepEditing: 'Keep editing',
},
save: 'Save',
delete: 'Delete',
edit: 'Edit',
@ -3243,6 +3249,9 @@ export default {
save: 'Save Configuration',
saveAndClose: 'Save and Close',
},
footer: {
instantEffect: 'Changes on this page take effect immediately; no save needed',
},
postCreateHint: {
title: 'Created successfully',
footer: 'Keep adjusting settings, configure sharing and data sources, then click "Save and Close".',
@ -3341,6 +3350,7 @@ export default {
batchDisable: 'Disable selected',
batchDelete: 'Delete selected',
confirmBatchDelete: 'Delete the selected {count} FAQ entries? This action cannot be undone.',
confirmDelete: 'Delete this FAQ entry? This cannot be undone.',
batchDeleteSuccess: 'Deleted {count} FAQ entries'
},
faqImport: {

View File

@ -2404,6 +2404,12 @@ export default {
me: '自分',
confirm: '確認',
cancel: 'キャンセル',
unsavedChanges: {
title: '未保存の変更があります',
body: '閉じると現在の変更は失われます。閉じますか?',
discard: '変更を破棄',
keepEditing: '編集を続ける',
},
save: '保存',
delete: '削除',
edit: '編集',
@ -3243,6 +3249,9 @@ export default {
save: '設定を保存',
saveAndClose: '保存して閉じる',
},
footer: {
instantEffect: 'このページの変更は即時に反映されます。保存は不要です',
},
postCreateHint: {
title: '作成しました',
footer: '設定の調整を続け、共有やデータソースを設定してから「保存して閉じる」をクリックしてください。',
@ -3341,6 +3350,7 @@ export default {
batchDisable: '選択項目を無効化',
batchDelete: '選択項目を削除',
confirmBatchDelete: '選択した{count}件のFAQエントリを削除しますか?この操作は取り消せません。',
confirmDelete: 'この FAQ エントリを削除しますか?この操作は元に戻せません。',
batchDeleteSuccess: '{count}件のFAQエントリを削除しました'
},
faqImport: {

View File

@ -4142,6 +4142,7 @@ export default {
batchDisable: '일괄 비활성화',
batchDelete: '일괄 삭제',
confirmBatchDelete: '선택한 FAQ 항목 {count}개를 삭제하시겠습니까? 삭제 후에는 복구할 수 없습니다.',
confirmDelete: '이 FAQ 항목을 삭제하시겠습니까? 삭제 후 복구할 수 없습니다.',
batchDeleteSuccess: 'FAQ 항목 {count}개를 삭제했습니다',
modes: {
questionOnly: '표준 질문/유사 질문만',
@ -4182,6 +4183,9 @@ export default {
save: '설정 저장',
saveAndClose: '저장 후 닫기',
},
footer: {
instantEffect: '이 페이지의 변경 사항은 즉시 적용되며 저장할 필요가 없습니다',
},
postCreateHint: {
title: '생성 완료',
footer: '설정을 계속 조정하고 공유·데이터 소스를 구성한 뒤 "저장 후 닫기"를 클릭하세요.',
@ -4971,6 +4975,12 @@ export default {
me: '나',
confirm: '확인',
cancel: '취소',
unsavedChanges: {
title: '저장되지 않은 변경 사항',
body: '지금 닫으면 변경 사항이 사라집니다. 닫으시겠습니까?',
discard: '변경 사항 버리기',
keepEditing: '계속 편집',
},
save: '저장',
delete: '삭제',
edit: '편집',

View File

@ -4142,6 +4142,7 @@ export default {
batchDisable: 'Отключить выбранные',
batchDelete: 'Удалить выбранные',
confirmBatchDelete: 'Удалить выбранные записи FAQ ({count})? Это действие нельзя отменить.',
confirmDelete: 'Удалить эту запись FAQ? Это действие нельзя отменить.',
batchDeleteSuccess: 'Удалено записей FAQ: {count}',
modes: {
questionOnly: 'Только вопросы',
@ -4182,6 +4183,9 @@ export default {
save: 'Сохранить настройки',
saveAndClose: 'Сохранить и закрыть',
},
footer: {
instantEffect: 'Изменения на этой странице применяются сразу, сохранять не нужно',
},
postCreateHint: {
title: 'База знаний создана',
footer: 'Продолжите настройку, настройте совместное использование и источники данных, затем нажмите «Сохранить и закрыть».',
@ -4971,6 +4975,12 @@ export default {
me: 'Я',
confirm: 'Подтвердить',
cancel: 'Отмена',
unsavedChanges: {
title: 'Несохранённые изменения',
body: 'Если закрыть сейчас, изменения будут потеряны. Закрыть?',
discard: 'Отменить изменения',
keepEditing: 'Продолжить редактирование',
},
save: 'Сохранить',
delete: 'Удалить',
edit: 'Редактировать',

View File

@ -1873,7 +1873,7 @@ export default {
deleteConfirmMessage: '确定要删除共享空间「{name}」吗?删除后所有成员将被移除,此操作不可撤销。',
deleteSuccess: '共享空间已删除',
deleteFailed: '删除共享空间失败',
createSuccess: '共享空间创建成功',
createSuccess: '已创建共享空间',
createFailed: '创建共享空间失败',
joinSuccess: '成功加入共享空间',
joinFailed: '加入共享空间失败',
@ -1929,7 +1929,7 @@ export default {
searchTenantHint: '仅按完整空间 ID 查找,也可通过邀请链接加入组织',
selectRole: '分配角色',
confirmBtn: '添加',
success: '成员添加成功',
success: '已添加成员',
failed: '添加失败'
},
upgrade: {
@ -3115,7 +3115,7 @@ export default {
bulkApply: {
label: '应用到所有现有空间',
tooltip: '保存的值默认只对之后新建的空间生效;点击此按钮将当前值同步写入所有现有空间。',
confirmBtn: '确认应用',
confirmBtn: '应用',
confirmBody: '将把所有现有空间的存储配额覆盖为 {value} GB。如有空间被运维单独调整过的配额,也会一并被覆盖。是否继续?',
success: '已将 {count} 个空间的存储配额更新为 {gb} GB',
failed: '应用到所有空间失败'
@ -3132,7 +3132,7 @@ export default {
newPasswordPlaceholder: '请输入新密码',
confirmPasswordLabel: '确认新密码',
confirmPasswordPlaceholder: '再次输入新密码',
confirmBtn: '确认重置',
confirmBtn: '重置',
success: '密码已重置,该用户的现有会话已失效',
failed: '重置密码失败',
},
@ -3190,19 +3190,19 @@ export default {
revoke: {
header: '撤销系统管理员',
body: '确认撤销 {email} 的系统管理员权限?撤销后该用户将无法再访问任何系统级功能。',
confirmBtn: '确认撤销'
confirmBtn: '撤销'
},
promote: {
header: '提升为系统管理员',
body: '确认将 {email} 提升为系统管理员?该用户将获得平台级权限,可访问所有空间、修改系统设置、管理其他管理员。',
confirmBtn: '确认提升'
confirmBtn: '提升'
}
}
},
reset: {
label: '重置',
tooltip: '清除当前 UI 覆盖,恢复使用环境变量或内置默认值',
confirmBtn: '确认重置',
confirmBtn: '重置',
confirmBody: '确定要重置「{label}」吗?该操作会删除数据库中的覆盖值,回退到环境变量或内置默认值。',
success: '已重置为默认值',
failed: '重置失败'
@ -3218,12 +3218,12 @@ export default {
remove: {
header: '移除 SSRF 白名单条目',
body: '确认从 SSRF 白名单中移除 {entry}?移除后该条目将重新受 SSRF 防护拦截。',
confirmBtn: '确认移除'
confirmBtn: '移除'
},
add: {
header: '添加 SSRF 白名单条目',
body: '确认把 {entry} 加入 SSRF 白名单?该条目匹配到的主机 / IP / 网段会绕过 SSRF 防护,可能让 Agent 访问内网服务,请仅在确知用途时添加。',
confirmBtn: '确认添加'
confirmBtn: '添加'
}
}
}
@ -3619,7 +3619,7 @@ export default {
confirmTitle: '删除当前空间?',
confirmBody: '此操作将删除空间「{name}」,并使其中的知识库、智能体、成员与 API Key 不再可用。此操作不可撤销。',
confirmHint: '请输入空间名称「{name}」以确认删除。',
confirm: '确认删除',
confirm: '删除',
nameMismatch: '空间名称不匹配',
success: '空间已删除',
failed: '删除空间失败'
@ -3674,7 +3674,7 @@ export default {
descriptionPlaceholder: '简单描述一下这个空间的用途',
submit: '创建',
cancel: '取消',
success: '空间创建成功',
success: '已创建空间',
failed: '空间创建失败',
disabled: '当前系统只允许通过邀请加入空间,不能自行创建空间。'
},
@ -4074,7 +4074,7 @@ export default {
deleteSuccess: '选中条目已删除',
previewCount: '共解析 {count} 条记录',
previewMore: '还有 {count} 条未展示',
importSuccess: '导入成功',
importSuccess: '已导入',
parseFailed: '解析文件失败',
invalidJSON: 'JSON 文件格式不正确',
unsupportedFormat: '暂不支持该文件格式',
@ -4144,6 +4144,7 @@ export default {
batchDisable: '批量禁用',
batchDelete: '批量删除',
confirmBatchDelete: '确认删除选中的 {count} 个 FAQ 条目?删除后将无法恢复。',
confirmDelete: '确认删除该 FAQ 条目?删除后将无法恢复。',
batchDeleteSuccess: '已删除 {count} 个 FAQ 条目',
modes: {
questionOnly: '仅标准问/相似问',
@ -4163,11 +4164,11 @@ export default {
nameRequired: '请输入知识库名称',
summaryRequired: '请选择 Summary 模型',
multimodalInvalid: '多模态配置验证失败',
createSuccess: '知识库创建成功',
createSuccess: '已创建知识库',
createFailed: '创建知识库失败',
missingId: '缺少知识库 ID',
buildDataFailed: '数据构建失败',
updateSuccess: '配置保存成功',
updateSuccess: '配置已保存',
indexModeRequired: '请选择 FAQ 的索引方式',
storageChangeConfirm: '知识库中已有文件,更改存储引擎后旧文件可能无法正常访问。是否确认更改?'
},
@ -4184,6 +4185,9 @@ export default {
save: '保存配置',
saveAndClose: '保存并关闭',
},
footer: {
instantEffect: '此页的更改即时生效,无需保存',
},
postCreateHint: {
title: '创建成功',
footer: '可继续调整配置,设置共享与数据源,完成后点击「保存并关闭」。',
@ -4772,7 +4776,7 @@ export default {
delete: {
confirmTitle: '删除确认',
confirmMessage: '确认要删除知识库"{name}"?删除后不可恢复',
confirmButton: '确认删除'
confirmButton: '删除'
},
empty: {
title: '暂无知识库',
@ -4973,12 +4977,18 @@ export default {
me: '我',
confirm: '确认',
cancel: '取消',
unsavedChanges: {
title: '有未保存的更改',
body: '关闭后当前修改将丢失,确定要关闭吗?',
discard: '放弃更改',
keepEditing: '继续编辑',
},
save: '保存',
delete: '删除',
edit: '编辑',
copy: '复制',
copied: '已复制',
copySuccess: '复制成功',
copySuccess: '已复制',
default: '默认',
create: '创建',
download: '下载',
@ -5007,11 +5017,11 @@ export default {
on: '开启',
off: '关闭',
confirmDelete: '确认删除',
createSuccess: '创建成功',
deleteSuccess: '删除成功',
createSuccess: '已创建',
deleteSuccess: '已删除',
deleteFailed: '删除失败',
updateSuccess: '更新成功',
saveSuccess: '保存成功',
updateSuccess: '已更新',
saveSuccess: '已保存',
saveFailed: '保存失败',
operationFailed: '操作失败',
file: '文件',
@ -6053,7 +6063,7 @@ export default {
docs: '文档',
testConnection: '测试连接',
loadFailed: '加载失败',
saveSuccess: '保存成功',
saveSuccess: '已保存',
saveFailed: '保存失败',
unknownError: '未知错误',
requestFailed: '请求失败'
@ -6093,7 +6103,7 @@ export default {
testSuccess: '连接成功',
testFailed: '连接失败',
nameRequired: '请输入名称',
saveSuccess: '保存成功',
saveSuccess: '已保存',
saveFailed: '保存失败',
defaultUpdated: '默认存储已更新',
deleteTitle: '删除存储实例',
@ -6136,7 +6146,7 @@ export default {
checkDoneStatusUpdated: '已使用当前填写参数检测,上方状态已更新',
checkSuccess: '测试连接成功',
checkFailed: '检测失败',
saveSuccess: '保存成功',
saveSuccess: '已保存',
saveFailed: '保存失败',
mineruEndpointPlaceholder: '如 https://your-mineru.example.com',
defaultPipeline: '默认 pipeline',
@ -6171,7 +6181,7 @@ export default {
usageTitle: '使用说明',
usageSteps: '1. 填写并保存 APPID / APPSECRET\n2. 在下方「云模型接入」中按行添加 chat、embedding、rerank、vlm\n3. 文档解析:知识库设置 → 解析引擎,选择 WeKnora Cloud 引擎',
fillRequired: '请填写 APPID 和 APPSECRET',
saveSuccess: '凭证保存成功',
saveSuccess: '凭证已保存',
saveFailed: '凭证保存失败',
credentialConfigured: 'WeKnoraCloud 凭证已配置',
credentialExpired: '凭证已失效,请重新配置。',
@ -6408,12 +6418,12 @@ export default {
skillsInfoContent: '技能是预装的专业知识模块,脚本在所选沙箱中隔离执行。可用列表来自该沙箱已安装的技能;同一会话的沙箱一旦创建,后续附件、产物与销毁都会锁定在创建时那份配置上,改沙箱只影响之后新建的会话。'
},
messages: {
created: '智能体创建成功',
updated: '智能体更新成功',
created: '已创建智能体',
updated: '智能体已更新',
deleted: '智能体已删除',
deleteFailed: '删除失败',
saveFailed: '保存失败',
copied: '智能体复制成功',
copied: '已复制智能体',
copyFailed: '复制失败',
disabled: '已停用',
enabled: '已启用'
@ -6421,7 +6431,7 @@ export default {
delete: {
confirmTitle: '删除智能体',
confirmMessage: '确定要删除智能体「{name}」吗?此操作不可恢复。',
confirmButton: '确认删除'
confirmButton: '删除'
},
shareScope: {
title: '共享范围说明',
@ -6645,7 +6655,7 @@ export default {
name: '名称',
description: '描述',
settings: '设置',
tagUpdateSuccess: '标签更新成功',
tagUpdateSuccess: '标签已更新',
tagEditDialogHeading: '编辑标签',
tagEditSearch: '搜索标签...',
tagEditSelectedSection: '已选标签',
@ -6700,8 +6710,8 @@ export default {
tagSearchPlaceholder: '输入标签名称关键字',
tagNamePlaceholder: '请输入标签名称',
tagNameRequired: '请先输入标签名称',
tagCreateSuccess: '标签创建成功',
tagEditSuccess: '标签更新成功',
tagCreateSuccess: '已创建标签',
tagEditSuccess: '标签已更新',
tagDeleteDescDoc: '确定删除标签"{name}"?该标签下的所有文档将被一并删除',
tagDeleteSuccess: '标签已删除',
tagEditAction: '重命名',
@ -6710,7 +6720,7 @@ export default {
tagLabel: '标签',
tagPlaceholder: '请选择标签',
noTags: '暂无标签',
uploadSuccess: '文件上传成功!',
uploadSuccess: '已上传文件',
uploadFailed: '文件上传失败!',
fileExists: '文件已存在',
uploadAllSuccess: '成功上传 {count} 个文件!',
@ -6725,7 +6735,7 @@ export default {
importURLTitle: '导入网页',
urlRequired: '请输入URL',
invalidURL: '请输入有效的URL',
urlImportSuccess: 'URL导入成功!',
urlImportSuccess: '已导入 URL',
urlImportFailed: 'URL导入失败!',
urlExists: '该URL已存在',
urlLabel: 'URL地址',
@ -6859,7 +6869,7 @@ export default {
documentSummary: '摘要',
detailSectionMeta: '基本信息',
confirmDeleteDocument: '确认删除文档"{fileName}",删除后将无法恢复',
confirmDelete: '确认删除',
confirmDelete: '删除',
viewModeGrid: '卡片视图',
viewModeList: '列表视图',
viewModeToggle: '切换视图',
@ -6946,7 +6956,7 @@ export default {
allUploadSuccess: '所有文件上传成功({count}个)',
partialUploadSuccess: '部分文件上传成功(成功:{success},失败:{fail})',
allUploadFailed: '所有文件上传失败({count}个)',
deleteSuccess: '知识删除成功!',
deleteSuccess: '已删除知识',
chunkLoadFailed: '分块加载失败',
infoCard: {
tooltip: '查看知识库信息',
@ -7008,7 +7018,7 @@ export default {
deleteConfirmTitle: '删除对话',
deleteConfirmBody: '确定要删除选中的 {count} 条对话吗?删除后无法恢复。',
deleteAllConfirmBody: '确定要删除所有对话吗?此操作无法恢复。',
deleteSuccess: '删除成功',
deleteSuccess: '已删除',
deleteFailed: '删除失败,请稍后再试'
},
contextualGuide: {

View File

@ -2,11 +2,11 @@ import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
import "./assets/fonts.css";
import TDesign from "tdesign-vue-next";
// 引入组件库的少量全局样式变量
import "tdesign-vue-next/dist/tdesign.css";
import "@/assets/theme/theme.css";
import "@/assets/theme/tdesign-overrides.less";
import "@/assets/dropdown-menu.less";
import "@/components/css/chat-hljs-dark.less";
// vue-virtual-scroller ships its own tiny stylesheet — required for

File diff suppressed because it is too large Load Diff

View File

@ -42,7 +42,7 @@
<!-- 骨架屏占位 -->
<div v-if="loading && agents.length === 0" class="agent-card-wrap">
<div v-for="n in 6" :key="'skel-' + n" class="agent-card agent-card-skeleton">
<div v-for="n in 6" :key="'skel-' + n" class="agent-card agent-card-skeleton is-skeleton">
<div class="card-header">
<div class="card-header-left">
<t-skeleton animation="gradient"
@ -637,11 +637,9 @@
</div>
<!-- 空状态:全部(保留创建 CTA) -->
<div v-if="spaceSelection === 'all' && filteredAgents.length === 0 && !loading" class="empty-state">
<img class="empty-img" src="@/assets/img/upload.svg" alt="">
<span class="empty-txt">{{ $t('agent.empty.title') }}</span>
<span class="empty-desc">{{ $t('agent.empty.description') }}</span>
<t-button v-if="authStore.hasRole('contributor')" class="agent-create-btn empty-state-btn"
<EmptyState v-if="spaceSelection === 'all' && filteredAgents.length === 0 && !loading" icon="chat-bubble-1" :title="$t('agent.empty.title')"
:description="$t('agent.empty.description')">
<t-button v-if="authStore.hasRole('contributor')" theme="primary" class="agent-create-btn"
data-guide="agent-list-create" @click="handleCreateAgent">
<template #icon>
<span class="btn-icon-wrapper">
@ -664,25 +662,17 @@
</template>
<span>{{ $t('agent.createAgent') }}</span>
</t-button>
</div>
</EmptyState>
<!-- 空状态:收藏 / 最近 — 不放创建按钮,参见 KnowledgeBaseList 的同处理由 -->
<div v-if="spaceSelection === 'favorites' && filteredAgents.length === 0 && !loading" class="empty-state">
<t-icon name="star" size="48px" class="empty-icon" />
<span class="empty-txt">{{ $t('agent.empty.favoritesTitle') }}</span>
<span class="empty-desc">{{ $t('agent.empty.favoritesDescription') }}</span>
</div>
<div v-if="spaceSelection === 'recents' && filteredAgents.length === 0 && !loading" class="empty-state">
<t-icon name="history" size="48px" class="empty-icon" />
<span class="empty-txt">{{ $t('agent.empty.recentsTitle') }}</span>
<span class="empty-desc">{{ $t('agent.empty.recentsDescription') }}</span>
</div>
<EmptyState v-if="spaceSelection === 'favorites' && filteredAgents.length === 0 && !loading" icon="star" :title="$t('agent.empty.favoritesTitle')"
:description="$t('agent.empty.favoritesDescription')" />
<EmptyState v-if="spaceSelection === 'recents' && filteredAgents.length === 0 && !loading" icon="history" :title="$t('agent.empty.recentsTitle')"
:description="$t('agent.empty.recentsDescription')" />
<!-- 空状态:我的 -->
<div v-if="spaceSelection === 'mine' && agents.length === 0 && !loading" class="empty-state">
<img class="empty-img" src="@/assets/img/upload.svg" alt="">
<span class="empty-txt">{{ $t('agent.empty.title') }}</span>
<span class="empty-desc">{{ $t('agent.empty.description') }}</span>
<t-button v-if="authStore.hasRole('contributor')" class="agent-create-btn empty-state-btn"
<EmptyState v-if="spaceSelection === 'mine' && agents.length === 0 && !loading" icon="chat-bubble-1" :title="$t('agent.empty.title')"
:description="$t('agent.empty.description')">
<t-button v-if="authStore.hasRole('contributor')" theme="primary" class="agent-create-btn"
@click="handleCreateAgent">
<template #icon>
<span class="btn-icon-wrapper">
@ -705,34 +695,13 @@
</template>
<span>{{ $t('agent.createAgent') }}</span>
</t-button>
</div>
</EmptyState>
<!-- 空状态:空间下 -->
<div v-if="spaceSelectionOrgId && !spaceAgentsLoading && spaceAgentsList.length === 0" class="empty-state">
<img class="empty-img" src="@/assets/img/upload.svg" alt="">
<span class="empty-txt">{{ $t('agent.empty.sharedTitle') }}</span>
<span class="empty-desc">{{ $t('agent.empty.sharedDescription') }}</span>
</div>
<EmptyState v-if="spaceSelectionOrgId && !spaceAgentsLoading && spaceAgentsList.length === 0" icon="chat-bubble-1" :title="$t('agent.empty.sharedTitle')"
:description="$t('agent.empty.sharedDescription')" />
</div>
</div>
<!-- 删除确认对话框 -->
<t-dialog v-model:visible="deleteVisible" dialogClassName="del-agent-dialog" :closeBtn="false" :cancelBtn="null"
:confirmBtn="null">
<div class="circle-wrap">
<div class="dialog-header">
<img class="circle-img" src="@/assets/img/circle.png" alt="">
<span class="circle-title">{{ $t('agent.delete.confirmTitle') }}</span>
</div>
<span class="del-circle-txt">
{{ $t('agent.delete.confirmMessage', { name: deletingAgent?.name ?? '' }) }}
</span>
<div class="circle-btn">
<span class="circle-btn-txt" @click="deleteVisible = false">{{ $t('common.cancel') }}</span>
<span class="circle-btn-txt confirm" @click="confirmDelete">{{ $t('agent.delete.confirmButton') }}</span>
</div>
</div>
</t-dialog>
<!-- 共享智能体详情侧边栏 -->
<Transition name="shared-detail-drawer">
<div v-if="sharedDetailVisible && currentSharedAgent" class="shared-detail-drawer-overlay"
@ -815,6 +784,8 @@
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { MessagePlugin, Icon as TIcon } from 'tdesign-vue-next'
import EmptyState from '@/components/EmptyState.vue'
import { useConfirmDelete } from '@/components/settings/useConfirmDelete'
import { deleteAgent, copyAgent, type CustomAgent } from '@/api/agent'
import { useChatResourcesStore } from '@/stores/chatResources'
import { formatStringDate } from '@/utils/index'
@ -1054,8 +1025,7 @@ const sortedSpaceAgentsList = computed(() => {
})
})
const loading = ref(false)
const deleteVisible = ref(false)
const deletingAgent = ref<AgentWithUI | null>(null)
const confirmDelete = useConfirmDelete()
const sharedDetailVisible = ref(false)
const currentSharedAgent = ref<SharedAgentInfo | null>(null)
const sharedAgentUsesKb = computed(() => {
@ -1487,8 +1457,23 @@ const spaceAgentSectionCounts = computed<Record<AgentSectionKey, number>>(() =>
const handleDelete = (agent: AgentWithUI) => {
openMoreAgentId.value = null
deletingAgent.value = agent
deleteVisible.value = true
confirmDelete({
title: t('agent.delete.confirmTitle'),
body: t('agent.delete.confirmMessage', { name: agent.name }),
onConfirm: async () => {
try {
const res: any = await deleteAgent(agent.id)
if (res.success) {
MessagePlugin.success(t('agent.messages.deleted'))
fetchList(true)
} else {
MessagePlugin.error(res.message || t('agent.messages.deleteFailed'))
}
} catch (e: any) {
MessagePlugin.error(e?.message || t('agent.messages.deleteFailed'))
}
},
})
}
const handleCopy = (agent: AgentWithUI) => {
@ -1554,23 +1539,6 @@ const handleToggleSharedDisabledFromShared = (shared: SharedAgentInfo) => {
})
}
const confirmDelete = () => {
if (!deletingAgent.value) return
deleteAgent(deletingAgent.value.id).then((res: any) => {
if (res.success) {
MessagePlugin.success(t('agent.messages.deleted'))
deleteVisible.value = false
deletingAgent.value = null
fetchList(true)
} else {
MessagePlugin.error(res.message || t('agent.messages.deleteFailed'))
}
}).catch((e: any) => {
MessagePlugin.error(e?.message || t('agent.messages.deleteFailed'))
})
}
const handleEditorSuccess = (agent?: CustomAgent) => {
if (agent) {
editingAgent.value = agent
@ -1610,6 +1578,8 @@ defineExpose({
</script>
<style scoped lang="less">
@import (reference) '@/components/css/resource-card.less';
.agent-list-container {
margin: 0;
height: 100%;
@ -1653,9 +1623,9 @@ defineExpose({
display: inline-flex;
align-items: center;
padding: 2px 6px;
background: rgba(7, 192, 95, 0.1);
border-radius: 4px;
font-size: 12px;
background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
border-radius: var(--app-radius-xs);
font-size: var(--app-text-sm);
color: var(--td-brand-color);
margin-left: 6px;
}
@ -1683,108 +1653,40 @@ defineExpose({
margin: 0;
color: var(--td-text-color-primary);
font-family: var(--app-font-family);
font-size: 24px;
font-size: var(--app-text-4xl);
font-weight: 600;
line-height: 32px;
}
}
:deep(.agent-create-btn) {
--ripple-color: rgba(118, 75, 162, 0.3) !important;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
border: none !important;
color: var(--td-text-color-anti) !important;
position: relative;
overflow: hidden;
&:hover,
&:active,
&:focus,
&.t-is-active,
&[data-state="active"] {
background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
border: none !important;
color: var(--td-text-color-anti) !important;
}
--td-button-primary-bg-color: #667eea !important;
--td-button-primary-border-color: #667eea !important;
--td-button-primary-active-bg-color: #5a6fd6 !important;
--td-button-primary-active-border-color: #5a6fd6 !important;
.btn-icon-wrapper {
display: inline-flex;
align-items: center;
justify-content: center;
}
.sparkles-icon {
animation: twinkle 2s ease-in-out infinite;
}
&::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg,
transparent 30%,
rgba(255, 255, 255, 0.1) 50%,
transparent 70%);
transform: translateX(-100%);
transition: transform 0.6s ease;
z-index: 0;
}
&:hover::before {
transform: translateX(100%);
}
}
@keyframes twinkle {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.8;
transform: scale(0.95);
}
}
.header-subtitle {
margin: 0;
color: var(--td-text-color-placeholder);
font-family: var(--app-font-family);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 400;
line-height: 20px;
}
.header-action-btn {
padding: 0 !important;
min-width: 28px !important;
width: 28px !important;
height: 28px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
background: var(--td-bg-color-secondarycontainer) !important;
border: 1px solid var(--td-component-stroke) !important;
border-radius: 6px !important;
padding: 0;
min-width: 28px;
width: 28px;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--td-bg-color-secondarycontainer);
border: 1px solid var(--td-component-stroke);
border-radius: var(--app-radius-sm);
color: var(--td-text-color-secondary);
cursor: pointer;
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--td-bg-color-container) 72%, transparent);
transition: background 0.2s, border-color 0.2s, color 0.2s;
transition: background var(--app-motion-base), border-color var(--app-motion-base), color var(--app-motion-base);
&:hover {
background: var(--td-bg-color-secondarycontainer) !important;
border-color: var(--td-component-stroke) !important;
background: var(--td-bg-color-secondarycontainer);
border-color: var(--td-component-stroke);
color: var(--td-text-color-primary);
}
@ -1817,9 +1719,9 @@ defineExpose({
cursor: pointer;
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 400;
transition: color 0.2s;
transition: color var(--app-motion-base);
&:hover {
color: var(--td-text-color-primary);
@ -1843,7 +1745,7 @@ defineExpose({
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-container-hover);
flex-shrink: 0;
}
@ -1857,7 +1759,7 @@ defineExpose({
.org-source-text {
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
flex-shrink: 0;
}
@ -1867,11 +1769,11 @@ defineExpose({
align-items: center;
gap: 3px;
padding: 2px 8px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-container-hover);
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
flex-shrink: 0;
}
@ -1899,7 +1801,7 @@ defineExpose({
padding: 6px 4px 6px 0;
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
line-height: 20px;
cursor: pointer;
@ -1911,7 +1813,7 @@ defineExpose({
}
&:focus-visible {
box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0, 82, 217, 0.2));
box-shadow: 0 0 0 2px var(--td-brand-color-focus);
}
.t-icon {
@ -1921,7 +1823,7 @@ defineExpose({
.agent-section-toggle {
margin-left: 4px;
opacity: 0.7;
transition: opacity 0.15s ease;
transition: opacity var(--app-motion-fast) ease;
}
// 共享给我的两个子分组:主图标 usergroup-add 表达"共享"语义,
@ -1935,10 +1837,10 @@ defineExpose({
.agent-section-count {
margin-left: 2px;
padding: 0 6px;
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
font-size: 11px;
font-size: var(--app-text-xs);
line-height: 16px;
font-weight: 500;
}
@ -1962,49 +1864,12 @@ defineExpose({
}
.agent-card-wrap {
display: grid;
gap: 12px;
grid-template-columns: 1fr;
animation: contentFadeIn 0.32s ease-out;
}
.agent-card-skeleton {
cursor: default;
.card-header {
margin-bottom: 12px;
}
.card-content {
flex: 1;
}
.card-bottom {
margin-top: auto;
}
.resource-card-grid();
}
/* 与知识库列表卡片统一尺寸:紧凑行高、148px 卡片高 */
.agent-card {
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
overflow: hidden;
box-sizing: border-box;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
background: var(--td-bg-color-container);
position: relative;
cursor: pointer;
transition: all 0.25s ease;
padding: 12px 14px;
display: flex;
flex-direction: column;
height: 136px;
min-height: 136px;
&:hover {
border-color: var(--td-brand-color);
box-shadow: 0 4px 12px rgba(7, 192, 95, 0.12);
}
.resource-card();
.agent-favorite-star {
// 浮在卡片右上角顶角。卡片自身有 padding,"更多"按钮在 header flex
@ -2020,20 +1885,20 @@ defineExpose({
justify-content: center;
background: transparent;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
color: var(--td-text-color-secondary);
cursor: pointer;
opacity: 0;
transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-warning-color, #e37318);
color: var(--td-warning-color);
}
&.is-favorited {
opacity: 1;
color: var(--td-warning-color, #e37318);
color: var(--td-warning-color);
}
}
@ -2043,91 +1908,51 @@ defineExpose({
// 普通模式样式
&.agent-mode-normal {
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.04) 100%);
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 4%, transparent) 100%);
&:hover {
border-color: var(--td-brand-color);
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.08) 100%);
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%);
}
.card-decoration {
color: rgba(7, 192, 95, 0.35);
color: color-mix(in srgb, var(--td-brand-color) 35%, transparent);
}
&:hover .card-decoration {
color: rgba(7, 192, 95, 0.5);
color: color-mix(in srgb, var(--td-brand-color) 50%, transparent);
}
}
// Agent 模式样式
&.agent-mode-agent {
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(124, 77, 255, 0.04) 100%);
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--app-accent-purple) 4%, transparent) 100%);
&:hover {
border-color: var(--td-brand-color);
box-shadow: 0 4px 12px rgba(124, 77, 255, 0.12);
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(124, 77, 255, 0.08) 100%);
box-shadow: 0 4px 12px color-mix(in srgb, var(--app-accent-purple) 12%, transparent);
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--app-accent-purple) 8%, transparent) 100%);
}
.card-decoration {
color: rgba(124, 77, 255, 0.35);
color: color-mix(in srgb, var(--app-accent-purple) 35%, transparent);
}
&:hover .card-decoration {
color: rgba(124, 77, 255, 0.5);
}
}
// 确保内容在装饰之上
.card-header,
.card-content,
.card-bottom {
position: relative;
z-index: 1;
}
.card-header {
margin-bottom: 6px;
}
.card-title {
font-size: 15px;
line-height: 22px;
}
.card-content {
margin-bottom: 6px;
}
.card-description {
font-size: 12px;
line-height: 17px;
}
.card-bottom {
padding-top: 6px;
}
.more-wrap {
width: 28px;
height: 28px;
.more-icon {
width: 16px;
height: 16px;
color: color-mix(in srgb, var(--app-accent-purple) 50%, transparent);
}
}
.builtin-avatar {
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--app-radius-md);
}
.edit-btn {
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--app-radius-md);
}
}
@ -2152,46 +1977,16 @@ defineExpose({
}
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 4px;
margin-bottom: 6px;
}
.card-header-left {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}
.card-title {
color: var(--td-text-color-primary);
font-family: var(--app-font-family);
font-size: 15px;
font-weight: 600;
line-height: 22px;
letter-spacing: 0.01em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
min-width: 0;
}
.builtin-badge {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 8px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-container-hover);
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
flex-shrink: 0;
}
@ -2202,22 +1997,22 @@ defineExpose({
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--app-radius-md);
flex-shrink: 0;
&.agent-emoji {
font-size: 18px;
font-size: var(--app-text-2xl);
line-height: 1;
background: var(--td-bg-color-container-hover);
}
&.normal {
background: linear-gradient(135deg, rgba(7, 192, 95, 0.15) 0%, rgba(7, 192, 95, 0.08) 100%);
background: linear-gradient(135deg, color-mix(in srgb, var(--td-brand-color) 15%, transparent) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%);
color: var(--td-brand-color-active);
}
&.agent {
background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0.08) 100%);
background: linear-gradient(135deg, color-mix(in srgb, var(--app-accent-purple) 15%, transparent) 0%, color-mix(in srgb, var(--app-accent-purple) 8%, transparent) 100%);
color: var(--td-brand-color);
}
}
@ -2228,10 +2023,10 @@ defineExpose({
height: 32px;
justify-content: center;
align-items: center;
border-radius: 8px;
border-radius: var(--app-radius-md);
cursor: pointer;
flex-shrink: 0;
transition: all 0.2s ease;
transition: all var(--app-motion-base) ease;
color: var(--td-text-color-disabled);
&:hover {
@ -2240,193 +2035,72 @@ defineExpose({
}
}
.more-wrap {
display: flex;
width: 28px;
height: 28px;
justify-content: center;
align-items: center;
border-radius: 8px;
cursor: pointer;
flex-shrink: 0;
transition: all 0.2s ease;
opacity: 0;
.agent-card:hover & {
opacity: 0.6;
}
&:hover {
background: var(--td-bg-color-container-hover);
opacity: 1 !important;
}
&.active-more {
background: var(--td-bg-color-container-hover);
opacity: 1 !important;
}
.more-icon {
width: 16px;
height: 16px;
}
}
/* 与知识库卡片内容区一致 */
.card-content {
flex: 1;
min-height: 0;
margin-bottom: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 6px;
}
/* 三个列表卡片统一:描述字体 */
.card-description {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
font-size: 12px;
font-weight: 400;
line-height: 18px;
}
.card-bottom {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: auto;
padding-top: 8px;
border-top: .5px solid var(--td-component-stroke);
}
.bottom-left {
display: flex;
align-items: center;
gap: 8px;
}
.feature-badges {
display: flex;
align-items: center;
gap: 4px;
}
.feature-badge {
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 5px;
cursor: default;
transition: background 0.2s ease;
.resource-feature-badge();
&.mode-normal {
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
color: var(--td-brand-color-active);
&:hover {
background: rgba(7, 192, 95, 0.12);
background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);
}
}
&.mode-agent {
background: rgba(124, 77, 255, 0.08);
background: color-mix(in srgb, var(--app-accent-purple) 8%, transparent);
color: var(--td-brand-color);
&:hover {
background: rgba(124, 77, 255, 0.12);
background: color-mix(in srgb, var(--app-accent-purple) 12%, transparent);
}
}
&.web-search {
background: rgba(255, 152, 0, 0.08);
background: color-mix(in srgb, var(--td-warning-color) 8%, transparent);
color: var(--td-warning-color);
&:hover {
background: rgba(255, 152, 0, 0.12);
background: color-mix(in srgb, var(--td-warning-color) 12%, transparent);
}
}
&.knowledge {
background: rgba(7, 192, 95, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
color: var(--td-brand-color-active);
&:hover {
background: rgba(7, 192, 95, 0.12);
background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);
}
}
&.mcp {
background: rgba(236, 72, 153, 0.08);
background: color-mix(in srgb, var(--td-error-color) 8%, transparent);
color: var(--td-error-color);
&:hover {
background: rgba(236, 72, 153, 0.12);
background: color-mix(in srgb, var(--td-error-color) 12%, transparent);
}
}
&.multi-turn {
background: rgba(59, 130, 246, 0.08);
background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);
color: var(--td-brand-color);
&:hover {
background: rgba(59, 130, 246, 0.12);
background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);
}
}
}
.card-time {
color: var(--td-text-color-placeholder);
font-family: var(--app-font-family);
font-size: 12px;
font-weight: 400;
}
.empty-state {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 60px 20px;
.empty-img {
width: 162px;
height: 162px;
margin-bottom: 20px;
}
.empty-txt {
color: var(--td-text-color-placeholder);
font-family: var(--app-font-family);
font-size: 16px;
font-weight: 600;
line-height: 26px;
margin-bottom: 8px;
}
.empty-desc {
color: var(--td-text-color-disabled);
font-family: var(--app-font-family);
font-size: 14px;
font-weight: 400;
line-height: 22px;
margin-bottom: 0;
}
.empty-state-btn {
margin-top: 20px;
}
}
// 响应式布局
@media (min-width: 900px) {
.agent-card-wrap {
@ -2459,88 +2133,10 @@ defineExpose({
}
// 删除确认对话框样式
:deep(.del-agent-dialog) {
padding: 0px !important;
border-radius: 6px !important;
.t-dialog__header {
display: none;
}
.t-dialog__body {
padding: 16px;
}
.t-dialog__footer {
padding: 0;
}
}
:deep(.t-dialog__position.t-dialog--top) {
padding-top: 40vh !important;
}
.circle-wrap {
.dialog-header {
display: flex;
align-items: center;
margin-bottom: 8px;
}
.circle-img {
width: 20px;
height: 20px;
margin-right: 8px;
}
.circle-title {
color: var(--td-text-color-primary);
font-family: var(--app-font-family);
font-size: 16px;
font-weight: 600;
line-height: 24px;
}
.del-circle-txt {
color: var(--td-text-color-placeholder);
font-family: var(--app-font-family);
font-size: 14px;
font-weight: 400;
line-height: 22px;
display: inline-block;
margin-left: 29px;
margin-bottom: 21px;
}
.circle-btn {
height: 22px;
width: 100%;
display: flex;
justify-content: flex-end;
}
.circle-btn-txt {
color: var(--td-text-color-primary);
font-family: var(--app-font-family);
font-size: 14px;
font-weight: 400;
line-height: 22px;
cursor: pointer;
&:hover {
opacity: 0.8;
}
}
.confirm {
color: var(--td-error-color);
margin-left: 40px;
&:hover {
opacity: 0.8;
}
}
}
</style>
<style lang="less">
@ -2581,7 +2177,7 @@ defineExpose({
.shared-detail-drawer-title {
margin: 0;
font-size: 18px;
font-size: var(--app-text-2xl);
font-weight: 600;
color: var(--td-text-color-primary);
}
@ -2590,14 +2186,14 @@ defineExpose({
width: 32px;
height: 32px;
border: none;
border-radius: 6px;
border-radius: var(--app-radius-sm);
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s ease, color 0.2s ease;
transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;
&:hover {
background: var(--td-bg-color-secondarycontainer);
@ -2621,7 +2217,7 @@ defineExpose({
}
.shared-detail-drawer-body .shared-detail-section-title {
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
color: var(--td-text-color-primary);
margin: 20px 0 12px 0;
@ -2630,13 +2226,13 @@ defineExpose({
}
.shared-detail-drawer-body .shared-detail-label {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
line-height: 1.4;
}
.shared-detail-drawer-body .shared-detail-value {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
line-height: 1.5;
word-break: break-word;

View File

@ -1097,7 +1097,7 @@ onMounted(async () => {
}
.showcase-description {
font-size: 15px;
font-size: var(--app-text-lg);
color: rgba(255, 255, 255, 0.8);
margin: 0 0 28px 0;
font-family: var(--app-font-family);
@ -1117,7 +1117,7 @@ onMounted(async () => {
background: rgba(255, 255, 255, 0.2);
border-radius: 20px;
color: var(--td-text-color-anti);
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 500;
font-family: var(--app-font-family);
}
@ -1149,7 +1149,7 @@ onMounted(async () => {
height: 10px;
background: rgba(255, 255, 255, 0.5);
opacity: 1;
transition: all 0.3s ease;
transition: all var(--app-motion-slow) ease;
margin: 0 6px !important;
}
@ -1230,7 +1230,7 @@ onMounted(async () => {
border: 1px solid rgba(255, 255, 255, 0.25);
color: var(--td-text-color-anti);
text-decoration: none;
font-size: 13px;
font-size: var(--app-text-md);
font-weight: 600;
font-family: var(--app-font-family);
letter-spacing: 0.2px;
@ -1261,7 +1261,7 @@ onMounted(async () => {
color: var(--td-text-color-anti);
.lang-flag-icon {
font-size: 16px;
font-size: var(--app-text-xl);
line-height: 1;
flex-shrink: 0;
}
@ -1285,7 +1285,7 @@ onMounted(async () => {
min-width: 160px;
background: rgba(255, 255, 255, 0.97);
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
overflow: hidden;
z-index: 1000;
@ -1297,12 +1297,12 @@ onMounted(async () => {
gap: 10px;
padding: 10px 14px;
cursor: pointer;
font-size: 13px;
font-size: var(--app-text-md);
font-family: var(--app-font-family);
color: var(--td-text-color-primary);
.lang-flag {
font-size: 16px;
font-size: var(--app-text-xl);
flex-shrink: 0;
}
@ -1313,7 +1313,7 @@ onMounted(async () => {
.check-icon {
color: var(--td-success-color);
font-weight: 700;
font-size: 14px;
font-size: var(--app-text-base);
flex-shrink: 0;
}
@ -1348,15 +1348,15 @@ onMounted(async () => {
gap: 10px;
padding: 12px 14px;
margin-bottom: 20px;
border-radius: 10px;
background: var(--td-bg-color-container-hover, rgba(0, 0, 0, 0.03));
border-radius: var(--app-radius-lg);
background: var(--td-bg-color-container-hover);
border: 1px solid var(--td-component-stroke);
color: var(--td-text-color-primary);
}
.invite-banner__icon {
margin-top: 2px;
font-size: 18px;
font-size: var(--app-text-2xl);
flex-shrink: 0;
color: var(--td-text-color-secondary);
}
@ -1369,23 +1369,23 @@ onMounted(async () => {
}
.invite-banner__title {
font-size: 14px;
font-size: var(--app-text-base);
font-weight: 600;
line-height: 1.4;
color: var(--td-text-color-primary);
}
.invite-banner__hint {
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-secondary);
line-height: 1.5;
}
.invite-banner--error {
background: var(--td-error-color-1, rgba(220, 38, 38, 0.06));
border-color: var(--td-error-color-3, rgba(220, 38, 38, 0.2));
color: var(--td-error-color, #b91c1c);
font-size: 13px;
background: var(--td-error-color-1);
border-color: var(--td-error-color-3);
color: var(--td-error-color);
font-size: var(--app-text-md);
}
.form-header {
@ -1394,7 +1394,7 @@ onMounted(async () => {
}
.form-title {
font-size: 24px;
font-size: var(--app-text-4xl);
font-weight: 600;
color: var(--td-text-color-primary);
margin: 0 0 6px 0;
@ -1402,7 +1402,7 @@ onMounted(async () => {
}
.form-welcome {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
margin: 0;
font-family: var(--app-font-family);
@ -1411,8 +1411,8 @@ onMounted(async () => {
.form-hint {
margin: 10px 0 0;
padding: 8px 12px;
border-radius: 8px;
background: var(--td-success-color-light, rgba(7, 192, 95, 0.08));
border-radius: var(--app-radius-md);
background: var(--td-success-color-light);
color: var(--td-brand-color-active);
font-size: 12.5px;
line-height: 1.5;
@ -1429,7 +1429,7 @@ onMounted(async () => {
text-align: center;
margin: 4px 0 14px;
color: var(--td-text-color-secondary);
font-size: 13px;
font-size: var(--app-text-md);
font-family: var(--app-font-family);
span {
@ -1451,8 +1451,8 @@ onMounted(async () => {
&__button {
height: 46px;
border-radius: 8px;
font-size: 15px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-lg);
font-weight: 500;
border-color: var(--td-brand-color);
color: var(--td-brand-color);
@ -1460,13 +1460,13 @@ onMounted(async () => {
&:hover {
border-color: var(--td-brand-color-active);
color: var(--td-brand-color-active);
background: var(--td-success-color-light, rgba(7, 192, 95, 0.08));
background: var(--td-success-color-light);
}
}
}
.form-subtitle {
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
margin: 0;
font-family: var(--app-font-family);
@ -1474,7 +1474,7 @@ onMounted(async () => {
.form-content {
:deep(.t-form-item__label) {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-primary);
font-weight: 500;
margin-bottom: 8px;
@ -1485,13 +1485,13 @@ onMounted(async () => {
:deep(.t-input) {
border: 1px solid var(--td-component-stroke);
border-radius: 8px;
border-radius: var(--app-radius-md);
background: var(--td-bg-color-container);
transition: all 0.2s;
transition: all var(--app-motion-base);
&:focus-within {
border-color: var(--td-brand-color);
box-shadow: 0 0 0 3px rgba(7, 192, 95, 0.1);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--td-brand-color) 10%, transparent);
}
&:hover {
@ -1503,7 +1503,7 @@ onMounted(async () => {
box-shadow: none !important;
outline: none !important;
background: transparent;
font-size: 15px;
font-size: var(--app-text-lg);
font-family: var(--app-font-family);
&:focus {
@ -1534,8 +1534,8 @@ onMounted(async () => {
.submit-button {
height: 46px;
border-radius: 8px;
font-size: 16px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-xl);
font-weight: 500;
font-family: var(--app-font-family);
margin: 20px 0 16px 0;
@ -1546,7 +1546,7 @@ onMounted(async () => {
margin: 4px 0 6px;
text-align: center;
color: var(--td-text-color-placeholder);
font-size: 12px;
font-size: var(--app-text-sm);
span {
position: relative;
@ -1567,14 +1567,14 @@ onMounted(async () => {
.oidc-button {
height: 46px;
border-radius: 8px;
font-size: 15px;
border-radius: var(--app-radius-md);
font-size: var(--app-text-lg);
font-weight: 500;
}
.form-footer {
text-align: center;
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
margin-top: 16px;
@ -1586,7 +1586,7 @@ onMounted(async () => {
text-decoration: none;
margin-left: 4px;
font-weight: 500;
transition: all 0.2s;
transition: all var(--app-motion-base);
&:hover {
color: var(--td-brand-color);
@ -1609,7 +1609,7 @@ onMounted(async () => {
display: flex;
align-items: center;
margin-bottom: 12px;
font-size: 13px;
font-size: var(--app-text-md);
color: var(--td-text-color-secondary);
font-family: var(--app-font-family);
@ -1626,7 +1626,7 @@ onMounted(async () => {
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 700;
margin-right: 10px;
flex-shrink: 0;
@ -1649,7 +1649,7 @@ onMounted(async () => {
}
.showcase-subtitle {
font-size: 18px;
font-size: var(--app-text-2xl);
}
.header-logo {
@ -1710,7 +1710,7 @@ onMounted(async () => {
}
.showcase-subtitle {
font-size: 16px;
font-size: var(--app-text-xl);
margin-bottom: 24px;
}
@ -1738,7 +1738,7 @@ onMounted(async () => {
.header-link {
padding: 8px 12px;
font-size: 12px;
font-size: var(--app-text-sm);
}
}
@ -1770,11 +1770,11 @@ onMounted(async () => {
}
.showcase-subtitle {
font-size: 14px;
font-size: var(--app-text-base);
}
.tag {
font-size: 12px;
font-size: var(--app-text-sm);
padding: 6px 16px;
}
@ -1790,7 +1790,7 @@ onMounted(async () => {
.header-link {
padding: 7px 10px;
font-size: 11px;
font-size: var(--app-text-xs);
}
}

View File

@ -191,13 +191,13 @@ h1 {
min-height: 52px;
margin-bottom: 18px;
color: var(--td-text-color-secondary);
font-size: 14px;
font-size: var(--app-text-base);
}
.policy-error {
flex-wrap: wrap;
padding: 12px 16px;
border-radius: 10px;
border-radius: var(--app-radius-lg);
color: var(--td-error-color);
background: var(--td-error-color-light);
}
@ -205,7 +205,7 @@ h1 {
.invite-only-notice {
padding: 12px 16px;
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
border-radius: var(--app-radius-lg);
color: var(--td-text-color-primary);
background: var(--td-bg-color-secondarycontainer);
line-height: 1.5;
@ -218,7 +218,7 @@ h1 {
.workspace-help {
margin: 24px 0 8px;
font-size: 13px;
font-size: var(--app-text-md);
}
.logout-link {

View File

@ -35,7 +35,7 @@ test('agent steps use compact muted timeline styling', () => {
assert.match(source, /--agent-step-icon-color:\s*var\(--td-text-color-placeholder\)/)
assert.match(source, /max-height:\s*none/)
assert.match(source, /overflow-y:\s*visible/)
assert.match(source, /\.tree-root \.action-name\s*\{[\s\S]*font-size:\s*14px/)
assert.match(source, /\.tree-root \.action-name\s*\{[\s\S]*font-size:\s*(?:14px|var\(--app-text-base\))/)
assert.match(source, /\.tree-child \.action-title-icon\s*\{[\s\S]*position:\s*absolute/)
assert.match(source, /function maskIconStyle\(src: string, size = 18\)/)
assert.match(source, /\.icon-mask\s*\{[\s\S]*background-color:\s*var\(--agent-step-icon-color\)/)

View File

@ -3373,7 +3373,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
border-left: 0;
overflow: visible;
position: relative;
transition: border-color 0.2s ease;
transition: border-color var(--app-motion-base) ease;
box-shadow: none;
>* {
@ -3409,7 +3409,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
.tool-summary {
padding: 6px 12px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-primary);
background: var(--td-bg-color-container);
border-top: 1px solid var(--td-component-stroke);
@ -3439,7 +3439,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
background: var(--td-bg-color-secondarycontainer);
padding: 2px 5px;
border-radius: 3px;
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-brand-color);
font-weight: 500;
}
@ -3461,7 +3461,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
min-height: 24px;
cursor: pointer;
user-select: none;
transition: background-color 0.15s ease;
transition: background-color var(--app-motion-fast) ease;
&:hover {
background-color: transparent;
@ -3533,7 +3533,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
border-radius: 9px;
background: var(--stream-brand-10);
color: color-mix(in srgb, var(--td-brand-color) 80%, var(--td-text-color-secondary));
font-size: 11px;
font-size: var(--app-text-xs);
font-weight: 500;
white-space: nowrap;
flex-shrink: 0;
@ -3562,18 +3562,6 @@ const handleAddToKnowledge = (answerEvent: any) => {
}
}
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
@ -3586,71 +3574,6 @@ const handleAddToKnowledge = (answerEvent: any) => {
}
}
@keyframes pulse {
0%,
100% {
transform: scale(1);
opacity: 0.8;
}
50% {
transform: scale(1.5);
opacity: 0.3;
}
}
@keyframes pulseBorder {
0%,
100% {
border-left-color: var(--td-brand-color);
box-shadow: 0 1px 3px var(--stream-brand-6);
}
50% {
border-left-color: var(--td-brand-color);
box-shadow: 0 1px 4px var(--stream-brand-12);
}
}
@keyframes shakeError {
0%,
100% {
transform: translateX(0);
}
10%,
30%,
50%,
70%,
90% {
transform: translateX(-2px);
}
20%,
40%,
60%,
80% {
transform: translateX(2px);
}
}
@keyframes actionPendingShimmer {
0% {
transform: translateX(-90%);
}
50% {
transform: translateX(-5%);
}
100% {
transform: translateX(90%);
}
}
.action-name {
font-size: var(--agent-step-text-size);
font-weight: 400;
@ -3669,7 +3592,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
gap: 6px;
margin-left: 4px;
font-variant-numeric: tabular-nums;
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
flex-shrink: 0;
letter-spacing: 0.02em;
@ -3687,11 +3610,11 @@ const handleAddToKnowledge = (answerEvent: any) => {
margin: 6px 0 0;
padding: 8px 10px;
font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 12px;
font-size: var(--app-text-sm);
line-height: 1.5;
color: var(--td-text-color-secondary);
background: var(--td-bg-color-secondarycontainer);
border-radius: 6px;
border-radius: var(--app-radius-sm);
pre {
margin: 0;
@ -3704,12 +3627,12 @@ const handleAddToKnowledge = (answerEvent: any) => {
.sandbox-file-preview-more {
margin-top: 4px;
font-size: 12px;
font-size: var(--app-text-sm);
color: var(--td-text-color-placeholder);
}
.action-show-icon {
font-size: 12px;
font-size: var(--app-text-sm);
padding: 0 2px;
color: var(--td-text-color-placeholder);
flex-shrink: 0;
@ -3765,7 +3688,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
flex-wrap: wrap;
.status-icon {
font-size: 14px;
font-size: var(--app-text-base);
flex-shrink: 0;
&.in-progress {
@ -3794,16 +3717,6 @@ const handleAddToKnowledge = (answerEvent: any) => {
}
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.plan-task-change-event {
min-height: 24px;
@ -3837,7 +3750,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
padding: 0 4px;
.fallback-label {
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-secondary);
font-weight: 500;
line-height: 1.5;
@ -3848,14 +3761,14 @@ const handleAddToKnowledge = (answerEvent: any) => {
position: relative;
background: var(--td-bg-color-secondarycontainer);
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
border-radius: var(--app-radius-sm);
overflow: hidden;
margin: 0;
padding: 0;
.detail-output {
font-family: var(--app-font-family-mono);
font-size: 11px;
font-size: var(--app-text-xs);
color: var(--td-text-color-primary);
padding: 12px;
margin: 0;
@ -3899,7 +3812,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
margin-bottom: 6px;
.arguments-label {
font-size: 12px;
font-size: var(--app-text-sm);
font-weight: 600;
color: var(--td-text-color-secondary);
text-transform: uppercase;
@ -3908,10 +3821,10 @@ const handleAddToKnowledge = (answerEvent: any) => {
}
.detail-code {
font-size: 12px;
font-size: var(--app-text-sm);
background: var(--td-bg-color-container);
padding: 10px;
border-radius: 6px;
border-radius: var(--app-radius-sm);
font-family: var(--app-font-family-mono);
color: var(--td-text-color-primary);
margin: 0;
@ -4058,7 +3971,7 @@ const handleAddToKnowledge = (answerEvent: any) => {
}
.tree-root .action-name {
font-size: 14px;
font-size: var(--app-text-base);
color: var(--td-text-color-secondary);
}
@ -4078,204 +3991,4 @@ const handleAddToKnowledge = (answerEvent: any) => {
}
</style>
<style lang="less">
/* Global styles for teleported components */
.wiki-graph-drawer {
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
.wiki-reader-meta {
display: flex;
align-items: center;
gap: 12px;
}
.wiki-reader-meta-text {
font-size: 13px;
color: var(--td-text-color-placeholder);
}
// Wiki drawer is a non-chat reader surface. Chat answer Markdown styles are
// centralized in chat-markdown.less; do not copy these rules into chat message components.
.wiki-reader-body {
line-height: 1.6;
font-size: 14px;
color: var(--td-text-color-primary);
h1 {
font-size: 24px;
margin: 28px 0 16px;
font-weight: 600;
line-height: 1.4;
}
h2 {
font-size: 18px;
margin: 24px 0 12px;
font-weight: 600;
line-height: 1.4;
}
h3 {
font-size: 16px;
margin: 20px 0 10px;
font-weight: 600;
line-height: 1.5;
}
h4,
h5,
h6 {
font-size: 14px;
margin: 16px 0 8px;
font-weight: 600;
line-height: 1.5;
}
p {
margin: 0 0 14px;
}
ul,
ol {
margin: 0 0 14px;
padding-left: 24px;
}
li {
margin-bottom: 6px;
line-height: 1.6;
}
li>p {
margin-bottom: 6px;
}
blockquote {
margin: 0 0 14px;
padding: 10px 16px;
background: var(--td-bg-color-secondarycontainer);
border-left: 4px solid var(--td-component-border);
border-radius: 0 4px 4px 0;
color: var(--td-text-color-secondary);
}
code {
font-family: var(--app-font-family-mono);
font-size: 13px;
padding: 2px 4px;
background: var(--td-bg-color-secondarycontainer);
border-radius: 4px;
color: var(--td-brand-color);
}
pre {
margin: 0 0 14px;
padding: 12px 16px;
background: var(--td-bg-color-secondarycontainer);
border-radius: 6px;
overflow-x: auto;
code {
padding: 0;
background: transparent;
color: inherit;
}
}
p:has(img) {
text-align: center;
color: var(--td-text-color-secondary);
font-size: 13px;
margin-top: 16px;
margin-bottom: 24px;
img {
max-width: 100%;
max-height: 400px;
object-fit: contain;
border-radius: 6px;
display: block;
margin: 0 auto 8px;
cursor: zoom-in;
transition: opacity 0.2s;
&:hover {
opacity: 0.9;
}
}
}
a.wiki-content-link {
color: var(--td-brand-color);
text-decoration: none;
border-bottom: 1px dashed var(--td-brand-color);
cursor: pointer;
font-weight: 500;
&:hover {
border-bottom-style: solid;
text-decoration: none !important;
}
}
.chat-markdown-table {
width: fit-content;
max-width: 100%;
overflow-x: auto;
margin: 0 0 16px;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: 6px;
-webkit-overflow-scrolling: touch;
}
table {
display: table;
width: max-content;
min-width: 0;
border-collapse: separate;
border-spacing: 0;
font-size: 13px;
line-height: 1.55;
}
table thead {
background: var(--td-bg-color-secondarycontainer);
}
table th,
table td {
padding: 8px 12px;
border-bottom: 1px solid var(--td-component-stroke);
border-right: 1px solid var(--td-component-stroke);
text-align: left;
vertical-align: top;
word-break: break-word;
}
table th {
font-weight: 600;
color: var(--td-text-color-primary);
white-space: nowrap;
}
table th:last-child,
table td:last-child {
border-right: none;
}
table tbody tr:last-child td {
border-bottom: none;
}
table tbody tr:hover {
background: var(--td-bg-color-secondarycontainer);
}
table code {
font-size: 12px;
}
}
}
</style>
<style lang="less" src="@/components/css/wiki-graph-drawer.less"></style>

View File

@ -106,16 +106,16 @@ onMounted(() => { document.addEventListener('visibilitychange', onVisible); void
onBeforeUnmount(() => { alive = false; document.removeEventListener('visibilitychange', onVisible); revision++; cancelTimer?.(); controller.abort(); preview.value = '' })
</script>
<style scoped>
.browser-task-preview { position: absolute; right: 20px; bottom: 16px; width: 240px; max-width: calc(100% - 40px); max-height: calc(100% - 24px); box-sizing: border-box; z-index: 5; overflow: auto; background: var(--td-bg-color-container); border: 1px solid var(--td-component-border); border-radius: 12px; box-shadow: 0 4px 20px #0000000d; }
.browser-task-preview { position: absolute; right: 20px; bottom: 16px; width: 240px; max-width: calc(100% - 40px); max-height: calc(100% - 24px); box-sizing: border-box; z-index: 5; overflow: auto; background: var(--td-bg-color-container); border: 1px solid var(--td-component-border); border-radius: var(--app-radius-xl); box-shadow: 0 4px 20px #0000000d; }
.preview-browser-icon { flex-shrink: 0; color: var(--td-text-color-secondary); }
.preview-heading { display: flex; align-items: center; gap: 7px; padding: 10px 12px; cursor: grab; touch-action: none; user-select: none; position: sticky; top: 0; z-index: 1; background: var(--td-bg-color-container); }.is-dragging .preview-heading { cursor: grabbing; }.preview-heading strong { font-size: 12px; font-weight: 500; flex: 1; }.preview-heading span { color: var(--td-text-color-secondary); font-size: 11px; }
.preview-image { width: 100%; height: 126px; border: 0; border-block: 1px solid var(--td-component-border); background: var(--td-bg-color-secondarycontainer); color: var(--td-text-color-secondary); display: grid; place-items: center; position: relative; cursor: pointer; padding: 0; font-size: 12px; }.preview-image:disabled { cursor: default; }.preview-image img { width: 100%; height: 100%; object-fit: contain; object-position: top; }.preview-image:focus-visible { outline: 2px solid var(--td-brand-color); outline-offset: -2px; }.locate { position: absolute; display: inline-flex; align-items: center; gap: 5px; bottom: 8px; padding: 4px 8px; border-radius: 5px; background: var(--td-bg-color-container); color: var(--td-text-color-primary); box-shadow: 0 1px 5px #00000014; }.preview-image:hover .locate { color: var(--td-brand-color); }
.preview-progress, .preview-address, .preview-sync, .preview-help, .preview-scope { font-size: 11px; line-height: 1.5; margin: 6px 12px; color: var(--td-text-color-secondary); }
.preview-heading { display: flex; align-items: center; gap: 7px; padding: 10px 12px; cursor: grab; touch-action: none; user-select: none; position: sticky; top: 0; z-index: 1; background: var(--td-bg-color-container); }.is-dragging .preview-heading { cursor: grabbing; }.preview-heading strong { font-size: var(--app-text-sm); font-weight: 500; flex: 1; }.preview-heading span { color: var(--td-text-color-secondary); font-size: var(--app-text-xs); }
.preview-image { width: 100%; height: 126px; border: 0; border-block: 1px solid var(--td-component-border); background: var(--td-bg-color-secondarycontainer); color: var(--td-text-color-secondary); display: grid; place-items: center; position: relative; cursor: pointer; padding: 0; font-size: var(--app-text-sm); }.preview-image:disabled { cursor: default; }.preview-image img { width: 100%; height: 100%; object-fit: contain; object-position: top; }.preview-image:focus-visible { outline: 2px solid var(--td-brand-color); outline-offset: -2px; }.locate { position: absolute; display: inline-flex; align-items: center; gap: 5px; bottom: 8px; padding: 4px 8px; border-radius: 5px; background: var(--td-bg-color-container); color: var(--td-text-color-primary); box-shadow: 0 1px 5px #00000014; }.preview-image:hover .locate { color: var(--td-brand-color); }
.preview-progress, .preview-address, .preview-sync, .preview-help, .preview-scope { font-size: var(--app-text-xs); line-height: 1.5; margin: 6px 12px; color: var(--td-text-color-secondary); }
.preview-address { overflow-wrap: anywhere; }
.preview-help { color: var(--td-brand-color); }
.preview-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; padding: 5px 8px; }.preview-error { margin: 8px 12px; color: var(--td-error-color); font-size: 12px; line-height: 1.5; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; padding: 5px 8px; }.preview-error { margin: 8px 12px; color: var(--td-error-color); font-size: var(--app-text-sm); line-height: 1.5; }
@media(max-width:720px){.browser-task-preview { right: 12px; bottom: 12px; width: 200px; }.preview-image { height: 100px; }}
.preview-popout { display: grid; place-items: center; flex-shrink: 0; padding: 3px; border: 0; border-radius: 4px; background: transparent; color: var(--td-text-color-secondary); cursor: pointer; }
.preview-popout { display: grid; place-items: center; flex-shrink: 0; padding: 3px; border: 0; border-radius: var(--app-radius-xs); background: transparent; color: var(--td-text-color-secondary); cursor: pointer; }
.preview-popout:hover { background: var(--td-bg-color-secondarycontainer); color: var(--td-brand-color); }
.preview-popout:focus-visible { outline: 2px solid var(--td-brand-color); }
.preview-popout:disabled { opacity: .5; cursor: wait; }
@ -124,8 +124,8 @@ onBeforeUnmount(() => { alive = false; document.removeEventListener('visibilityc
.is-pip .preview-image { height: clamp(126px, 45vh, 480px); }
.browser-task-preview.needs-help { width: 420px; }
.preview-handoff { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-top: 1px solid var(--td-component-border); background: var(--td-bg-color-secondarycontainer); overflow-wrap: anywhere; }
.preview-handoff strong { font-size: 13px; font-weight: 600; color: var(--td-text-color-primary); }
.preview-handoff p { font-size: 12px; line-height: 1.6; margin: 0; color: var(--td-text-color-secondary); white-space: pre-wrap; }
.preview-handoff strong { font-size: var(--app-text-md); font-weight: 600; color: var(--td-text-color-primary); }
.preview-handoff p { font-size: var(--app-text-sm); line-height: 1.6; margin: 0; color: var(--td-text-color-secondary); white-space: pre-wrap; }
.preview-handoff .handoff-prompt { max-height: 22vh; overflow-y: auto; color: var(--td-text-color-primary); }
.preview-handoff .handoff-locate { align-self: flex-end; flex-shrink: 0; max-width: 100%; margin-top: 2px; }
.needs-help .preview-image { height: clamp(140px, 30vh, 260px); }

Some files were not shown because too many files have changed in this diff Show More