fix(web): hide divider above empty API keys state in dropdown

Move the border from UsagePrioritySection (always visible) to
ApiKeySection's list variant (only when credentials exist). This
removes the unwanted divider line above the "No API Keys" empty
state card when on the AI Credits tab with no keys configured.
This commit is contained in:
yyh
2026-03-05 12:25:11 +08:00
parent d7a5af2b9a
commit 57c1ba3543
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ function ApiKeySection({
}
return (
<div>
<div className="border-t border-t-divider-subtle">
<div className="px-1">
<div className="pb-1 pl-7 pr-2 pt-3 text-text-tertiary system-xs-medium-uppercase">
{t('modelProvider.auth.apiKeys', { ns: 'common' })}

View File

@ -21,7 +21,7 @@ export default function UsagePrioritySection({ value, disabled, onSelect }: Usag
: PreferredProviderTypeEnum.custom
return (
<div className="border-b border-b-divider-subtle p-1">
<div className="p-1">
<div className="flex items-center gap-1 rounded-lg p-1">
<div className="shrink-0 px-0.5 py-1">
<span className="i-ri-arrow-up-double-line block h-4 w-4 text-text-tertiary" />