mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-04 00:00:59 +00:00
fix(ui): refine table spacing and provider icon sizes
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -15,6 +15,7 @@ const provider = defineModel<string>({ required: true })
|
||||
<div class="min-w-0 overflow-x-auto">
|
||||
<ProviderSelect
|
||||
v-model="provider"
|
||||
class="[&_svg]:size-3.25"
|
||||
:aria-label="t('common.providers.filter')"
|
||||
:leading-option="{ label: t('common.providers.all'), value: '', icon: LayoutGrid }"
|
||||
:disabled="disabled"
|
||||
|
||||
@@ -304,6 +304,7 @@ const {
|
||||
|
||||
<template #provider="{ row }">
|
||||
<ProviderIconGroup
|
||||
class="[&_svg]:size-3.25"
|
||||
:platform-icon="row.platformIcon" :provider="row.provider"
|
||||
:authentication-kind="row.authenticationKind"
|
||||
/>
|
||||
|
||||
@@ -129,7 +129,7 @@ const columns = computed(() => (defineTableColumns<PrivacyRule>([
|
||||
<p class="sr-only" role="status" aria-live="polite">
|
||||
{{ announcement }}
|
||||
</p>
|
||||
<ZTable :columns="columns" :data="rules" size="small" class="[&_tbody>tr>td:last-child]:pr-2!" :empty-text="t('settings.privacy.rules.noRulesYetAddOneOrStart')">
|
||||
<ZTable :columns="columns" :data="rules" size="small" :empty-text="t('settings.privacy.rules.noRulesYetAddOneOrStart')">
|
||||
<template #enabled="{ row }">
|
||||
<div class="flex items-center justify-center">
|
||||
<ZSwitch :disabled="disabled" :model-value="row.enabled" :aria-label="t('settings.privacy.rules.enableRule', { name: row.name })" @update:model-value="emit('toggle', row, $event)" />
|
||||
|
||||
@@ -84,8 +84,8 @@ const diagnosticColumns = computed(() => defineTableColumns<DiagnosticDisplayIte
|
||||
kind: 'custom',
|
||||
align: 'center',
|
||||
width: resultDimension.value === 'model'
|
||||
? 56
|
||||
: 40,
|
||||
? 72
|
||||
: 48,
|
||||
},
|
||||
])
|
||||
: []),
|
||||
@@ -103,27 +103,28 @@ const diagnosticColumns = computed(() => defineTableColumns<DiagnosticDisplayIte
|
||||
key: 'requestCount',
|
||||
label: t('usage.diagnostics.request'),
|
||||
kind: 'numeric',
|
||||
minWidth: 48,
|
||||
width: 72,
|
||||
fixedWidth: true,
|
||||
},
|
||||
{
|
||||
key: 'errorCount',
|
||||
label: t('usage.health.errors'),
|
||||
kind: 'numeric',
|
||||
align: 'center',
|
||||
minWidth: 36,
|
||||
minWidth: 48,
|
||||
},
|
||||
{
|
||||
key: 'firstTokenP95Ms',
|
||||
label: t('usage.diagnostics.performance'),
|
||||
kind: 'numeric',
|
||||
minWidth: 116,
|
||||
minWidth: 140,
|
||||
fixedWidth: resultDimension.value === 'account',
|
||||
},
|
||||
{
|
||||
key: 'estimatedCost',
|
||||
label: t('usage.fields.cost'),
|
||||
kind: 'numeric',
|
||||
minWidth: 60,
|
||||
minWidth: 96,
|
||||
},
|
||||
]))
|
||||
|
||||
@@ -179,7 +180,7 @@ function diagnosticNameDisplay(name: string) {
|
||||
<ZTable
|
||||
v-if="hasData"
|
||||
:key="resultDimension"
|
||||
class="min-h-0 max-h-80 w-full xl:max-h-none xl:contain-[size] [&_td]:px-1.5 [&_th]:px-1.5"
|
||||
class="min-h-0 max-h-80 w-full xl:max-h-none xl:contain-[size]"
|
||||
:columns="diagnosticColumns"
|
||||
:data="displayItems"
|
||||
size="small"
|
||||
|
||||
+1
-1
Submodule modules/ui updated: 5754b9b13e...6ae11ac8b3
Reference in New Issue
Block a user