feat: archived chat link

This commit is contained in:
Timothy J. Baek 2024-04-20 18:50:41 -05:00
parent 45ecaaf392
commit a5f8e87f3f

View file

@ -67,7 +67,7 @@
<div class="flex flex-col md:flex-row w-full px-5 py-4 md:space-x-4 dark:text-gray-200"> <div class="flex flex-col md:flex-row w-full px-5 py-4 md:space-x-4 dark:text-gray-200">
<div class=" flex flex-col w-full sm:flex-row sm:justify-center sm:space-x-6"> <div class=" flex flex-col w-full sm:flex-row sm:justify-center sm:space-x-6">
{#if chats.length > 0} {#if chats.length > 0}
<div class="text-left text-sm w-full mb-8"> <div class="text-left text-sm w-full mb-4">
<div class="relative overflow-x-auto"> <div class="relative overflow-x-auto">
<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400 table-auto"> <table class="w-full text-sm text-left text-gray-500 dark:text-gray-400 table-auto">
<thead <thead
@ -80,12 +80,17 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{#each chats as chat} {#each chats as chat, idx}
<tr class="bg-white border-b dark:bg-gray-900 dark:border-gray-850 text-xs"> <tr
class="bg-white {idx !== chats.length - 1 &&
'border-b'} dark:bg-gray-900 dark:border-gray-850 text-xs"
>
<td class="px-3 py-1 w-2/3"> <td class="px-3 py-1 w-2/3">
<div class=" line-clamp-1"> <a href="/c/{chat.id}">
<div class=" underline line-clamp-1">
{chat.title} {chat.title}
</div> </div>
</a>
</td> </td>
<td class=" px-3 py-1"> <td class=" px-3 py-1">