Actualizar index.html

This commit is contained in:
2026-03-29 18:45:03 +00:00
parent 2a0a21a41c
commit add14f91a0

View File

@@ -126,7 +126,7 @@
</div> </div>
<div id="quoteNudge" class="fixed bottom-24 right-10 z-[60] hidden pointer-events-none fade-in"> <div id="quoteNudge" class="fixed bottom-24 right-16 z-[60] hidden pointer-events-none fade-in">
<div class="bg-blue-600 text-white px-4 py-3 rounded-2xl shadow-2xl flex items-center gap-3 animate-bounce relative border-2 border-white/20"> <div class="bg-blue-600 text-white px-4 py-3 rounded-2xl shadow-2xl flex items-center gap-3 animate-bounce relative border-2 border-white/20">
<div class="flex flex-col"> <div class="flex flex-col">
<span class="text-[8px] font-black uppercase tracking-[0.2em] opacity-80 leading-none mb-1">Acción Pendiente</span> <span class="text-[8px] font-black uppercase tracking-[0.2em] opacity-80 leading-none mb-1">Acción Pendiente</span>
@@ -418,13 +418,20 @@
// 🚨 Ocultar el señalador si entramos en presupuestos // 🚨 Ocultar el señalador si entramos en presupuestos
const nudge = document.getElementById('quoteNudge'); const nudge = document.getElementById('quoteNudge');
if (tabName === 'Presupuestos') {
nudge.classList.add('hidden'); // Comprobar si hay algún presupuesto 'pending' QUE NO HAYA SIDO VISTO
const hasUnseenPending = currentQuotes.some(q =>
(!q.status || q.status === 'pending') &&
localStorage.getItem(`quote_viewed_${q.id}`) !== 'true'
);
const isAvisosTab = document.getElementById('tabAvisos').classList.contains('active');
// Solo mostrar si es nuevo, está pendiente y estamos en la pestaña principal
if (hasUnseenPending && isAvisosTab) {
nudge.classList.remove('hidden');
} else { } else {
// Si volvemos a Avisos, volvemos a evaluar si hay pendientes nudge.classList.add('hidden');
const hasPending = currentQuotes.some(q => !q.status || q.status === 'pending');
if (hasPending) nudge.classList.remove('hidden');
}
} }
// --- GESTIÓN DE PRESUPUESTOS --- // --- GESTIÓN DE PRESUPUESTOS ---