refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2024-11-11 13:56:33 -08:00
parent 61f29a6531
commit cdc2b4dd61
3 changed files with 11 additions and 11 deletions

View File

@ -56,21 +56,21 @@
$page.url.pathname $page.url.pathname
) )
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/admin">{$i18n.t('Dashboard')}</a href="/admin">{$i18n.t('Dashboard')}</a
> >
<a <a
class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/admin/evaluations') class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/admin/evaluations')
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/admin/evaluations">{$i18n.t('Evaluations')}</a href="/admin/evaluations">{$i18n.t('Evaluations')}</a
> >
<a <a
class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/admin/settings') class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/admin/settings')
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/admin/settings">{$i18n.t('Settings')}</a href="/admin/settings">{$i18n.t('Settings')}</a
> >
</div> </div>

View File

@ -46,14 +46,14 @@
$page.url.pathname $page.url.pathname
) )
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/playground">{$i18n.t('Chat')}</a href="/playground">{$i18n.t('Chat')}</a
> >
<a <a
class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/playground/notes') class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/playground/notes')
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/playground/notes">{$i18n.t('Notes')}</a href="/playground/notes">{$i18n.t('Notes')}</a
> >
@ -62,7 +62,7 @@
'/playground/completions' '/playground/completions'
) )
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/playground/completions">{$i18n.t('Completions')}</a href="/playground/completions">{$i18n.t('Completions')}</a
> >
</div> </div>

View File

@ -54,7 +54,7 @@
<a <a
class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/workspace/models') class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/workspace/models')
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/workspace/models">{$i18n.t('Models')}</a href="/workspace/models">{$i18n.t('Models')}</a
> >
@ -63,7 +63,7 @@
'/workspace/knowledge' '/workspace/knowledge'
) )
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/workspace/knowledge" href="/workspace/knowledge"
> >
{$i18n.t('Knowledge')} {$i18n.t('Knowledge')}
@ -72,14 +72,14 @@
<a <a
class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/workspace/prompts') class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/workspace/prompts')
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/workspace/prompts">{$i18n.t('Prompts')}</a href="/workspace/prompts">{$i18n.t('Prompts')}</a
> >
<a <a
class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/workspace/tools') class="min-w-fit rounded-full p-1.5 {$page.url.pathname.includes('/workspace/tools')
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/workspace/tools" href="/workspace/tools"
> >
{$i18n.t('Tools')} {$i18n.t('Tools')}
@ -90,7 +90,7 @@
'/workspace/functions' '/workspace/functions'
) )
? '' ? ''
: 'text-gray-300 dark:text-gray-600'} transition" : 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
href="/workspace/functions" href="/workspace/functions"
> >
{$i18n.t('Functions')} {$i18n.t('Functions')}