Spaces:
Running
Running
help item menu target blank
Browse files
src/lib/components/sidebar/Menu.svelte
CHANGED
|
@@ -2,12 +2,13 @@
|
|
| 2 |
import { page } from '$app/stores';
|
| 3 |
|
| 4 |
export let href: string;
|
|
|
|
| 5 |
|
| 6 |
$: active_class = $page.url.pathname === href ? 'bg-neutral-900 !border-neutral-800' : '';
|
| 7 |
</script>
|
| 8 |
|
| 9 |
<li>
|
| 10 |
-
<a href={href} class="transition-all duration-200 w-full flex items-center justify-start text-neutral-200 rounded-xl text-base font-regular px-5 py-3.5 gap-2.5 border border-transparent {active_class}">
|
| 11 |
<slot />
|
| 12 |
</a>
|
| 13 |
</li>
|
|
|
|
| 2 |
import { page } from '$app/stores';
|
| 3 |
|
| 4 |
export let href: string;
|
| 5 |
+
export let target: string = '_self';
|
| 6 |
|
| 7 |
$: active_class = $page.url.pathname === href ? 'bg-neutral-900 !border-neutral-800' : '';
|
| 8 |
</script>
|
| 9 |
|
| 10 |
<li>
|
| 11 |
+
<a href={href} {target} class="transition-all duration-200 w-full flex items-center justify-start text-neutral-200 rounded-xl text-base font-regular px-5 py-3.5 gap-2.5 border border-transparent {active_class}">
|
| 12 |
<slot />
|
| 13 |
</a>
|
| 14 |
</li>
|
src/lib/components/sidebar/Sidebar.svelte
CHANGED
|
@@ -66,7 +66,7 @@
|
|
| 66 |
{/if}
|
| 67 |
</ul>
|
| 68 |
<hr class="border-neutral-800/50 mt-10 mx-4">
|
| 69 |
-
<Menu href="https://huggingface.co/spaces/enzostvs/loras-studio/discussions/1">
|
| 70 |
<Icon icon="ph:question-fill" class="w-5 h-5" />
|
| 71 |
Help
|
| 72 |
</Menu>
|
|
|
|
| 66 |
{/if}
|
| 67 |
</ul>
|
| 68 |
<hr class="border-neutral-800/50 mt-10 mx-4">
|
| 69 |
+
<Menu href="https://huggingface.co/spaces/enzostvs/loras-studio/discussions/1" target="_blank">
|
| 70 |
<Icon icon="ph:question-fill" class="w-5 h-5" />
|
| 71 |
Help
|
| 72 |
</Menu>
|