mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: styling
This commit is contained in:
parent
094a16ab49
commit
1477f14827
1 changed files with 6 additions and 6 deletions
|
|
@ -419,7 +419,7 @@
|
||||||
<div class="px-3">
|
<div class="px-3">
|
||||||
{#if tags && items.filter((item) => !(item.model?.info?.meta?.hidden ?? false)).length > 0}
|
{#if tags && items.filter((item) => !(item.model?.info?.meta?.hidden ?? false)).length > 0}
|
||||||
<div
|
<div
|
||||||
class=" flex w-full bg-white dark:bg-gray-850 overflow-x-auto scrollbar-none"
|
class=" flex w-full bg-white dark:bg-gray-850 overflow-x-auto scrollbar-none mb-0.5"
|
||||||
on:wheel={(e) => {
|
on:wheel={(e) => {
|
||||||
if (e.deltaY !== 0) {
|
if (e.deltaY !== 0) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
@ -433,7 +433,7 @@
|
||||||
>
|
>
|
||||||
{#if items.find((item) => item.model?.connection_type === 'local') || items.find((item) => item.model?.connection_type === 'external') || items.find((item) => item.model?.direct) || tags.length > 0}
|
{#if items.find((item) => item.model?.connection_type === 'local') || items.find((item) => item.model?.connection_type === 'external') || items.find((item) => item.model?.direct) || tags.length > 0}
|
||||||
<button
|
<button
|
||||||
class="min-w-fit outline-none p-1.5 {selectedTag === '' &&
|
class="min-w-fit outline-none px-1.5 {selectedTag === '' &&
|
||||||
selectedConnectionType === ''
|
selectedConnectionType === ''
|
||||||
? ''
|
? ''
|
||||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
||||||
|
|
@ -449,7 +449,7 @@
|
||||||
|
|
||||||
{#if items.find((item) => item.model?.connection_type === 'local')}
|
{#if items.find((item) => item.model?.connection_type === 'local')}
|
||||||
<button
|
<button
|
||||||
class="min-w-fit outline-none p-1.5 {selectedConnectionType === 'local'
|
class="min-w-fit outline-none px-1.5 py-0.5 {selectedConnectionType === 'local'
|
||||||
? ''
|
? ''
|
||||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
||||||
aria-pressed={selectedConnectionType === 'local'}
|
aria-pressed={selectedConnectionType === 'local'}
|
||||||
|
|
@ -464,7 +464,7 @@
|
||||||
|
|
||||||
{#if items.find((item) => item.model?.connection_type === 'external')}
|
{#if items.find((item) => item.model?.connection_type === 'external')}
|
||||||
<button
|
<button
|
||||||
class="min-w-fit outline-none p-1.5 {selectedConnectionType === 'external'
|
class="min-w-fit outline-none px-1.5 py-0.5 {selectedConnectionType === 'external'
|
||||||
? ''
|
? ''
|
||||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
||||||
aria-pressed={selectedConnectionType === 'external'}
|
aria-pressed={selectedConnectionType === 'external'}
|
||||||
|
|
@ -479,7 +479,7 @@
|
||||||
|
|
||||||
{#if items.find((item) => item.model?.direct)}
|
{#if items.find((item) => item.model?.direct)}
|
||||||
<button
|
<button
|
||||||
class="min-w-fit outline-none p-1.5 {selectedConnectionType === 'direct'
|
class="min-w-fit outline-none px-1.5 py-0.5 {selectedConnectionType === 'direct'
|
||||||
? ''
|
? ''
|
||||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
||||||
aria-pressed={selectedConnectionType === 'direct'}
|
aria-pressed={selectedConnectionType === 'direct'}
|
||||||
|
|
@ -494,7 +494,7 @@
|
||||||
|
|
||||||
{#each tags as tag}
|
{#each tags as tag}
|
||||||
<button
|
<button
|
||||||
class="min-w-fit outline-none p-1.5 {selectedTag === tag
|
class="min-w-fit outline-none px-1.5 py-0.5 {selectedTag === tag
|
||||||
? ''
|
? ''
|
||||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
||||||
aria-pressed={selectedTag === tag}
|
aria-pressed={selectedTag === tag}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue