fix: mobile

This commit is contained in:
2024-04-08 16:52:54 +08:00
parent 5442381e40
commit 671755fa0d

View File

@@ -1,15 +1,15 @@
<script setup lang="ts"> <script setup lang="ts">
import type {PropType} from "vue"; import type {PropType} from 'vue'
import type {ChatSession} from "~/typings/llm"; import type {ChatSession} from '~/typings/llm'
const props = defineProps({ const props = defineProps({
active: { active: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
chatSession: { chatSession: {
type: Object as PropType<ChatSession>, type: Object as PropType<ChatSession>,
required: true required: true,
}, },
}) })
const emit = defineEmits<{ const emit = defineEmits<{
@@ -26,7 +26,14 @@ const dayjs = useDayjs()
:title="chatSession.subject" :title="chatSession.subject"
> >
<div class="chat-card-title"> <div class="chat-card-title">
{{ chatSession.subject }} <Icon
v-if="!!chatSession.assistant"
name="i-tabler-masks-theater"
class="text-lg -mt-1 mr-1"
/>
<span>
{{ !!chatSession.assistant ? chatSession.assistant.tpl_name : chatSession.subject }}
</span>
</div> </div>
<div class="chat-card-meta"> <div class="chat-card-meta">
<div>{{ chatSession.messages.length }}条对话</div> <div>{{ chatSession.messages.length }}条对话</div>