refac: styling

This commit is contained in:
Timothy J. Baek 2024-08-18 17:40:26 +02:00
parent 1b809fe42e
commit c9505531fd
4 changed files with 6 additions and 4 deletions

View File

@ -363,6 +363,7 @@
{#key message.parentId}
<MultiResponseMessages
bind:history
isLastMessage={messageIdx + 1 === messages.length}
{messages}
{readOnly}
{chatId}

View File

@ -15,6 +15,7 @@
export let messageIdx;
export let parentMessage;
export let isLastMessage;
export let readOnly = false;
@ -181,9 +182,9 @@
{/key}
</div>
{#if !readOnly}
{#if !readOnly && isLastMessage}
{#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">
<button
type="button"

View File

@ -301,7 +301,7 @@
{#if message.timestamp}
<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'))}
</span>

View File

@ -84,7 +84,7 @@
{#if message.timestamp}
<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'))}
</span>