|
@@ -130,8 +130,7 @@ export const ClassroomLayout = ({ children, role }: ClassroomLayoutProps) => {
|
|
|
return (
|
|
return (
|
|
|
<div className={`flex ${isLandscape ? 'flex-row' : 'flex-col'} md:flex-row h-screen bg-gray-100`}>
|
|
<div className={`flex ${isLandscape ? 'flex-row' : 'flex-col'} md:flex-row h-screen bg-gray-100`}>
|
|
|
{/* 视频区域 */}
|
|
{/* 视频区域 */}
|
|
|
- {showVideo && (
|
|
|
|
|
- <div className={`relative ${isLandscape ? 'flex-[3] h-auto' : 'h-[300px]'} md:flex-[3] md:h-auto bg-black`}>
|
|
|
|
|
|
|
+ <div className={`relative ${isLandscape ? 'flex-[3] h-auto' : 'h-[300px]'} md:flex-[3] md:h-auto bg-black ${showVideo ? 'block' : 'hidden'}`}>
|
|
|
{/* 主屏幕共享容器 */}
|
|
{/* 主屏幕共享容器 */}
|
|
|
<div
|
|
<div
|
|
|
id="remoteScreenContainer"
|
|
id="remoteScreenContainer"
|
|
@@ -171,7 +170,6 @@ export const ClassroomLayout = ({ children, role }: ClassroomLayoutProps) => {
|
|
|
</div>
|
|
</div>
|
|
|
)}
|
|
)}
|
|
|
</div>
|
|
</div>
|
|
|
- )}
|
|
|
|
|
|
|
|
|
|
{/* 消息和控制面板列 */}
|
|
{/* 消息和控制面板列 */}
|
|
|
<div className={`${showVideo ? `${isLandscape ? 'w-96 flex-none h-screen' : 'w-full h-[calc(100vh-300px)]'}` : 'h-full'} md:w-96 md:flex-none flex flex-col overflow-hidden ${isLandscape ? 'max-h-screen' : ''}`}>
|
|
<div className={`${showVideo ? `${isLandscape ? 'w-96 flex-none h-screen' : 'w-full h-[calc(100vh-300px)]'}` : 'h-full'} md:w-96 md:flex-none flex flex-col overflow-hidden ${isLandscape ? 'max-h-screen' : ''}`}>
|