Make subscribe buttons identical
This commit is contained in:
parent
2a29e69d21
commit
154807d4be
|
@ -103,6 +103,14 @@
|
||||||
.icon img {
|
.icon img {
|
||||||
filter: invert(0);
|
filter: invert(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.buttonSubscribeLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttonSubscribeLabelHovered {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
@ -110,6 +118,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.buttonSubscribeLabelHovered {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.buttonWriteMessage {
|
.buttonWriteMessage {
|
||||||
border-radius: 0.8rem;
|
border-radius: 0.8rem;
|
||||||
padding-bottom: 0.6rem;
|
padding-bottom: 0.6rem;
|
||||||
|
|
|
@ -100,7 +100,15 @@ export const AuthorCard = (props: Props) => {
|
||||||
if (isSubscribing()) {
|
if (isSubscribing()) {
|
||||||
return t('subscribing...')
|
return t('subscribing...')
|
||||||
}
|
}
|
||||||
return t(subscribed() ? 'Unfollow' : 'Follow')
|
|
||||||
|
return !subscribed() ? (
|
||||||
|
t('Follow')
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<span class={styles.buttonSubscribeLabel}>{t('Following')}</span>
|
||||||
|
<span class={styles.buttonSubscribeLabelHovered}>{t('Unfollow')}</span>
|
||||||
|
</>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user