Add text "Subs"/"Followers" for correct platform
This commit is contained in:
parent
95609eae11
commit
dd73580080
|
@ -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>
|
Reference in a new issue