Skip to content

Commit 2ef069b

Browse files
committed
Custom instruction anchor in settings
1 parent 43714c0 commit 2ef069b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/routes/settings/+layout.svelte

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import CarbonCheckmark from "~icons/carbon/checkmark";
1111
import CarbonAdd from "~icons/carbon/add";
1212
13+
import LicenseIcon from '~icons/carbon/license'
1314
import UserIcon from "~icons/carbon/user";
1415
import { fade, fly } from "svelte/transition";
1516
export let data;
@@ -76,6 +77,14 @@
7677
{/if}
7778
</a>
7879
{/each}
80+
<a
81+
href="{base}/settings/custom"
82+
class="group flex h-10 flex-none items-center gap-2 pl-3 pr-2 text-sm text-gray-500 hover:bg-gray-100 md:rounded-xl
83+
{$page.url.pathname === `${base}/settings/custom` ? '!bg-gray-100 !text-gray-800' : ''}"
84+
>
85+
<LicenseIcon />
86+
<div class="truncate">Custom Instructions</div>
87+
</a>
7988
<!-- if its huggingchat, the number of assistants owned by the user must be non-zero to show the UI -->
8089
{#if data.enableAssistants}
8190
<h3 bind:this={assistantsSection} class="pb-3 pl-3 pt-5 text-[.8rem] text-gray-800 sm:pl-1">

0 commit comments

Comments
 (0)