Skip to content

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

fix: prevent horizontal overflow in followers grid (#4872)

Matt Van Horn3225d38fddfb
diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss b/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss
index 718ef38046..17004729b6 100644
--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss
+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss
@@ -9,8 +9,12 @@
.followerRow {
display: grid;
gap: 16px 0;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
grid-auto-rows: min-content;
+
+ > * {
+ min-width: 0;
+ }
}
@include screen(mobile) {
diff --git a/web/components/ui/followers/SingleFollower/SingleFollower.module.scss b/web/components/ui/followers/SingleFollower/SingleFollower.module.scss
index e7028210d7..532cf8ab77 100644
--- a/web/components/ui/followers/SingleFollower/SingleFollower.module.scss
+++ b/web/components/ui/followers/SingleFollower/SingleFollower.module.scss
@@ -12,6 +12,7 @@
line-height: 1.5rem;
height: 100%;
align-items: center;
+ overflow: hidden;
transition: border-color 0.2s ease-in-out;
&:hover {
@@ -37,6 +38,9 @@
color: var(--theme-color-components-text-on-light);
font-size: 0.7rem;
line-height: 1.2;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.username {
@@ -47,5 +51,8 @@
font-size: 1rem;
line-height: 1.1;
padding-bottom: 5px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
}