forked from open-webui/open-webui
feat: message ts display
This commit is contained in:
parent
59724ea9d8
commit
4ec81a897e
5 changed files with 22 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
|||
<script lang="ts">
|
||||
import dayjs from 'dayjs';
|
||||
import { marked } from 'marked';
|
||||
|
||||
import tippy from 'tippy.js';
|
||||
|
@ -219,6 +220,12 @@
|
|||
>{message.model ? ` ${message.model}` : ''}</span
|
||||
>
|
||||
{/if}
|
||||
|
||||
{#if message.timestamp}
|
||||
<span class=" invisible group-hover:visible text-gray-400 text-xs font-normal">
|
||||
{dayjs(message.timestamp * 1000).format('DD/MM/YYYY HH:MM')}
|
||||
</span>
|
||||
{/if}
|
||||
</Name>
|
||||
|
||||
{#if message.content === ''}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue