vision refactor

This commit is contained in:
alma 2026-01-15 21:37:59 +01:00
parent 6010c832f2
commit 48d3f1d7e2

View File

@ -350,6 +350,21 @@ export default function VisionPage() {
setJitsiUrl(null);
};
// Hide footer when in conference mode
useEffect(() => {
if (selectedConference && jitsiUrl) {
const footer = document.querySelector('footer');
if (footer) {
(footer as HTMLElement).style.display = 'none';
}
return () => {
if (footer) {
(footer as HTMLElement).style.display = '';
}
};
}
}, [selectedConference, jitsiUrl]);
// Check if meeting can be joined (5 minutes before start until end)
const canJoinMeeting = (meeting: ScheduledMeeting): boolean => {
if (!meeting.start || !meeting.end) {
@ -747,19 +762,8 @@ export default function VisionPage() {
if (selectedConference && jitsiUrl) {
return (
<main className="w-full h-[calc(100vh-3rem)] bg-black flex flex-col mt-12">
{/* Floating back button */}
<Button
variant="ghost"
size="sm"
onClick={handleBack}
className="absolute top-16 left-4 z-10 bg-white/90 hover:bg-white text-gray-900 shadow-lg"
>
<ArrowLeft className="h-4 w-4 mr-2" />
Retour
</Button>
{/* Jitsi iframe */}
<div className="flex-1 overflow-hidden">
{/* Jitsi iframe - full height without footer space */}
<div className="flex-1 overflow-hidden h-full">
<ResponsiveIframe
src={jitsiUrl}
allow="camera; microphone; fullscreen; display-capture; autoplay; clipboard-write; encrypted-media"