From 7bb9a19175f34b86f0725fb4cc5912b7e3974958 Mon Sep 17 00:00:00 2001 From: Jojo Ortiz Date: Mon, 16 Oct 2023 16:41:02 -0700 Subject: [PATCH] integrate Answer component into the Chatbot component --- .../frontend/src/lib/Chatbots/Chatbot.svelte | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pykoi/frontend/src/lib/Chatbots/Chatbot.svelte b/pykoi/frontend/src/lib/Chatbots/Chatbot.svelte index 43678e5..5ccf27b 100644 --- a/pykoi/frontend/src/lib/Chatbots/Chatbot.svelte +++ b/pykoi/frontend/src/lib/Chatbots/Chatbot.svelte @@ -4,6 +4,7 @@ import { select } from "d3-selection"; import { writable } from "svelte/store"; import DownloadModal from "./Components/DownloadModal.svelte"; + import Answer from "./Components/Answer.svelte"; let showModal = false; @@ -173,22 +174,7 @@

{message.question}

-
-
Response:
-

{message.answer}

- {#if feedback} - - {/if} -
+
@@ -450,4 +436,14 @@ background: inherit; clip-path: polygon(0% 0%, 100% 0%, 50% 100%); } + + .vote-selected { + border: "3px solid black"; + opacity: 1; + } + + .vote-not-selected { + border: "3px solid transparent"; + opacity: 0.65; + }