26
26
<span id =" connectStatus" >{{ connectionStatus }}</span >
27
27
</div >
28
28
<div class =" video-container" >
29
- <div
30
- class =" video-subcontainer"
31
- :style =" { padding: store.state.fullscreen ? 0 : 'inherit' }"
32
- >
29
+ <div class =" video-subcontainer" >
33
30
<div class =" player-container" >
34
31
<OmniPlayer
35
32
:source =" store.state.room.currentSource"
39
36
@ready =" onPlayerReady"
40
37
/>
41
38
<div id =" mouse-event-swallower" :class =" { hide: controlsVisible }" ></div >
42
- <div class =" in-video-chat" v-if =" controlsMode == 'in-video'" >
39
+ <div class =" in-video-chat" v-if =" controlsMode === 'in-video'" >
43
40
<Chat ref =" chat" @link-click =" setAddPreviewText" />
44
41
</div >
45
42
<div class =" playback-blocked-prompt" v-if =" mediaPlaybackBlocked" >
61
58
:mode =" controlsMode"
62
59
/>
63
60
</div >
64
- <div class =" out-video-chat" v-if =" controlsMode == 'outside-video' && !fullscreen" >
61
+ <div
62
+ class =" out-video-chat"
63
+ v-if =" controlsMode === 'outside-video' && !store.state.fullscreen"
64
+ >
65
65
<Chat ref =" chat" @link-click =" setAddPreviewText" />
66
66
</div >
67
67
</div >
@@ -725,30 +725,29 @@ $in-video-chat-width: 400px;
725
725
$in-video-chat-width-small : 250px ;
726
726
727
727
.video-container {
728
- position : relative ;
729
- display : flex ;
730
- justify-content : center ;
731
- align-items : center ;
732
- flex-direction : row ;
728
+ display : grid ;
729
+ grid-template-columns : 1fr auto ;
730
+ grid-template-rows : minmax (400px , 70vh );
733
731
width : 100% ;
734
-
735
- @media (max-width : $md-max ) {
736
- margin-left : 0 ;
737
- margin-right : 0 ;
738
- }
739
732
}
740
733
741
734
.video-subcontainer {
742
735
position : relative ;
743
736
display : flex ;
744
737
flex-direction : column ;
745
- flex-grow : 1 ;
738
+ height : 100% ;
739
+ }
740
+
741
+ .player-container {
746
742
width : 100% ;
743
+ height : 100% ;
747
744
}
748
745
749
746
.layout-default {
750
747
.video-subcontainer {
751
- max-width : 80% ;
748
+ width : 80% ;
749
+ justify-self : center ;
750
+
752
751
@media (max-width : $md-max ) {
753
752
max-width : 100% ;
754
753
}
@@ -759,45 +758,34 @@ $in-video-chat-width-small: 250px;
759
758
padding : 0 ;
760
759
761
760
.video-container {
762
- height : 85vh ;
763
- width : 100% ;
761
+ grid-template-rows : minmax (400px , 85vh );
764
762
}
765
763
766
764
.room-title {
767
765
font-size : 24px ;
768
766
}
769
767
}
770
768
771
- #mouse-event-swallower {
772
- position : absolute ;
773
- top : 0 ;
774
- width : 100% ;
775
- height : 100% ;
769
+ .fullscreen {
770
+ padding : 0 ;
776
771
777
- & .hide {
778
- display : none ;
772
+ .video-container {
773
+ display : block ;
774
+ margin : 0 ;
775
+ height : 100vh ;
776
+ max-height : 100vh ;
777
+ aspect-ratio : inherit ;
778
+ width : 100vw ;
779
779
}
780
- }
781
-
782
- .user-invite-container {
783
- padding : 0 10px ;
784
- min-height : 500px ;
785
780
786
- > * {
787
- margin-bottom : 10px ;
781
+ .video-subcontainer {
782
+ width : 100% ;
783
+ max-height : 100vh ;
784
+ padding : 0 ;
788
785
}
789
- }
790
-
791
- .queue-tab-content {
792
- // HACK: the save button in room settings is not sticky if overflow is not "visible"
793
- overflow : visible ;
794
- }
795
786
796
- .tab-text {
797
- margin : 0 8px ;
798
-
799
- @media screen and (max-width : $sm-max ) {
800
- display : none ;
787
+ .player-container {
788
+ height : 100vh ;
801
789
}
802
790
}
803
791
@@ -828,6 +816,39 @@ $in-video-chat-width-small: 250px;
828
816
pointer-events : none ;
829
817
}
830
818
819
+ #mouse-event-swallower {
820
+ position : absolute ;
821
+ top : 0 ;
822
+ width : 100% ;
823
+ height : 100% ;
824
+
825
+ & .hide {
826
+ display : none ;
827
+ }
828
+ }
829
+
830
+ .user-invite-container {
831
+ padding : 0 10px ;
832
+ min-height : 500px ;
833
+
834
+ > * {
835
+ margin-bottom : 10px ;
836
+ }
837
+ }
838
+
839
+ .queue-tab-content {
840
+ // HACK: the save button in room settings is not sticky if overflow is not "visible"
841
+ overflow : visible ;
842
+ }
843
+
844
+ .tab-text {
845
+ margin : 0 8px ;
846
+
847
+ @media screen and (max-width : $sm-max ) {
848
+ display : none ;
849
+ }
850
+ }
851
+
831
852
.playback-blocked-prompt {
832
853
position : absolute ;
833
854
top : 0 ;
@@ -847,39 +868,6 @@ $in-video-chat-width-small: 250px;
847
868
transition : transform 0s ;
848
869
}
849
870
850
- .player-container {
851
- position : relative ;
852
- width : 100% ;
853
- height : 100% ;
854
- aspect-ratio : 16 / 9 ;
855
-
856
- @media (min-aspect-ratio : 16 / 9 ) {
857
- aspect-ratio : initial ;
858
- }
859
- }
860
-
861
- .fullscreen {
862
- padding : 0 ;
863
-
864
- .video-container {
865
- display : block ;
866
- margin : 0 ;
867
- height : 100vh ;
868
- max-height : 100vh ;
869
- aspect-ratio : inherit ;
870
- width : 100vw ;
871
- }
872
-
873
- .video-subcontainer {
874
- width : 100% ;
875
- max-height : 100vh ;
876
- }
877
-
878
- .player-container {
879
- height : 100vh ;
880
- }
881
- }
882
-
883
871
.room {
884
872
@media (max-width : $md-max ) {
885
873
padding : 0 ;
@@ -889,6 +877,7 @@ $in-video-chat-width-small: 250px;
889
877
.room-header {
890
878
display : flex ;
891
879
flex-direction : row ;
880
+ align-items : center ;
892
881
margin : 0 10px ;
893
882
> * {
894
883
align-self : flex-end ;
0 commit comments