Parcourir la source

refactor(StreamPlayer): enhance component readability and structure

- Consolidated button and component attributes into single lines for improved clarity.
- Streamlined the layout of the timeline and context menu elements.
- Maintained functionality while improving overall code organization.
yb il y a 19 heures
Parent
commit
dbd91a4a08
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      src/views/live-stream/components/StreamPlayer.vue

+ 2 - 3
src/views/live-stream/components/StreamPlayer.vue

@@ -272,7 +272,7 @@
           </el-collapse-item>
 
           <!-- 预置位列表 (仅预置位模式显示) -->
-          <el-collapse-item v-if="playerMode !== 'waypoint'" name="preset">
+          <el-collapse-item v-if="playerMode !== 'waypoint'" name="preset" class="last-collapse-item">
             <template #title>
               <span class="collapse-title">{{ t('预置位') }}</span>
             </template>
@@ -814,13 +814,12 @@ const editingPresetNameModel = computed({
 // 右侧控制面板
 .control-panel {
   width: 280px;
-  flex-shrink: 0;
   display: flex;
   flex-direction: column;
-  overflow-y: auto;
 
   .ptz-collapse {
     border: none;
+    height: 100%;
 
     :deep(.el-collapse-item) {
       border: 1px solid #eee;