mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
a4fe823893
commit
65d4b22c7c
1 changed files with 16 additions and 6 deletions
|
|
@ -461,14 +461,24 @@
|
||||||
<a href={`/notes/${note.id}`} class="w-full flex flex-col justify-between">
|
<a href={`/notes/${note.id}`} class="w-full flex flex-col justify-between">
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<div class=" flex items-center gap-2 self-center justify-between">
|
<div class=" flex items-center gap-2 self-center justify-between">
|
||||||
<div class=" text-sm font-medium capitalize flex-1 w-full">
|
<Tooltip
|
||||||
|
content={note.title}
|
||||||
|
className="flex-1"
|
||||||
|
placement="top-start"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class=" text-sm font-medium capitalize flex-1 w-full line-clamp-1"
|
||||||
|
>
|
||||||
{note.title}
|
{note.title}
|
||||||
</div>
|
</div>
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
<div class="flex shrink-0 items-center text-xs gap-2.5">
|
<div class="flex shrink-0 items-center text-xs gap-2.5">
|
||||||
|
<Tooltip content={dayjs(note.updated_at / 1000000).format('LLLL')}>
|
||||||
<div>
|
<div>
|
||||||
{dayjs(note.updated_at / 1000000).fromNow()}
|
{dayjs(note.updated_at / 1000000).fromNow()}
|
||||||
</div>
|
</div>
|
||||||
|
</Tooltip>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={note?.user?.email ?? $i18n.t('Deleted User')}
|
content={note?.user?.email ?? $i18n.t('Deleted User')}
|
||||||
className="flex shrink-0"
|
className="flex shrink-0"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue