Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Only use username half of account as fallback value

Gabe Kangascaaa96feab47
diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx
index eda0c59116..fb5bceea6a 100644
--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx
+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx
@@ -261,6 +261,9 @@ const noFollowersMock = {
export default {
title: 'owncast/Components/Followers/Followers collection',
component: FollowerCollection,
+ parameters: {
+ chromatic: { diffThreshold: 0.83 },
+ },
} as ComponentMeta<typeof FollowerCollection>;
const Template: ComponentStory<typeof FollowerCollection> = (args: object) => (
diff --git a/web/components/ui/followers/SingleFollower/SingleFollower.tsx b/web/components/ui/followers/SingleFollower/SingleFollower.tsx
index 37447648bd..74b4278554 100644
--- a/web/components/ui/followers/SingleFollower/SingleFollower.tsx
+++ b/web/components/ui/followers/SingleFollower/SingleFollower.tsx
@@ -22,7 +22,9 @@ export const SingleFollower: FC<SingleFollowerProps> = ({ follower }) => (
</Col>
<Col span={18}>
<Row className={styles.name}>
- <Typography.Text ellipsis>{follower.name || follower.username}</Typography.Text>
+ <Typography.Text ellipsis>
+ {follower.name || follower.username.split('@', 2)[0]}
+ </Typography.Text>
</Row>
<Row className={styles.account}>
<Typography.Text ellipsis>{follower.username}</Typography.Text>