Skip to content

Commit

Permalink
fix(call): change position of fullscreen call and reset fullscreen on…
Browse files Browse the repository at this point in the history
… call end
  • Loading branch information
AlexZakablukov committed Jun 1, 2022
1 parent ae9c04b commit caf7dc9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions assets/styles/framework/framework.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@second-layer-zindex: 20;
@third-layer-zindex: 30;
@fourth-layer-zindex: 40;
@fifth-layer-zindex: 50;
@viewport-width: 100vw;

@import url('~/assets/styles/thirdparty/scrollbar.less');
Expand Down Expand Up @@ -42,3 +43,6 @@
.fourth-layer {
z-index: @fourth-layer-zindex;
}
.fifth-layer {
z-index: @fifth-layer-zindex;
}
8 changes: 4 additions & 4 deletions layouts/Layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@

&.fullscreen-media {
.media-open {
flex: 0;
}
#chatbar {
height: 0;
margin-top: 0;
}
.scroll-area {
Expand All @@ -115,6 +111,10 @@
}
#mediastream {
height: calc(@full - @toolbar-height - @light-spacing);
&:extend(.fifth-layer);
}
.chat-scroll-content {
overflow: hidden;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions store/webrtc/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ const webRTCActions = {
commit('setActiveCall', undefined)
commit('updateCreatedAt', 0)
commit('conversation/setCalling', false, { root: true })
commit('ui/fullscreen', false, { root: true })
call.off('INCOMING_CALL', onCallIncoming)
call.off('OUTGOING_CALL', onCallOutgoing)
call.off('CONNECTED', onCallConnected)
Expand Down

0 comments on commit caf7dc9

Please sign in to comment.