From 21c9acb8f008821556889d918dedb84e489e8f8f Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 19 May 2025 21:06:02 -0400 Subject: [PATCH] change snacker close delay to be a little longer than sound effect duration --- src/front/utilities/snackbar/index.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/front/utilities/snackbar/index.ts b/src/front/utilities/snackbar/index.ts index 66ee781..310a439 100644 --- a/src/front/utilities/snackbar/index.ts +++ b/src/front/utilities/snackbar/index.ts @@ -16,12 +16,12 @@ interface Options { * * `bottom-end`: Aligned to the bottom, right */ placement?: - | "top" - | "top-start" - | "top-end" - | "bottom" - | "bottom-start" - | "bottom-end"; + | "top" + | "top-start" + | "top-end" + | "bottom" + | "bottom-start" + | "bottom-end"; /** * The text for the action button. */ @@ -94,6 +94,7 @@ export const snacker = (opts: Options) => { closeable: true, messageLine: 2, queue: "snacker", + autoCloseDelay: 1600, onOpen: () => { new Audio("https://no.ipv4.army/raw/Popcorn.ogg").play(); },