fix: mobile
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import type {PropType} from "vue";
|
||||
import type {ChatSession} from "~/typings/llm";
|
||||
import type {PropType} from 'vue'
|
||||
import type {ChatSession} from '~/typings/llm'
|
||||
|
||||
const props = defineProps({
|
||||
active: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
chatSession: {
|
||||
type: Object as PropType<ChatSession>,
|
||||
required: true
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
const emit = defineEmits<{
|
||||
@@ -26,7 +26,14 @@ const dayjs = useDayjs()
|
||||
:title="chatSession.subject"
|
||||
>
|
||||
<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 class="chat-card-meta">
|
||||
<div>{{ chatSession.messages.length }}条对话</div>
|
||||
|
||||
Reference in New Issue
Block a user