Skip to content

Commit

Permalink
Call toasts should be atop call headers
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
  • Loading branch information
automated-signal and EvanHahn-Signal committed Jun 4, 2021
1 parent 6364879 commit 48ffc0b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stylesheets/_modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6032,7 +6032,7 @@ button.module-image__border-overlay:focus {
top: 12px;
transition: top 200ms ease-out, opacity 200ms ease-out;
user-select: none;
z-index: 1;
z-index: 3;

&--hidden {
opacity: 0;
Expand Down
34 changes: 34 additions & 0 deletions ts/components/CallScreen.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,37 @@ story.add('Group call - 0', () => (
})}
/>
));

story.add('Group call - someone is sharing screen', () => (
<CallScreen
{...createProps({
callMode: CallMode.Group,
remoteParticipants: allRemoteParticipants
.slice(0, 5)
.map((participant, index) => ({
...participant,
presenting: index === 1,
sharingScreen: index === 1,
})),
})}
/>
));

story.add(
"Group call - someone is sharing screen and you're reconnecting",
() => (
<CallScreen
{...createProps({
callMode: CallMode.Group,
connectionState: GroupCallConnectionState.Reconnecting,
remoteParticipants: allRemoteParticipants
.slice(0, 5)
.map((participant, index) => ({
...participant,
presenting: index === 1,
sharingScreen: index === 1,
})),
})}
/>
)
);

0 comments on commit 48ffc0b

Please sign in to comment.