mirror of
https://github.com/open-webui/open-webui
synced 2025-05-20 13:15:13 +00:00
refac: styling
This commit is contained in:
parent
1b809fe42e
commit
c9505531fd
@ -363,6 +363,7 @@
|
|||||||
{#key message.parentId}
|
{#key message.parentId}
|
||||||
<MultiResponseMessages
|
<MultiResponseMessages
|
||||||
bind:history
|
bind:history
|
||||||
|
isLastMessage={messageIdx + 1 === messages.length}
|
||||||
{messages}
|
{messages}
|
||||||
{readOnly}
|
{readOnly}
|
||||||
{chatId}
|
{chatId}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
export let messageIdx;
|
export let messageIdx;
|
||||||
|
|
||||||
export let parentMessage;
|
export let parentMessage;
|
||||||
|
export let isLastMessage;
|
||||||
|
|
||||||
export let readOnly = false;
|
export let readOnly = false;
|
||||||
|
|
||||||
@ -181,9 +182,9 @@
|
|||||||
{/key}
|
{/key}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if !readOnly}
|
{#if !readOnly && isLastMessage}
|
||||||
{#if !parentMessage?.childrenIds.map((id) => history.messages[id]).find((m) => !m.done)}
|
{#if !parentMessage?.childrenIds.map((id) => history.messages[id]).find((m) => !m.done)}
|
||||||
<div class=" flex justify-end overflow-x-auto buttons text-gray-500 dark:text-gray-400 mt-1">
|
<div class=" flex justify-end overflow-x-auto buttons text-gray-600 dark:text-gray-500 mt-1">
|
||||||
<Tooltip content={$i18n.t('Merge Responses')} placement="bottom">
|
<Tooltip content={$i18n.t('Merge Responses')} placement="bottom">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -301,7 +301,7 @@
|
|||||||
|
|
||||||
{#if message.timestamp}
|
{#if message.timestamp}
|
||||||
<span
|
<span
|
||||||
class=" self-center invisible group-hover:visible text-gray-400 text-xs font-medium uppercase"
|
class=" self-center invisible group-hover:visible text-gray-400 text-xs font-medium uppercase ml-0.5 -mt-0.5"
|
||||||
>
|
>
|
||||||
{dayjs(message.timestamp * 1000).format($i18n.t('h:mm a'))}
|
{dayjs(message.timestamp * 1000).format($i18n.t('h:mm a'))}
|
||||||
</span>
|
</span>
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
{#if message.timestamp}
|
{#if message.timestamp}
|
||||||
<span
|
<span
|
||||||
class=" invisible group-hover:visible text-gray-400 text-xs font-medium uppercase"
|
class=" invisible group-hover:visible text-gray-400 text-xs font-medium uppercase ml-0.5 -mt-0.5"
|
||||||
>
|
>
|
||||||
{dayjs(message.timestamp * 1000).format($i18n.t('h:mm a'))}
|
{dayjs(message.timestamp * 1000).format($i18n.t('h:mm a'))}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user