refac: styling

This commit is contained in:
Timothy J. Baek 2024-08-18 18:20:36 +02:00
parent c9505531fd
commit fc8524bbfd
2 changed files with 4 additions and 4 deletions

View File

@ -323,7 +323,7 @@
{showNextMessage}
copyToClipboard={copyToClipboardWithToast}
/>
{:else if $mobile || (history.messages[message.parentId]?.models?.length ?? 1) === 1}
{:else if (history.messages[message.parentId]?.models?.length ?? 1) === 1}
{#key message.id && history.currentId}
<ResponseMessage
{message}

View File

@ -5,6 +5,7 @@
import ResponseMessage from './ResponseMessage.svelte';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import Merge from '$lib/components/icons/Merge.svelte';
import { mobile } from '$lib/stores';
const i18n = getContext('i18n');
@ -123,9 +124,8 @@
{@const message = groupedMessages[modelIdx].messages[groupedMessagesIdx[modelIdx]]}
<div
class=" snap-center min-w-80 w-full max-w-full m-1 border {history.messages[
currentMessageId
]?.modelIdx == modelIdx
class=" snap-center {$mobile ? '' : 'min-w-80'} w-full max-w-full m-1 border {history
.messages[currentMessageId]?.modelIdx == modelIdx
? 'border-gray-100 dark:border-gray-800 border-[1.5px]'
: 'border-gray-50 dark:border-gray-850 border-dashed '} transition p-5 rounded-2xl"
on:click={() => {