1
0
Fork 0

Add text "Subs"/"Followers" for correct platform

This commit is contained in:
Korbs 2024-06-28 00:17:45 -04:00
parent 95609eae11
commit dd73580080
No known key found for this signature in database

View file

@ -11,7 +11,18 @@ const {
<a href={Link} class={'search-creator'}>
<div class="search-creator-media">
<p>{Followers}</p>
<p>
{
()=> {
if (Platform === "YouTube") {
return <span>Subs: </span>
} else if (Platform === "Twitch") {
return <span>Followers: </span>
}
}
}
{Followers}
</p>
<img class="scm-banner" alt={Name + "'s banner"} src={Banner}/>
<img class="scm-avatar" alt={Name + "'s avatar"} src={Avatar}/>
</div>
@ -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;
}
}
}
</style>