Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix(web): update text wrapping and truncation for followers list. (#5056)
Gabe Kangas5c01168c3e41
diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss b/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scssindex 17004729b6..990bd6585a 100644--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss@@ -23,24 +23,6 @@justify-content: center;}}-- @media (640px <= width < 960px) {- .followerRow {- grid-template-columns: repeat(2, 1fr);- }- }-- @media (960px <= width < 1280px) {- .followerRow {- grid-template-columns: repeat(3, 1fr);- }- }-- @media (width >= 1280px) {- .followerRow {- grid-template-columns: repeat(4, 1fr);- }- }}.noFollowers {diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsxindex 4584c96e74..849b871954 100644--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx@@ -6,6 +6,23 @@ import { FollowerCollection } from './FollowerCollection';const mockFollowersData = {total: 100,results: [+ {+ link: 'https://fedi-test.example.social/users/feditestc21c4124',+ name: '',+ username: '[email protected]',+ image: '',+ timestamp: '2022-04-28T09:00:00Z',+ disabledAt: null,+ },+ {+ link: 'https://an-extremely-long-fediverse-server-hostname.example.technology/users/somebodywithareallylongusername',+ name: 'Somebody With A Really Long Display Name',+ username:+ 'somebodywithareallylongusername@an-extremely-long-fediverse-server-hostname.example.technology',+ image: '',+ timestamp: '2022-04-28T08:00:00Z',+ disabledAt: null,+ },{link: 'https://sun.minuscule.space/users/mardijker',name: 'mardijker',diff --git a/web/components/ui/followers/SingleFollower/SingleFollower.module.scss b/web/components/ui/followers/SingleFollower/SingleFollower.module.scssindex 532cf8ab77..f0a5ac7099 100644--- a/web/components/ui/followers/SingleFollower/SingleFollower.module.scss+++ b/web/components/ui/followers/SingleFollower/SingleFollower.module.scss@@ -44,15 +44,21 @@}.username {- display: block;font-family: var(--theme-text-display-font-family);font-weight: 600;color: var(--theme-color-components-text-on-light);font-size: 1rem;line-height: 1.1;- padding-bottom: 5px;+ display: -webkit-box;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;+ line-clamp: 2;+ margin-bottom: 5px;overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ }++ .textColumn {+ flex: 1;+ min-width: 0;}}diff --git a/web/components/ui/followers/SingleFollower/SingleFollower.tsx b/web/components/ui/followers/SingleFollower/SingleFollower.tsxindex 2c54197d06..149cc352ac 100644--- a/web/components/ui/followers/SingleFollower/SingleFollower.tsx+++ b/web/components/ui/followers/SingleFollower/SingleFollower.tsx@@ -22,7 +22,7 @@ export const SingleFollower: FC<SingleFollowerProps> = ({ follower }) => ({(follower.name || follower.username).charAt(0).toUpperCase()}</Avatar></Col>- <Col>+ <Col className={styles.textColumn}><Row className={styles.username}>{follower.name || follower.username.split('@', 2)[0]}</Row>