|
@@ -749,7 +749,7 @@
|
|
<div
|
|
<div
|
|
class="{scrollTop > 0
|
|
class="{scrollTop > 0
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible'} bg-linear-to-b from-gray-50 dark:from-gray-950 to-transparent from-50% pointer-events-none absolute inset-0 -z-10 -mb-6"
|
|
|
|
|
|
+ : 'invisible'} sidebar-bg-gradient-to-b bg-linear-to-b from-gray-50 dark:from-gray-950 to-transparent from-50% pointer-events-none absolute inset-0 -z-10 -mb-6"
|
|
></div>
|
|
></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -785,6 +785,7 @@
|
|
|
|
|
|
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
|
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
|
<button
|
|
<button
|
|
|
|
+ id="sidebar-search-button"
|
|
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition outline-none"
|
|
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition outline-none"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
showSearch.set(true);
|
|
showSearch.set(true);
|
|
@@ -805,6 +806,7 @@
|
|
{#if ($config?.features?.enable_notes ?? false) && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true))}
|
|
{#if ($config?.features?.enable_notes ?? false) && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true))}
|
|
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
|
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
|
<a
|
|
<a
|
|
|
|
+ id="sidebar-notes-button"
|
|
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
|
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
|
href="/notes"
|
|
href="/notes"
|
|
on:click={itemClickHandler}
|
|
on:click={itemClickHandler}
|
|
@@ -825,6 +827,7 @@
|
|
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.models || $user?.permissions?.workspace?.knowledge || $user?.permissions?.workspace?.prompts || $user?.permissions?.workspace?.tools}
|
|
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.models || $user?.permissions?.workspace?.knowledge || $user?.permissions?.workspace?.prompts || $user?.permissions?.workspace?.tools}
|
|
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
|
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
|
<a
|
|
<a
|
|
|
|
+ id="sidebar-workspace-button"
|
|
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
|
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
|
href="/workspace"
|
|
href="/workspace"
|
|
on:click={itemClickHandler}
|
|
on:click={itemClickHandler}
|
|
@@ -1176,7 +1179,7 @@
|
|
|
|
|
|
<div class="px-1.5 pt-1.5 pb-2 sticky bottom-0 z-10 -mt-3 sidebar">
|
|
<div class="px-1.5 pt-1.5 pb-2 sticky bottom-0 z-10 -mt-3 sidebar">
|
|
<div
|
|
<div
|
|
- class=" bg-linear-to-t from-gray-50 dark:from-gray-950 to-transparent from-50% pointer-events-none absolute inset-0 -z-10 -mt-6"
|
|
|
|
|
|
+ class=" sidebar-bg-gradient-to-t bg-linear-to-t from-gray-50 dark:from-gray-950 to-transparent from-50% pointer-events-none absolute inset-0 -z-10 -mt-6"
|
|
></div>
|
|
></div>
|
|
<div class="flex flex-col font-primary">
|
|
<div class="flex flex-col font-primary">
|
|
{#if $user !== undefined && $user !== null}
|
|
{#if $user !== undefined && $user !== null}
|