fix: neutral save bar background, red text only when pending navigation
This commit is contained in:
@@ -449,17 +449,13 @@ export default function UnifiedSettingsModal() {
|
||||
transition={{ duration: 0.15 }}
|
||||
className="shrink-0 overflow-hidden"
|
||||
>
|
||||
<div className={`px-6 py-3 border-t flex items-center justify-between ${
|
||||
hasPendingAction
|
||||
? 'bg-rose-950 border-rose-800/50'
|
||||
: 'bg-neutral-950 border-neutral-800'
|
||||
}`}>
|
||||
<span className={`text-sm font-medium ${hasPendingAction ? 'text-rose-100' : 'text-neutral-400'}`}>
|
||||
<div className="px-6 py-3 border-t border-neutral-800 bg-neutral-950 flex items-center justify-between">
|
||||
<span className={`text-sm font-medium ${hasPendingAction ? 'text-red-400' : 'text-neutral-400'}`}>
|
||||
{hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'}
|
||||
</span>
|
||||
<div className="flex items-center gap-2">
|
||||
{hasPendingAction && (
|
||||
<Button onClick={handleDiscard} variant="secondary" className="text-sm border-rose-700/50 text-rose-200 hover:bg-rose-900/40">
|
||||
<Button onClick={handleDiscard} variant="secondary" className="text-sm">
|
||||
Discard
|
||||
</Button>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user