Skip to content

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

Update follower cards to have better responsive design (#4198)

Germaine Leefb22acdd638d
diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss b/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss
index ad52ee70cc..bb3022cf65 100644
--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss
+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.module.scss
@@ -3,23 +3,38 @@
.followers {
width: 100%;
padding: 5px;
+ margin: 0 auto;
min-height: 20vh;
.followerRow {
display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 16px 0;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ grid-auto-rows: min-content;
}
- @media (width <= 900px) {
+ @include screen(mobile) {
.followerRow {
- grid-template-columns: repeat(2, minmax(0, 1fr));
+ display: block;
+ justify-content: center;
}
}
- @include screen(mobile) {
+ @media (640px <= width < 960px) {
.followerRow {
- display: block;
- justify-content: center;
+ 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);
}
}
}
diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx
index 59386906db..c666490d8a 100644
--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx
+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx
@@ -101,9 +101,9 @@ const mocks = {
disabledAt: null,
},
{
- link: 'https://gamethattune.club/users/thelinkfloyd',
- name: 'thelinkfloyd',
- username: '[email protected]',
+ link: 'https://gamethattune.club/users/fourthwall',
+ name: ':fourthwall: █████ :fourthwall: (( MagmaSys ))',
+ username: '[email protected]',
image: '',
timestamp: '2022-04-05T12:23:32Z',
disabledAt: null,
diff --git a/web/components/ui/followers/SingleFollower/SingleFollower.module.scss b/web/components/ui/followers/SingleFollower/SingleFollower.module.scss
index 997f3c420a..f7f039b5c3 100644
--- a/web/components/ui/followers/SingleFollower/SingleFollower.module.scss
+++ b/web/components/ui/followers/SingleFollower/SingleFollower.module.scss
@@ -10,6 +10,9 @@
margin: 0.5em;
font-size: 1rem;
line-height: 1.5rem;
+ height: 100%;
+ align-items: center;
+ transition: border-color 0.2s ease-in-out;
&:hover {
border-color: var(--theme-text-link);