refac: styling

This commit is contained in:
Timothy J. Baek 2024-10-06 11:54:57 -07:00
parent 91e1b548a9
commit e6265897c8

View File

@ -106,16 +106,16 @@
class="w-full text-3xl text-gray-800 dark:text-gray-100 font-medium text-center flex items-center gap-4 font-primary" class="w-full text-3xl text-gray-800 dark:text-gray-100 font-medium text-center flex items-center gap-4 font-primary"
> >
<div class="w-full flex flex-col justify-center items-center"> <div class="w-full flex flex-col justify-center items-center">
<div class="flex flex-col md:flex-row justify-center gap-2 md:gap-3.5 w-fit">
<div class="flex flex-shrink-0 justify-center">
<div class="flex -space-x-4 mb-0.5" in:fade={{ duration: 100 }}>
{#each models as model, modelIdx}
<Tooltip <Tooltip
className="flex flex-col md:flex-row justify-center gap-2 md:gap-3.5 w-fit" content={(models[modelIdx]?.info?.meta?.tags ?? [])
content={(models[selectedModelIdx]?.info?.meta?.tags ?? [])
.map((tag) => tag.name.toUpperCase()) .map((tag) => tag.name.toUpperCase())
.join(', ')} .join(', ')}
placement="top" placement="top"
> >
<div class="flex flex-shrink-0 justify-center">
<div class="flex -space-x-4 mb-0.5" in:fade={{ duration: 100 }}>
{#each models as model, modelIdx}
<button <button
on:click={() => { on:click={() => {
selectedModelIdx = modelIdx; selectedModelIdx = modelIdx;
@ -132,6 +132,7 @@
draggable="false" draggable="false"
/> />
</button> </button>
</Tooltip>
{/each} {/each}
</div> </div>
</div> </div>
@ -143,7 +144,7 @@
{$i18n.t('Hello, {{name}}', { name: $user.name })} {$i18n.t('Hello, {{name}}', { name: $user.name })}
{/if} {/if}
</div> </div>
</Tooltip> </div>
<div class="flex mt-1 mb-2"> <div class="flex mt-1 mb-2">
<div in:fade={{ duration: 100, delay: 50 }}> <div in:fade={{ duration: 100, delay: 50 }}>