From dd7358008019972e17edbf7162451d093aa610e4 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 28 Jun 2024 00:17:45 -0400 Subject: [PATCH] Add text "Subs"/"Followers" for correct platform --- src/components/search/Creator.astro | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/components/search/Creator.astro b/src/components/search/Creator.astro index 802af0b..9afa72e 100644 --- a/src/components/search/Creator.astro +++ b/src/components/search/Creator.astro @@ -11,7 +11,18 @@ const {
-

{Followers}

+

+ { + ()=> { + if (Platform === "YouTube") { + return Subs: + } else if (Platform === "Twitch") { + return Followers: + } + } + } + {Followers} +

{Name {Name
@@ -54,6 +65,14 @@ const { } .search-creator-meta { padding-left: 104px; + p { + // Truncate + max-width: 250px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: inherit; + } } } \ No newline at end of file