fix(settings): keep help controls transparent and consistent

Use a shared 24px square help trigger for request settings and automatic
approval details. Align the UI dependency and submodule with the disabled
link background fix.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zyy
2026-11-30 23:17:02 +08:00
co-authored by Codex
parent 5f7e1723f3
commit fa187c5031
5 changed files with 12 additions and 18 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
"build:source": "vue-tsc -p tsconfig.source.json --noEmit && vite build --mode source"
},
"dependencies": {
"@codex-proxy/ui": "github:zyycn/codex-proxy-ui#6ae11ac8b3509307a7efd54e6e4c2fc8fae98b89",
"@codex-proxy/ui": "github:zyycn/codex-proxy-ui#5f38c8bacd53e4669c0cfa57b961c8d97085ff9f",
"@fontsource-variable/inter": "^5.3.0",
"@fontsource-variable/jetbrains-mono": "^5.3.0",
"@lobehub/icons-vue": "1.2.0",
+5 -5
View File
@@ -192,8 +192,8 @@ importers:
.:
dependencies:
'@codex-proxy/ui':
specifier: github:zyycn/codex-proxy-ui#6ae11ac8b3509307a7efd54e6e4c2fc8fae98b89
version: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/6ae11ac8b3509307a7efd54e6e4c2fc8fae98b89(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)
specifier: github:zyycn/codex-proxy-ui#5f38c8bacd53e4669c0cfa57b961c8d97085ff9f
version: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/5f38c8bacd53e4669c0cfa57b961c8d97085ff9f(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)
'@fontsource-variable/inter':
specifier: ^5.3.0
version: 5.3.0
@@ -451,8 +451,8 @@ packages:
resolution: {integrity: sha512-dlT1m5e/0yUL0kRNcQn7yGLVThkgbB0Ga/1AmfDDC/8ik6AIiSf2QLQO2zPYvefsHP0aFgxO93cVLCCfDp7kzQ==}
engines: {node: '>= 20.12.0'}
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/6ae11ac8b3509307a7efd54e6e4c2fc8fae98b89':
resolution: {gitHosted: true, integrity: sha512-HpFUCs+1qvcOtMrt8uoRdF/nABwnMeT2ziObJr3r+SMulIS9JKdMSQc3f+ZfsEn0iPR2Fmh6xXg/5QgWx8KNqA==, tarball: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/6ae11ac8b3509307a7efd54e6e4c2fc8fae98b89}
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/5f38c8bacd53e4669c0cfa57b961c8d97085ff9f':
resolution: {gitHosted: true, integrity: sha512-mwiaZaxYlA2MeAErOGCr5MlsLmxJSTySEA9fUErfaAFl0AZoaIsfTo+Bd6L+x8/kTL5xRIK8VVfju2MQXqNPrA==, tarball: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/5f38c8bacd53e4669c0cfa57b961c8d97085ff9f}
version: 0.14.0
engines: {node: '>=24'}
peerDependencies:
@@ -3559,7 +3559,7 @@ snapshots:
fast-wrap-ansi: 0.2.2
sisteransi: 1.0.5
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/6ae11ac8b3509307a7efd54e6e4c2fc8fae98b89(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)':
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/5f38c8bacd53e4669c0cfa57b961c8d97085ff9f(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)':
dependencies:
'@ant-design/colors': 8.0.1
'@ant-design/fast-color': 3.0.1
+1 -1
View File
@@ -11,7 +11,7 @@ const canHover = useMediaQuery('(hover: hover)')
<template>
<ZPopover class="h-4 items-center" :trigger="canHover ? 'hover-click' : 'click'" placement="top-start" :hover-delay="240">
<template #reference="{ open }">
<ZIconButton variant="link" size="small" class="w-4!" :aria-label="label" :aria-expanded="open" aria-haspopup="dialog">
<ZIconButton variant="link" size="small" class="size-6!" :aria-label="label" :aria-expanded="open" aria-haspopup="dialog">
<CircleAlert class="size-3" aria-hidden="true" />
</ZIconButton>
</template>
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { ZCard, ZFormItem, ZIconButton, ZInput, ZPopover, ZSwitch } from '@codex-proxy/ui'
import { CircleAlert } from '@lucide/vue'
import { ZCard, ZFormItem, ZInput, ZSwitch } from '@codex-proxy/ui'
import { useI18n } from 'vue-i18n'
import HelpPopover from '@/components/HelpPopover.vue'
@@ -34,17 +33,12 @@ const reservedConcurrency = defineModel<string>('reservedConcurrency', { require
</ZFormItem>
<ZFormItem :show-message="Boolean(reservedConcurrency.trim())" prop="openaiGuardianReservedConcurrency" :label="t('settings.concurrency.autoReview.label')" :description="t('settings.concurrency.autoReview.description')">
<template #label-extra>
<ZPopover class="-my-1" trigger="hover-click" placement="top-start">
<template #reference="{ open }">
<ZIconButton variant="link" :aria-label="t('settings.concurrency.autoReview.helpTitle')" :aria-expanded="open" class="size-6!">
<CircleAlert class="size-3.5" aria-hidden="true" />
</ZIconButton>
</template>
<div class="max-w-72 space-y-2 px-3 py-2 text-z-sm leading-relaxed text-z-text-secondary">
<HelpPopover :label="t('settings.concurrency.autoReview.helpTitle')">
<div class="space-y-2">
<p>{{ t('settings.scheduling.autoReviewSlotsHelp') }}</p>
<p>{{ t('settings.scheduling.autoReviewQueueHelp') }}</p>
</div>
</ZPopover>
</HelpPopover>
</template>
<ZInput v-model="reservedConcurrency" :aria-label="t('settings.concurrency.autoReview.label')" :disabled="disabled" type="number" min="0" max="4294967295" step="1" />
</ZFormItem>