vision refactor
This commit is contained in:
parent
6aa29109cd
commit
18e6783809
@ -745,10 +745,31 @@ export default function VisionPage() {
|
|||||||
|
|
||||||
// Show Jitsi iframe if conference is selected
|
// Show Jitsi iframe if conference is selected
|
||||||
if (selectedConference && jitsiUrl) {
|
if (selectedConference && jitsiUrl) {
|
||||||
|
// Hide the main navigation bar when in conference mode
|
||||||
|
useEffect(() => {
|
||||||
|
const navBar = document.querySelector('div[class*="fixed"][class*="top-0"][class*="z-50"]');
|
||||||
|
if (navBar) {
|
||||||
|
(navBar as HTMLElement).style.display = 'none';
|
||||||
|
}
|
||||||
|
return () => {
|
||||||
|
if (navBar) {
|
||||||
|
(navBar as HTMLElement).style.display = '';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="w-full h-screen bg-black flex flex-col">
|
<>
|
||||||
|
<style dangerouslySetInnerHTML={{__html: `
|
||||||
|
/* Hide main navigation when in conference mode */
|
||||||
|
div.fixed.top-0.z-50,
|
||||||
|
div[class*="fixed"][class*="top-0"][class*="z-50"] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
`}} />
|
||||||
|
<main className="w-full h-screen bg-black flex flex-col fixed top-0 left-0 right-0 bottom-0 z-[60]">
|
||||||
{/* Header with back button */}
|
{/* Header with back button */}
|
||||||
<div className="bg-white border-b border-gray-200 px-4 py-3 flex items-center gap-4">
|
<div className="bg-white border-b border-gray-200 px-4 py-3 flex items-center gap-4 shrink-0">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
@ -773,6 +794,7 @@ export default function VisionPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user