|
|
@@ -26,11 +26,11 @@ const statusLabel = computed(() => props.group.status === 'running' ? '进行中
|
|
|
</summary>
|
|
|
<div class="turn-trace__content">
|
|
|
<template v-for="entry in group.entries" :key="entry.id">
|
|
|
- <section v-if="entry.type === 'reasoning'" class="turn-trace__reasoning">
|
|
|
+ <section v-if="entry.type === 'reasoning'" class="turn-trace__item turn-trace__reasoning">
|
|
|
<header><AppIcon name="brain" :size="12" />思考过程 · {{ entry.content.length }} 字</header>
|
|
|
<MarkdownContent :content="entry.content" />
|
|
|
</section>
|
|
|
- <ToolTrace v-else :tool="entry.tool" expanded />
|
|
|
+ <ToolTrace v-else class="turn-trace__item turn-trace__tool" :tool="entry.tool" expanded />
|
|
|
</template>
|
|
|
</div>
|
|
|
</details>
|
|
|
@@ -39,7 +39,9 @@ const statusLabel = computed(() => props.group.status === 'running' ? '进行中
|
|
|
<style scoped>
|
|
|
.turn-trace { width: min(680px, 100%); margin: 2px 0 9px; color: var(--text-muted); }.turn-trace > summary { display: flex; width: fit-content; min-height: 28px; align-items: center; gap: 6px; padding: 2px 7px 2px 2px; border-radius: 7px; cursor: pointer; list-style: none; transition: background-color 100ms ease, color 100ms ease; }.turn-trace > summary::-webkit-details-marker { display: none; }.turn-trace > summary:hover, .turn-trace > summary:focus-visible { outline: 0; background: var(--surface-soft); color: var(--text-secondary); }.turn-trace > summary strong { color: var(--text-secondary); font-size: 10px; font-weight: 540; }.turn-trace > summary small { font-size: 9px; }.turn-trace > summary em { color: var(--warning); font-size: 8px; font-style: normal; }.turn-trace--error > summary em { color: var(--danger); }
|
|
|
.turn-trace__caret { display: inline-block; width: 9px; font-size: 14px; line-height: 1; transition: transform 120ms ease; }.turn-trace[open] .turn-trace__caret { transform: rotate(90deg); }
|
|
|
-.turn-trace__content { margin: 1px 0 6px 9px; padding: 2px 0 4px 13px; border-left: 1px dashed var(--line-strong); }.turn-trace__reasoning { max-width: 620px; padding: 7px 0 5px; color: var(--text-secondary); }.turn-trace__reasoning header { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--text-muted); font-size: 9px; }.turn-trace__reasoning :deep(.markdown) { font-size: 11px; line-height: 1.58; }
|
|
|
-.turn-trace :deep(.tool-trace) { margin-block: 5px; }
|
|
|
+.turn-trace__content { display: grid; max-height: min(420px, 52vh); margin: 1px 0 6px 9px; padding: 2px 8px 4px 13px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border-left: 1px dashed var(--line-strong); }
|
|
|
+.turn-trace__item { min-width: 0; }
|
|
|
+.turn-trace__reasoning { max-width: 620px; padding: 7px 0 5px; color: var(--text-secondary); }.turn-trace__reasoning header { display: flex; min-height: 22px; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--text-muted); font-size: 9px; }.turn-trace__reasoning :deep(.markdown) { font-size: 11px; line-height: 1.58; }
|
|
|
+.turn-trace :deep(.turn-trace__tool) { margin: 0; padding: 5px 0; }
|
|
|
@media (prefers-reduced-motion: reduce) { .turn-trace > summary, .turn-trace__caret { transition: none; } }
|
|
|
</style>
|