From e7e72545bce834916067f0319371aa2729c3641a Mon Sep 17 00:00:00 2001 From: Steve Scargall <37674041+sscargal@users.noreply.github.com> Date: Fri, 31 Oct 2025 17:51:59 +0000 Subject: [PATCH] Remove animation around chat bot and remove delays for initial messages Signed-off-by: Steve Scargall <37674041+sscargal@users.noreply.github.com> --- themes/memmachine/assets/css/styles.css | 20 -------------------- themes/memmachine/assets/js/custom.js | 8 ++------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/themes/memmachine/assets/css/styles.css b/themes/memmachine/assets/css/styles.css index 216b954..c9fe9ba 100644 --- a/themes/memmachine/assets/css/styles.css +++ b/themes/memmachine/assets/css/styles.css @@ -496,27 +496,7 @@ header nav ul li a:hover { initial-value: 0deg; inherits: false; } -.hero-chat::after, -.hero-chat::before { - content: ''; - position: absolute; - background-image: conic-gradient( - from var(--angle), - transparent 88%, - #a570ff, - #ff6eb2, - #ffad66 100% - ); - inset: -2px; - z-index: -1; - border-radius: 10px; - animation: 12s spin linear infinite; -} - -.hero-chat::before { - opacity: 0.7; -} @keyframes spin { from { diff --git a/themes/memmachine/assets/js/custom.js b/themes/memmachine/assets/js/custom.js index 2acf481..ee6a452 100644 --- a/themes/memmachine/assets/js/custom.js +++ b/themes/memmachine/assets/js/custom.js @@ -145,9 +145,7 @@ if (chatList) { // New function to load the entire conversation history function loadConversationHistory() { - let delay = 0; - for (let i = 0; i < scriptedMessages.length; i++) { - setTimeout(() => { + for (let i = 0; i < scriptedMessages.length; i++) { const currentTime = new Date().toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", @@ -157,9 +155,7 @@ if (chatList) { time: currentTime, text: scriptedMessages[i].text, }); - }, delay); - delay += 500; // Reduced delay for a faster feel - } + } // Set the state to 1 after the initial conversation loads, // so the next message from the user is a response to the question. chatState = 1;