fix: danger zone red background on pending save bar, normal text color

This commit is contained in:
Usman Baig
2026-03-25 23:11:51 +01:00
parent 477a3b4568
commit 09181affbb

View File

@@ -449,8 +449,12 @@ export default function UnifiedSettingsModal() {
transition={{ duration: 0.15 }} transition={{ duration: 0.15 }}
className="shrink-0 overflow-hidden" className="shrink-0 overflow-hidden"
> >
<div className="px-6 py-3 border-t border-neutral-800 bg-neutral-950 flex items-center justify-between"> <div className={`px-6 py-3 border-t flex items-center justify-between ${
<span className={`text-sm font-medium ${hasPendingAction ? 'text-red-400' : 'text-neutral-400'}`}> hasPendingAction
? 'bg-red-900/10 border-red-900/30'
: 'bg-neutral-950 border-neutral-800'
}`}>
<span className="text-sm font-medium text-neutral-400">
{hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'}
</span> </span>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">