shuisheng před 2 roky
rodič
revize
bb49bf7f2b
2 změnil soubory, kde provedl 15 přidání a 0 odebrání
  1. 12 0
      src/views/home/index.vue
  2. 3 0
      src/views/pull/index.vue

+ 12 - 0
src/views/home/index.vue

@@ -325,6 +325,8 @@ function joinRoom(data: { roomId: number }) {
           position: absolute;
           top: 0;
           left: 50%;
+          max-width: $w-1100;
+          max-height: calc($w-1100 / $video-ratio);
           width: 100%;
           height: 100%;
           transform: translate(-50%);
@@ -335,6 +337,8 @@ function joinRoom(data: { roomId: number }) {
           position: absolute;
           top: 0;
           left: 50%;
+          max-width: $w-1100;
+          max-height: calc($w-1100 / $video-ratio);
           width: 100%;
           height: 100%;
           transform: translate(-50%);
@@ -588,6 +592,14 @@ function joinRoom(data: { roomId: number }) {
 
         .left {
           width: $w-900;
+          :deep(canvas) {
+            max-width: $w-900;
+            max-height: calc($w-900 / $video-ratio);
+          }
+          :deep(video) {
+            max-width: $w-900;
+            max-height: calc($w-900 / $video-ratio);
+          }
         }
         .right {
         }

+ 3 - 0
src/views/pull/index.vue

@@ -392,6 +392,9 @@ watch(
         }
         .media-list {
           position: relative;
+          max-width: $w-1000;
+          max-height: 562px;
+
           :deep(video) {
             display: block;
             width: 100%;