feat: add sidebar toggle to workspace and admin models pages (#20176)

This commit is contained in:
G30
2025-12-28 15:45:45 -05:00
committed by GitHub
parent 3994d88c90
commit 9a9b5ef699
5 changed files with 89 additions and 6 deletions

View File

@@ -5,9 +5,10 @@
import { getContext } from 'svelte';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import Pin from '$lib/components/icons/Pin.svelte';
import PinSlash from '$lib/components/icons/PinSlash.svelte';
import DocumentDuplicate from '$lib/components/icons/DocumentDuplicate.svelte';
import Link from '$lib/components/icons/Link.svelte';
import Eye from '$lib/components/icons/Eye.svelte';
import EyeSlash from '$lib/components/icons/EyeSlash.svelte';
import { settings } from '$lib/stores';
const i18n = getContext('i18n');
@@ -63,9 +64,9 @@
}}
>
{#if ($settings?.pinnedModels ?? []).includes(model?.id)}
<EyeSlash />
<PinSlash />
{:else}
<Eye />
<Pin />
{/if}
<div class="flex items-center">