From 71d326e434ff21cbbda7ded1e48993656730d089 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Fri, 19 Apr 2024 12:45:21 -0400 Subject: [PATCH] Styling fixes --- src/lib/components/ContentLayout.svelte | 2 + src/routes/app/add-ons/+page.svelte | 66 ++++++++++++++----------- 2 files changed, 40 insertions(+), 28 deletions(-) diff --git a/src/lib/components/ContentLayout.svelte b/src/lib/components/ContentLayout.svelte index 4aa822207..35c9beda9 100644 --- a/src/lib/components/ContentLayout.svelte +++ b/src/lib/components/ContentLayout.svelte @@ -30,6 +30,7 @@ width: 100%; position: sticky; top: 0; + z-index: 2; padding: 0.625rem; } main { @@ -44,6 +45,7 @@ width: 100%; position: sticky; bottom: 0; + z-index: 2; padding: 0.625rem; } diff --git a/src/routes/app/add-ons/+page.svelte b/src/routes/app/add-ons/+page.svelte index 41efbbfee..3c5e244ef 100644 --- a/src/routes/app/add-ons/+page.svelte +++ b/src/routes/app/add-ons/+page.svelte @@ -49,6 +49,7 @@ Array.from(($page.url as URL).searchParams.entries()).find( ([_, value]) => value === "true", )?.[0] ?? "all"; + $: showTip = ["active", "featured", "premium"].includes(active); $: query = ($page.url as URL).searchParams.get("query") ?? ""; @@ -61,34 +62,37 @@ - - {#if active === "active"} - - - {$_("addonBrowserDialog.pinnedTip")} - - {:else if active === "featured"} - - - {$_("addonBrowserDialog.featuredTip")} - - {:else if active === "premium"} - - - {$_("addonBrowserDialog.premiumTip")} - + {#if showTip} +
+ {#if active === "active"} + + + {$_("addonBrowserDialog.pinnedTip")} + + {:else if active === "featured"} + + + {$_("addonBrowserDialog.featuredTip")} + + {:else if active === "premium"} + + + {$_("addonBrowserDialog.premiumTip")} + + {/if} +
{/if} {#await data.addons} Loading… @@ -119,3 +123,9 @@ + +