diff --git a/frontend/src/components/meeting/ChatPanel.vue b/frontend/src/components/meeting/ChatPanel.vue index 7d10a6f..9e838af 100644 --- a/frontend/src/components/meeting/ChatPanel.vue +++ b/frontend/src/components/meeting/ChatPanel.vue @@ -11,20 +11,19 @@ - 发送通过 @send 事件回传,成功/失败由父层决定是否 toast --> @@ -222,28 +224,15 @@ const close = () => emit('close') diff --git a/frontend/src/pages/meeting/room.vue b/frontend/src/pages/meeting/room.vue index c59b3fe..ebd7e61 100644 --- a/frontend/src/pages/meeting/room.vue +++ b/frontend/src/pages/meeting/room.vue @@ -34,22 +34,38 @@ - + - - - + + + + + + + + @@ -92,20 +108,6 @@ @close="inviteVisible = false" /> - - - @@ -633,6 +635,31 @@ onUnload(() => { min-height: 0; background: #0B1220; overflow: hidden; + display: flex; + flex-direction: row; +} +.video-col { + flex: 1; + min-width: 0; + min-height: 0; + display: flex; + overflow: hidden; +} +.chat-col { + width: 0; + min-height: 0; + flex-shrink: 0; + overflow: hidden; + transition: width 0.24s ease; + border-left: 1rpx solid rgba(255, 255, 255, 0.06); + background: #1F2937; +} +.chat-col.open { width: 640rpx; } + +@media (max-width: 750px) { + /* 小屏幕:聊天面板改为全屏浮层,避免挤压视频 */ + .chat-col { position: fixed; top: 0; right: 0; bottom: 0; z-index: 205; } + .chat-col.open { width: 100vw; } } /* 离会弹窗 */