From 03e5548f61a84f7f61b325d6484216092937d802 Mon Sep 17 00:00:00 2001 From: xnought Date: Mon, 8 Apr 2024 21:20:27 -0700 Subject: [PATCH] feat: vis on top --- frontend/src/lib/Header.svelte | 25 ++++++++++++------------- frontend/src/lib/Molstar.svelte | 2 +- frontend/src/routes/Align.svelte | 2 +- frontend/src/routes/Protein.svelte | 2 +- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/frontend/src/lib/Header.svelte b/frontend/src/lib/Header.svelte index a869b4c5..f4e641ea 100644 --- a/frontend/src/lib/Header.svelte +++ b/frontend/src/lib/Header.svelte @@ -8,14 +8,14 @@ TableRowOutline, BookOutline, } from "flowbite-svelte-icons"; - import {user} from "./stores/user" - import Cookies from "js-cookie" + import { user } from "./stores/user"; + import Cookies from "js-cookie"; // Checking if the user has a cookie. // If they do, set user status for the whole site. onMount(async () => { if (Cookies.get("auth")) { - $user.loggedIn = true + $user.loggedIn = true; } }); @@ -32,9 +32,9 @@ >Search {#if $user.loggedIn} - - Upload + + Upload {/if} Tutorials - {#if $user.loggedIn} - Logout - {:else} - Login - {/if} - + {#if $user.loggedIn} + Logout + {:else} + Login + {/if} +
diff --git a/frontend/src/lib/Molstar.svelte b/frontend/src/lib/Molstar.svelte index b8890553..53beb6e2 100644 --- a/frontend/src/lib/Molstar.svelte +++ b/frontend/src/lib/Molstar.svelte @@ -62,6 +62,6 @@ #myViewer { float: left; position: relative; - z-index: 997; + z-index: 999; } diff --git a/frontend/src/routes/Align.svelte b/frontend/src/routes/Align.svelte index 58eebe7d..005d48ff 100644 --- a/frontend/src/routes/Align.svelte +++ b/frontend/src/routes/Align.svelte @@ -67,7 +67,7 @@ >
-
+
-
+