|
|
@@ -40,7 +40,7 @@ export const ClassroomLayout = ({ children, role }: ClassroomLayoutProps) => {
|
|
|
<div className="flex flex-col md:flex-row h-screen bg-gray-100">
|
|
|
{/* 视频区域 */}
|
|
|
{showVideo && (
|
|
|
- <div className="flex-1 p-4">
|
|
|
+ <div className="p-4 h-[300px] md:flex-1 md:h-auto">
|
|
|
<div className="bg-white rounded-lg shadow p-4 h-full">
|
|
|
<div
|
|
|
id="remoteVideoContainer"
|
|
|
@@ -54,7 +54,7 @@ export const ClassroomLayout = ({ children, role }: ClassroomLayoutProps) => {
|
|
|
)}
|
|
|
|
|
|
{/* 消息和控制面板列 */}
|
|
|
- <div className={`${showVideo ? 'w-full md:w-96' : 'flex-1'} flex flex-col`}>
|
|
|
+ <div className={`${showVideo ? 'w-full md:w-96 flex-1' : 'flex-1'} flex flex-col`}>
|
|
|
{/* 消息区域 */}
|
|
|
<div className="bg-white shadow-lg p-4">
|
|
|
<div className="h-full flex flex-col">
|