refac: styling

This commit is contained in:
Timothy J. Baek 2024-10-22 23:54:37 -07:00
parent 40d5082b9f
commit 58261a7b83

View File

@ -290,9 +290,17 @@
<div class="font-semibold text-gray-600 dark:text-gray-400 flex-1">
{feedback.data?.model_id}
</div>
<Tooltip content={feedback.data.sibling_model_ids.join(', ')}>
<div class=" text-[0.65rem] text-gray-600 dark:text-gray-400 line-clamp-1">
{#if feedback.data.sibling_model_ids.length > 2}
{feedback.data.sibling_model_ids.slice(0, 2).join(', ')}, and
{feedback.data.sibling_model_ids.length - 2} more
{:else}
{feedback.data.sibling_model_ids.join(', ')}
{/if}
</div>
</Tooltip>
{:else}
<div
class=" text-sm font-medium text-gray-600 dark:text-gray-400 flex-1 py-1.5"