diff --git a/src/frontend/packages/lib_video/src/components/common/TeacherVideoInfoBar/index.tsx b/src/frontend/packages/lib_video/src/components/common/TeacherVideoInfoBar/index.tsx index f0e0e2fa25..65e4bf6f2b 100644 --- a/src/frontend/packages/lib_video/src/components/common/TeacherVideoInfoBar/index.tsx +++ b/src/frontend/packages/lib_video/src/components/common/TeacherVideoInfoBar/index.tsx @@ -16,7 +16,7 @@ export const TeacherVideoInfoBar = ({ diff --git a/src/frontend/packages/lib_video/src/components/common/VideoInfoBar/index.tsx b/src/frontend/packages/lib_video/src/components/common/VideoInfoBar/index.tsx index a997fdb66c..484a11f00c 100644 --- a/src/frontend/packages/lib_video/src/components/common/VideoInfoBar/index.tsx +++ b/src/frontend/packages/lib_video/src/components/common/VideoInfoBar/index.tsx @@ -18,6 +18,17 @@ import { useUpdateVideo } from 'api/useUpdateVideo'; import { useCurrentVideo } from 'hooks/useCurrentVideo'; import { useParticipantsStore } from 'hooks/useParticipantsStore'; +const StyledBoxTextInput = styled(Box)` + & > div:first-child { + display: flex; + flex-direction: row-reverse; + width: 100%; + align-items: center; + justify-content: space-between; + gap: 0.5rem; + } +`; + const StyledTitleTextInput = styled(TextInput)` border: 1px solid ${normalizeColor('blue-active', theme)}; border-radius: 4px; @@ -134,19 +145,14 @@ export const VideoInfoBar = ({ isTeacher, startDate }: VideoInfoBarProps) => { return ( {isTeacher ? ( - + } onBlur={(event) => handleChange(event.target.value)} @@ -156,8 +162,12 @@ export const VideoInfoBar = ({ isTeacher, startDate }: VideoInfoBarProps) => { value={title} plain reverse + width={{ + min: '270px', + width: `100%`, + }} /> - + ) : ( { {title} )} - - {numberOfStudents > 0 && ( - - {intl.formatMessage(messages.nbViewers, { - numberOfStudents, - })} - - )} - {localStartDate && ( - - {localStartDate} - - )} - + {numberOfStudents > 0 || localStartDate ? ( + + {numberOfStudents > 0 && ( + + {intl.formatMessage(messages.nbViewers, { + numberOfStudents, + })} + + )} + {localStartDate && ( + + {localStartDate} + + )} + + ) : null} ); }; diff --git a/src/frontend/packages/lib_video/src/components/common/VideoLayout/index.tsx b/src/frontend/packages/lib_video/src/components/common/VideoLayout/index.tsx index 3f84700864..e2177acc81 100644 --- a/src/frontend/packages/lib_video/src/components/common/VideoLayout/index.tsx +++ b/src/frontend/packages/lib_video/src/components/common/VideoLayout/index.tsx @@ -23,6 +23,10 @@ import { DisplayNameForm } from './DisplayNameForm'; const StyledLiveVideoInformationBarWrapper = styled(Box)` -webkit-box-shadow: 0px 0px 7px 5px ${normalizeColor('shadow-1', theme)}; box-shadow: 0px 0px 7px 5px ${normalizeColor('shadow-1', theme)}; + flex-wrap: wrap; + gap: 1rem; + height: auto; + justify-content: space-evenly; `; interface LiveStudentLayoutProps { diff --git a/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveControlBar/index.tsx b/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveControlBar/index.tsx index a8750f11c4..b63b48f098 100644 --- a/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveControlBar/index.tsx +++ b/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveControlBar/index.tsx @@ -49,7 +49,12 @@ export const TeacherLiveControlBar = () => { }; }, [video, isStarted, setIsStarted]); - return ( + const isBoxToDisplay = + (isMobileView && availableItems.includes(LivePanelItem.CHAT)) || + (isMobileView && availableItems.includes(LivePanelItem.VIEWERS_LIST)) || + (video.live_type === LiveModeType.RAW && isStarted); + + return isBoxToDisplay ? ( {isMobileView && availableItems.includes(LivePanelItem.CHAT) && ( @@ -69,5 +74,5 @@ export const TeacherLiveControlBar = () => { )} - ); + ) : null; }; diff --git a/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveLifecycleControls/index.tsx b/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveLifecycleControls/index.tsx index 8c0a290989..3a2e3e4861 100644 --- a/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveLifecycleControls/index.tsx +++ b/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/TeacherLiveLifecycleControls/index.tsx @@ -118,7 +118,6 @@ export const TeacherLiveLifecycleControls = ({ return ( diff --git a/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/index.tsx b/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/index.tsx index 505dedb6f3..82169827a2 100644 --- a/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/index.tsx +++ b/src/frontend/packages/lib_video/src/components/live/Teacher/Wrapper/Controls/index.tsx @@ -19,7 +19,15 @@ export const Controls = ({ return ( {isLiveStarted && } - +