mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-10 03:27:57 +00:00
refac
This commit is contained in:
parent
18d4856502
commit
d2cacc4b7d
2 changed files with 8 additions and 5 deletions
|
|
@ -441,13 +441,16 @@
|
|||
>
|
||||
{#if message.timestamp}
|
||||
<Tooltip
|
||||
className="flex self-center {($settings?.chatBubble ?? true) ? 'mr-1' : 'order-last'}"
|
||||
className="flex self-center {($settings?.chatBubble ?? true) && isOwn
|
||||
? 'mr-1'
|
||||
: 'order-last'}"
|
||||
content={formatMessageTimestampFull(message.timestamp * 1000)}
|
||||
placement="bottom"
|
||||
>
|
||||
<time
|
||||
datetime={new Date(message.timestamp * 1000).toISOString()}
|
||||
class="{compactPreview ? '' : 'hover-reveal'} {($settings?.chatBubble ?? true)
|
||||
class="{compactPreview ? '' : 'hover-reveal'} {($settings?.chatBubble ?? true) &&
|
||||
isOwn
|
||||
? 'mr-1'
|
||||
: 'ml-1 shrink-0 whitespace-nowrap'} text-[0.6875rem] tabular-nums text-gray-400 dark:text-gray-600 select-none"
|
||||
>
|
||||
|
|
@ -456,7 +459,7 @@
|
|||
</Tooltip>
|
||||
{/if}
|
||||
|
||||
{#if !compactPreview && !($settings?.chatBubble ?? true)}
|
||||
{#if !compactPreview && (!($settings?.chatBubble ?? true) || !isOwn)}
|
||||
{#if siblings.length > 1}
|
||||
<div class="flex self-center" dir="ltr">
|
||||
<button
|
||||
|
|
@ -645,7 +648,7 @@
|
|||
{/if}
|
||||
{/if}
|
||||
|
||||
{#if !compactPreview && ($settings?.chatBubble ?? true)}
|
||||
{#if !compactPreview && ($settings?.chatBubble ?? true) && isOwn}
|
||||
{#if siblings.length > 1}
|
||||
<div class="flex self-center" dir="ltr">
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -648,7 +648,7 @@
|
|||
{#if shareUsers}
|
||||
{#each selectedUsers as user}
|
||||
<div
|
||||
class="flex items-center gap-2 justify-between text-sm w-full transition border-b border-gray-50 dark:border-gray-850 pb-1.5 last:border-0"
|
||||
class="flex items-center gap-2 justify-between text-sm w-full transition border-b border-gray-50/50 dark:border-gray-850/50 pb-1.5 last:border-0"
|
||||
>
|
||||
<div class="flex items-center gap-2 min-w-0 flex-1">
|
||||
<img
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue