feat: esteso il tempo di visualizzazione dei messaggi nel SuccessModal e aggiornato il layout del WelcomeCarousel

This commit is contained in:
2026-01-24 16:54:55 +01:00
parent 3f4abf5c57
commit f59c7af383
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ export function WelcomeCarousel({paused = false, userName, intervalMs = 1200}: W
const currentMessage = WELCOME_MESSAGES[currentIndex];
return (
<div className="flex flex-col items-center justify-center text-center w-full px-4">
<div className="flex flex-col items-center justify-center text-center w-screen px-0">
{/* Container fullwidth con overflow hidden per animazione slide */}
<div className="relative h-44 md:h-56 w-full overflow-hidden">
{/* Messaggio corrente */}

View File

@@ -19,10 +19,10 @@ export function SuccessModal({
isOpen,
onClose,
userName,
durationMs = 8000
durationMs = 60*1000
}: SuccessModalProps) {
// Calcola intervallo carosello per mostrare tutti i messaggi durante la durata
const carouselIntervalMs = Math.floor(durationMs / (CAROUSEL_MESSAGE_COUNT * 1.2));
const carouselIntervalMs = Math.floor(durationMs / (CAROUSEL_MESSAGE_COUNT));
return (
<Modal