fix(usage): show error codes before localized summaries

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zyy
2026-11-28 19:34:27 +08:00
co-authored by Codex
parent c74c570228
commit 98954aefb6
@@ -57,11 +57,11 @@ const summary = computed(() => usageErrorSummary(props.record))
:aria-describedby="open ? id : undefined"
translate="no"
>
<span>{{ summary }}</span>
<template v-if="errorType && errorType !== summary">
<span class="mx-1 text-z-text-secondary" aria-hidden="true">·</span>
<code class="font-mono text-z-xs text-z-text-secondary">{{ errorType }}</code>
<span class="mx-1 text-z-text-secondary" aria-hidden="true">·</span>
</template>
<span>{{ summary }}</span>
</button>
</template>
<ZScrollbar class="w-max max-w-[min(26rem,calc(100vw-2rem))]" max-height="min(18rem, 60dvh)">