From 5e1c3eee002fa008603f65001c4b8a59cd5cd339 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Fri, 19 Apr 2024 12:27:03 -0400 Subject: [PATCH] Update Add-On list with common Tip --- .../components/addons/AddOnListItem.svelte | 1 - src/routes/app/add-ons/+page.svelte | 82 ++++++------------- .../app/add-ons/[owner]/[repo]/+page.svelte | 1 - 3 files changed, 26 insertions(+), 58 deletions(-) diff --git a/src/lib/components/addons/AddOnListItem.svelte b/src/lib/components/addons/AddOnListItem.svelte index 2900be4cd..ba011a294 100644 --- a/src/lib/components/addons/AddOnListItem.svelte +++ b/src/lib/components/addons/AddOnListItem.svelte @@ -60,7 +60,6 @@ min-width: 12rem; padding: 0.5rem 0.5rem 0.75rem; text-align: left; - border-top: 1px solid var(--gray-2); } .addon-link:hover .container { diff --git a/src/routes/app/add-ons/+page.svelte b/src/routes/app/add-ons/+page.svelte index 9b2d39e35..41efbbfee 100644 --- a/src/routes/app/add-ons/+page.svelte +++ b/src/routes/app/add-ons/+page.svelte @@ -17,6 +17,8 @@ import Error from "@/lib/components/common/Error.svelte"; import ListItem from "$lib/components/addons/AddOnListItem.svelte"; import AddOnsNavigation from "$lib/components/addons/AddOnsNavigation.svelte"; + import Tip from "@/lib/components/common/Tip.svelte"; + import Premium from "@/common/icons/Premium.svelte"; export let data; @@ -61,20 +63,32 @@ {#if active === "active"} - + + + {$_("addonBrowserDialog.pinnedTip")} + {:else if active === "featured"} - + + + {$_("addonBrowserDialog.featuredTip")} + {:else if active === "premium"} - + + + {$_("addonBrowserDialog.premiumTip")} + {/if} {#await data.addons} Loading… @@ -105,47 +119,3 @@ - - diff --git a/src/routes/app/add-ons/[owner]/[repo]/+page.svelte b/src/routes/app/add-ons/[owner]/[repo]/+page.svelte index ad3be7874..f7cb5f44b 100644 --- a/src/routes/app/add-ons/[owner]/[repo]/+page.svelte +++ b/src/routes/app/add-ons/[owner]/[repo]/+page.svelte @@ -7,6 +7,5 @@

{data.addon.name}

-

Placeholder