mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
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:
@ -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' })}
|
||||
|
||||
@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user