refactor(ui): use canonical Tailwind classes

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zyy
2026-11-20 17:12:03 +08:00
co-authored by Codex
parent 1bf948a24f
commit 605b60e58f
5 changed files with 5 additions and 5 deletions
@@ -27,7 +27,7 @@ function select() {
>
<div class="grid gap-2">
<div
class="flex items-center gap-1 rounded-z-sm pr-1 transition-colors hover:bg-z-bg-text-hover has-[:focus-visible]:bg-z-bg-text-hover motion-reduce:transition-none"
class="flex items-center gap-1 rounded-z-sm pr-1 transition-colors hover:bg-z-bg-text-hover has-focus-visible:bg-z-bg-text-hover motion-reduce:transition-none"
>
<ZMenuItem class="min-h-18 min-w-0 py-3 hover:bg-transparent!" @click="select">
<template #icon>
@@ -15,7 +15,7 @@ const { t } = useI18n({ useScope: 'global' })
:title="t('accounts.upstream.link')"
>
<AppBrandMark variant="glyph" class="relative size-4 shrink-0" aria-hidden="true" />
<span class="font-mono text-[10px] leading-none font-heavy tracking-[0.05em] [text-box:trim-both_cap_alphabetic]">CPR</span>
<span class="font-mono text-[10px] leading-none font-heavy tracking-wider [text-box:trim-both_cap_alphabetic]">CPR</span>
</span>
</template>
@@ -85,7 +85,7 @@ function formatDuration(value: number | null | undefined) {
<template>
<section class="@container min-w-0 py-1" :aria-label="t('accounts.profile.metrics.cumulativeActivitySummary')" :aria-busy="loading">
<dl class="grid grid-cols-2 gap-y-4 @[24rem]:grid-cols-3 @[34rem]:grid-cols-5">
<dl class="grid grid-cols-2 gap-y-4 @sm:grid-cols-3 @[34rem]:grid-cols-5">
<div v-for="metric in metrics" :key="metric.label" class="min-w-0 px-2 text-center sm:px-3">
<dd class="m-0 font-mono text-z-lg leading-tight font-heavy whitespace-nowrap tabular-nums text-z-text" :title="metric.title">
<ZSkeleton v-if="loading && !profile" shape="text" class="mx-auto h-4 w-14" />
@@ -123,7 +123,7 @@ const columns = computed(() => defineTableColumns<KeyModelRow>([
{{ t('common.actions.refresh') }}
</ZButton>
</div>
<ZTable class="h-auto! max-h-[calc(var(--table-header-height)_+_10_*_var(--table-row-height)_+_2px)] min-w-0 [--z-table-row-height-sm:2.25rem]" :class="{ 'min-h-40!': !rows.length }" :columns="columns" :data="rows" :loading="pending || loading" row-key="model" size="small" show-header-when-empty>
<ZTable class="h-auto! max-h-[calc(var(--table-header-height)+10*var(--table-row-height)+2px)] min-w-0 [--z-table-row-height-sm:2.25rem]" :class="{ 'min-h-40!': !rows.length }" :columns="columns" :data="rows" :loading="pending || loading" row-key="model" size="small" show-header-when-empty>
<template #empty>
<span v-if="!error && result" class="text-z-sm text-z-text-secondary">{{ t('keys.statistics.empty') }}</span>
</template>
@@ -61,7 +61,7 @@ async function test() {
<strong class="text-z-sm font-emphasis text-z-text tabular-nums">{{ outcome.matches }}</strong>
</template>
</I18nT>
<p v-if="outcome.reason" class="col-span-2 m-0 text-z-xs break-words text-z-warning-text">
<p v-if="outcome.reason" class="col-span-2 m-0 text-z-xs wrap-break-word text-z-warning-text">
{{ outcome.reason }}
</p>
</li>