refac
This commit is contained in:
1 parent
70b89d01c2
commit
f85e906dec
1 file changed
+19
-17
@@ -630,7 +630,7 @@
|
|||||||
|
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
<div
|
<div
|
||||||
class="w-full flex justify-between items-center rounded-xl text-sm py-2 px-3 hover:bg-gray-50 dark:hover:bg-gray-850 group/item relative {selectedIdx ===
|
class="w-full flex justify-between items-center rounded-xl text-sm py-2 pl-3 pr-32 hover:bg-gray-50 dark:hover:bg-gray-850 group/item relative {selectedIdx ===
|
||||||
idx + actions.length
|
idx + actions.length
|
||||||
? 'bg-gray-50 dark:bg-gray-850'
|
? 'bg-gray-50 dark:bg-gray-850'
|
||||||
: ''}"
|
: ''}"
|
||||||
@@ -700,10 +700,25 @@
|
|||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="flex items-center gap-1 pl-2 shrink-0">
|
<div
|
||||||
|
class="absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-3 pl-6 shrink-0"
|
||||||
|
>
|
||||||
|
<div class="text-gray-500 dark:text-gray-400 text-xs">
|
||||||
|
{$i18n.t(
|
||||||
|
dayjs(chat?.updated_at * 1000).calendar(null, {
|
||||||
|
sameDay: '[Today]',
|
||||||
|
nextDay: '[Tomorrow]',
|
||||||
|
nextWeek: 'dddd',
|
||||||
|
lastDay: '[Yesterday]',
|
||||||
|
lastWeek: '[Last] dddd',
|
||||||
|
sameElse: 'L'
|
||||||
|
})
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
{#if editingChatId !== chat.id}
|
{#if editingChatId !== chat.id}
|
||||||
{#if shiftKey}
|
{#if shiftKey}
|
||||||
<div class="invisible group-hover/item:visible flex items-center space-x-1.5">
|
<div class="flex items-center space-x-1.5">
|
||||||
<Tooltip content={$i18n.t('Archive')} className="flex items-center">
|
<Tooltip content={$i18n.t('Archive')} className="flex items-center">
|
||||||
<button
|
<button
|
||||||
class="self-center dark:hover:text-white transition"
|
class="self-center dark:hover:text-white transition"
|
||||||
@@ -729,7 +744,7 @@
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="invisible group-hover/item:visible">
|
<div class="flex items-center">
|
||||||
<ChatMenu
|
<ChatMenu
|
||||||
chatId={chat.id}
|
chatId={chat.id}
|
||||||
shareHandler={() => {
|
shareHandler={() => {
|
||||||
@@ -776,19 +791,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="text-gray-500 dark:text-gray-400 text-xs">
|
|
||||||
{$i18n.t(
|
|
||||||
dayjs(chat?.updated_at * 1000).calendar(null, {
|
|
||||||
sameDay: '[Today]',
|
|
||||||
nextDay: '[Tomorrow]',
|
|
||||||
nextWeek: 'dddd',
|
|
||||||
lastDay: '[Yesterday]',
|
|
||||||
lastWeek: '[Last] dddd',
|
|
||||||
sameElse: 'L'
|
|
||||||
})
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in new issue
Block a user