From 2a127156735790fddf3afecc8ee55b4b50979eb2 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sun, 13 Oct 2024 21:39:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8(frontend)=20enhance=20side=20panel?= =?UTF-8?q?=20=20UX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement smooth animations and DOM persistence for sidepanel. Side panel state should be kept alive, to match initial LiveKit team intent. Temporarily, remove chat component. Chat functionality will be absent until next commits. It will be reintegrated in the side panel. --- .../notifications/MainNotificationToast.tsx | 2 +- .../rooms/livekit/components/SidePanel.tsx | 50 ++++++++++++++++--- .../rooms/livekit/prefabs/ControlBar.tsx | 23 +++++++-- .../rooms/livekit/prefabs/VideoConference.tsx | 42 +++++++--------- 4 files changed, 79 insertions(+), 38 deletions(-) diff --git a/src/frontend/src/features/notifications/MainNotificationToast.tsx b/src/frontend/src/features/notifications/MainNotificationToast.tsx index e482419a..deea9ffc 100644 --- a/src/frontend/src/features/notifications/MainNotificationToast.tsx +++ b/src/frontend/src/features/notifications/MainNotificationToast.tsx @@ -105,7 +105,7 @@ export const MainNotificationToast = () => { }, [room]) return ( -
+
) diff --git a/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx b/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx index 5443a85b..c05eee3f 100644 --- a/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx +++ b/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx @@ -15,6 +15,7 @@ type StyledSidePanelProps = { title: string children: ReactNode onClose: () => void + isClosed: boolean closeButtonTooltip: string } @@ -22,11 +23,11 @@ const StyledSidePanel = ({ title, children, onClose, + isClosed, closeButtonTooltip, }: StyledSidePanelProps) => ( {title} -
+