Skip to content

Commit

Permalink
fix #839
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jan 22, 2025
1 parent c5b84d1 commit 3422907
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
21 changes: 13 additions & 8 deletions src/components/Chat/Chat.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
.subscriber {
position: relative;
.subscriber.subscriber.subscriber.subscriber.subscriber {
color: rgb(33, 186, 69);
font-weight: 700;
}

.subscriber img {
/* .subscriber {
position: relative;
} */

/* .subscriber img {
border: 3px solid transparent;
}
} */

.subscriber:before {
/* .subscriber:before {
content: '';
background: linear-gradient(
60deg,
Expand All @@ -26,9 +31,9 @@
border-radius: 2px;
animation: animatedgradient 2.5s ease infinite;
background-size: 200% 200%;
}
} */

@keyframes animatedgradient {
/* @keyframes animatedgradient {
0% {
background-position: 0% 50%;
}
Expand All @@ -38,7 +43,7 @@
100% {
background-position: 0% 50%;
}
}
} */

.chatContainer {
flex-grow: 1;
Expand Down
21 changes: 9 additions & 12 deletions src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,17 +398,10 @@ const ChatMessage = ({
return (
<Comment className={`${classes.comment} ${className}`}>
{id ? (
<Popup
content="WatchParty Plus subscriber"
disabled={!isSub}
trigger={
<Comment.Avatar
className={isSub ? classes.subscriber : ''}
src={
pictureMap[id] ||
getDefaultPicture(nameMap[id], getColorForStringHex(id))
}
/>
<Comment.Avatar
src={
pictureMap[id] ||
getDefaultPicture(nameMap[id], getColorForStringHex(id))
}
/>
) : null}
Expand All @@ -421,7 +414,11 @@ const ChatMessage = ({
isChatMessage
disabled={!Boolean(owner && owner === user?.uid)}
trigger={
<Comment.Author as="a" className={styles.light}>
<Comment.Author
title={isSub ? 'WatchParty Plus subscriber' : ''}
as="a"
className={isSub ? classes.subscriber : styles.light}
>
{Boolean(system) && 'System'}
{nameMap[id] || id}
</Comment.Author>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Modal/SubscribeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,23 +127,23 @@ export class SubscribeModal extends React.Component<{
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Custom Room URLs and Titles</Table.Cell>
<Table.Cell>Custom room URLs and titles</Table.Cell>
<Table.Cell></Table.Cell>
<Table.Cell>
<Icon name="check" />
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
Discord Subscriber Role (with linked account)
Discord subscriber role (with linked account)
</Table.Cell>
<Table.Cell></Table.Cell>
<Table.Cell>
<Icon name="check" />
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Animated Chat Avatar Frame</Table.Cell>
<Table.Cell>Colored names in chat</Table.Cell>
<Table.Cell></Table.Cell>
<Table.Cell>
<Icon name="check" />
Expand Down

0 comments on commit 3422907

Please sign in to comment.