wip: 聊天 UI

This commit is contained in:
2024-03-27 18:06:02 +08:00
parent ef1ef50fd5
commit 1ee6ada6af
5 changed files with 251 additions and 28 deletions

View File

@@ -33,7 +33,7 @@ const dayjs = useDayjs()
<div>{{ dayjs(chatSession.create_at * 1000).format('YYYY-MM-DD HH:mm:ss') }}</div>
</div>
<div
@click="emit('remove', chatSession)"
@click.stop="emit('remove', chatSession)"
class="chat-card-remove-btn text-neutral-400 group-hover:opacity-100 group-hover:-translate-x-0.5"
>
<UIcon name="i-tabler-trash"/>
@@ -44,7 +44,7 @@ const dayjs = useDayjs()
<style lang="scss" scoped>
.chat-card {
@apply flex flex-col gap-2 bg-white dark:bg-neutral-800 px-4 py-3 rounded-lg relative border-2 border-transparent shadow-card;
@apply transition duration-150 hover:bg-cyan-300/5;
@apply transition-none duration-150 hover:bg-cyan-300/5;
@apply select-none;
&.active {