feat: remove hardcoded names

This commit is contained in:
Timothy J. Baek 2024-02-09 19:14:26 -08:00
parent 6a4dcac8e9
commit 223f17baf9
9 changed files with 70 additions and 22 deletions

View file

@ -27,19 +27,19 @@
>
{#if model in modelfiles}
<img
src={modelfiles[model]?.imageUrl ?? '/ollama-dark.png'}
src={modelfiles[model]?.imageUrl ?? './favicon.png'}
alt="modelfile"
class=" w-20 mb-2 rounded-full {models.length > 1
? ' border-[5px] border-white dark:border-gray-800'
? ' border-[5px] border-white dark:border-gray-900'
: ''}"
draggable="false"
/>
{:else}
<img
src={models.length === 1 ? '/ollama.png' : 'ollama-dark.png'}
src={models.length === 1 ? '/favicon.png' : '/favicon.png'}
class=" w-20 mb-2 {models.length === 1
? 'invert-[10%] dark:invert-[100%]'
: 'border-[5px] border-white dark:border-gray-800'} rounded-full"
? ''
: 'border-[5px] border-white dark:border-gray-900'} rounded-full"
alt="ollama"
draggable="false"
/>