mirror of https://github.com/langgenius/dify.git
fix(web): align alert card width with API key section in dropdown
Change mx-1 (4px) to mx-2 (8px) on CreditsFallbackAlert and CreditsExhaustedAlert to match ApiKeySection's p-2 (8px) padding, consistent with Figma design where both sections are 8px from the dropdown edge.
This commit is contained in:
parent
57c1ba3543
commit
ad9ac6978e
|
|
@ -24,7 +24,7 @@ export default function CreditsExhaustedAlert({ hasApiKeyFallback }: CreditsExha
|
|||
const usagePercent = totalCredits > 0 ? Math.min((usedCredits / totalCredits) * 100, 100) : 100
|
||||
|
||||
return (
|
||||
<div className="mx-1 mb-1 mt-0.5 rounded-lg bg-background-section-burn p-3">
|
||||
<div className="mx-2 mb-1 mt-0.5 rounded-lg bg-background-section-burn p-3">
|
||||
<div className="flex flex-col gap-1">
|
||||
<div className="text-text-primary system-sm-medium">
|
||||
{t(titleKey, { ns: 'common' })}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default function CreditsFallbackAlert({ hasCredentials }: CreditsFallback
|
|||
: 'modelProvider.card.noApiKeysFallback'
|
||||
|
||||
return (
|
||||
<div className="mx-1 mb-1 mt-0.5 rounded-lg bg-background-section-burn p-3">
|
||||
<div className="mx-2 mb-1 mt-0.5 rounded-lg bg-background-section-burn p-3">
|
||||
<div className="flex flex-col gap-1">
|
||||
<div className="text-text-primary system-sm-medium">
|
||||
{t(titleKey, { ns: 'common' })}
|
||||
|
|
|
|||
Loading…
Reference in New Issue