浏览代码

调整直播中控台页面大小

yfh 1 天之前
父节点
当前提交
c7f4844344
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/live/liveConsole/LivePlayer.vue

+ 3 - 0
src/views/live/liveConsole/LivePlayer.vue

@@ -166,5 +166,8 @@ export default {
   width: 100%;
   height: auto;
   border-radius: 8px;
+  max-height: 300px; /* 设置最大高度,避免过大 */
+  object-fit: contain; /* 保持比例,不拉伸 */
+  background-color: #000; /* 黑色背景,避免视频加载时显示白色 */
 }
 </style>