From 95cd9ee5bb673c478d8b3efb72387a30a1fa61e6 Mon Sep 17 00:00:00 2001 From: digvijay shelar Date: Thu, 16 May 2024 15:15:48 +0530 Subject: [PATCH] spinner fixed --- frontend/src/assets/spinner-dark.svg | 1 + frontend/src/assets/spinner.svg | 10 +--------- frontend/src/conversation/Conversation.tsx | 7 ++++--- 3 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 frontend/src/assets/spinner-dark.svg diff --git a/frontend/src/assets/spinner-dark.svg b/frontend/src/assets/spinner-dark.svg new file mode 100644 index 00000000..b7f1eaed --- /dev/null +++ b/frontend/src/assets/spinner-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/assets/spinner.svg b/frontend/src/assets/spinner.svg index 64b815aa..d2423d8f 100644 --- a/frontend/src/assets/spinner.svg +++ b/frontend/src/assets/spinner.svg @@ -1,9 +1 @@ - - - - - - - - - + \ No newline at end of file diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index f09ec08a..09a49d9c 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -14,6 +14,7 @@ import { import Send from './../assets/send.svg'; import SendDark from './../assets/send_dark.svg'; import Spinner from './../assets/spinner.svg'; +import SpinnerDark from './../assets/spinner-dark.svg' import { FEEDBACK, Query } from './conversationModels'; import { sendFeedback } from './conversationApi'; import ArrowDown from './../assets/arrow-down.svg'; @@ -56,7 +57,7 @@ export default function Conversation() { setHasScrolledToLast(entry.isIntersecting); }); }; - + const observer = new IntersectionObserver(observerCallback, { root: null, threshold: [1, 0.8], @@ -193,8 +194,8 @@ export default function Conversation() { > {status === 'loading' ? ( ) : (