瀏覽代碼

refac: styling

Timothy J. Baek 7 月之前
父節點
當前提交
7b6723a955
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/lib/components/chat/Artifacts.svelte
  2. 1 1
      src/lib/components/chat/Messages/UserMessage.svelte

+ 1 - 1
src/lib/components/chat/Artifacts.svelte

@@ -32,7 +32,7 @@
 	const getContents = () => {
 	const getContents = () => {
 		contents = [];
 		contents = [];
 		messages.forEach((message) => {
 		messages.forEach((message) => {
-			if (message?.content) {
+			if (message?.role !== 'user' && message?.content) {
 				const codeBlockContents = message.content.match(/```[\s\S]*?```/g);
 				const codeBlockContents = message.content.match(/```[\s\S]*?```/g);
 				let codeBlocks = [];
 				let codeBlocks = [];
 
 

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

@@ -94,7 +94,7 @@
 				: (user?.profile_image_url ?? '/user.png')}
 				: (user?.profile_image_url ?? '/user.png')}
 		/>
 		/>
 	{/if}
 	{/if}
-	<div class="w-full overflow-hidden pl-1">
+	<div class="w-full w-0 pl-1">
 		{#if !($settings?.chatBubble ?? true)}
 		{#if !($settings?.chatBubble ?? true)}
 			<div>
 			<div>
 				<Name>
 				<Name>