Skip to content

Commit

Permalink
fix chat layout
Browse files Browse the repository at this point in the history
  • Loading branch information
lindongchen committed Oct 29, 2024
1 parent 03b1eb4 commit 35b804d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/src/views/chat/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ watch(() => today.value, () => {
<DatePicker v-model="today" inline class="w-full" />
</li>
</ul>
<VirtualScroller v-if="msgs&&msgs.length>0" :items="msgs" :itemSize="50" class="border border-surface-200 dark:border-surface-700 w-full" :style="`height:${viewHeight}px`">
<VirtualScroller :delay="50" v-if="msgs&&msgs.length>0" :items="msgs" :itemSize="50" class="border border-surface-200 dark:border-surface-700 w-full" :style="`height:${viewHeight}px`">
<template v-slot:item="{ item, options }">
<div class="flex p-3 " :class="[{ 'surface-ground': options.odd,'surface-html':!options.odd }]" >
<img :src="userSvg" width="16px" height="16px" />
Expand All @@ -90,7 +90,7 @@ watch(() => today.value, () => {
{{timeago(item?.time)}}
</div>
</div>
<div class="flex" v-if="item?.message?.type =='text'">
<div class="flex" style="word-break: break-all;" v-if="item?.message?.type =='text'">
{{item?.message?.content}}
</div>
<div class="flex" v-else>
Expand Down

0 comments on commit 35b804d

Please sign in to comment.