mirror of
https://github.com/suitenumerique/meet.git
synced 2026-07-26 11:58:53 +00:00
✨(frontend) add a connection state toast to the PiP window
Surface connection state changes (reconnecting, disconnected, etc.) directly in the PiP window so the user stays informed without needing to switch back to the main window. Co-authored-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
committed by
aleb_the_flash
parent
ee85768940
commit
ba8b3bda30
@@ -5,6 +5,7 @@ import { PipStage } from './layout/PipStage'
|
||||
import { ReactionsToolbar } from '@/features/reactions/components/toolbar/ReactionsToolbar'
|
||||
import { useReactionsToolbar } from '@/features/reactions/hooks/useReactionsToolbar'
|
||||
import { NotificationProvider } from '@/features/notifications/NotificationProvider'
|
||||
import { ConnectionStateToast } from '@livekit/components-react'
|
||||
|
||||
const Container = styled('div', {
|
||||
base: {
|
||||
@@ -46,10 +47,25 @@ const Container = styled('div', {
|
||||
},
|
||||
})
|
||||
|
||||
const ConnectionStateWrapper = styled('div', {
|
||||
base: {
|
||||
position: 'fixed',
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
zIndex: 1000,
|
||||
pointerEvents: 'none',
|
||||
'& > *': { pointerEvents: 'auto' },
|
||||
},
|
||||
})
|
||||
|
||||
export const PipView = () => {
|
||||
const { isOpen: isReactionToolbarOpen } = useReactionsToolbar()
|
||||
return (
|
||||
<Container isReactionToolbarOpen={isReactionToolbarOpen}>
|
||||
<ConnectionStateWrapper>
|
||||
<ConnectionStateToast />
|
||||
</ConnectionStateWrapper>
|
||||
<PipStage />
|
||||
<ReactionsToolbar adjustedCentering={false} />
|
||||
<PipControlBar showScreenShare={false} />
|
||||
|
||||
Reference in New Issue
Block a user