Browse Source

refac: floating buttons behaviour in shared chat

Timothy Jaeryang Baek 3 months ago
parent
commit
05dfb9cecd

+ 1 - 1
src/lib/components/chat/ContentRenderer/FloatingButtons.svelte

@@ -263,7 +263,7 @@
 			</div>
 		{:else}
 			<div
-				class="py-1 flex dark:text-gray-100 bg-gray-50 dark:bg-gray-800 border dark:border-gray-850 w-72 rounded-full shadow-xl"
+				class="py-1 flex dark:text-gray-100 bg-gray-50 dark:bg-gray-800 border border-gray-100 dark:border-gray-850 w-72 rounded-full shadow-xl"
 			>
 				<input
 					type="text"

+ 1 - 1
src/lib/components/chat/Messages/ResponseMessage.svelte

@@ -742,7 +742,7 @@
 										{history}
 										content={message.content}
 										sources={message.sources}
-										floatingButtons={message?.done}
+										floatingButtons={message?.done && !readOnly}
 										save={!readOnly}
 										{model}
 										onTaskClick={async (e) => {