Skip to content

Commit

Permalink
Scrollbar styles for participant list
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-signal committed Nov 23, 2020
1 parent 6d53cb1 commit 7ca063a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
29 changes: 25 additions & 4 deletions stylesheets/_modules.scss
Expand Up @@ -6572,7 +6572,7 @@ button.module-image__border-overlay:focus {
color: $color-white;
margin-right: 12px;
margin-top: 54px;
overflow: scroll;
overflow: hidden;
padding: 14px;
width: 280px;
padding-bottom: 0;
Expand All @@ -6593,9 +6593,30 @@ button.module-image__border-overlay:focus {
}

&__list {
margin: 0;
height: 100%;
margin-bottom: 0;
margin-left: -14px;
margin-right: -14px;
margin-top: 22px;
padding: 0;
overflow: scroll;
padding-bottom: 24px;
padding-left: 14px;
padding-right: 14px;
padding-top: 0;

&::-webkit-scrollbar {
width: 6px;
}

&::-webkit-scrollbar-thumb {
border: none;
border-radius: 4px;
background-color: $color-gray-45;
}

&::-webkit-scrollbar-track {
background-color: $color-gray-80;
}
}

&__contact {
Expand All @@ -6610,7 +6631,7 @@ button.module-image__border-overlay:focus {
&__name {
display: inline-block;
margin-left: 8px;
max-width: 144px;
max-width: 130px;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
Expand Down
9 changes: 9 additions & 0 deletions ts/components/CallingParticipantsList.stories.tsx
Expand Up @@ -82,3 +82,12 @@ story.add('Many Participants', () => {
});
return <CallingParticipantsList {...props} />;
});

story.add('Overflow', () => {
const props = createProps({
participants: Array(50)
.fill(null)
.map(() => createParticipant({ title: 'Kirby' })),
});
return <CallingParticipantsList {...props} />;
});

0 comments on commit 7ca063a

Please sign in to comment.