From 356797d32671c9bc47775e7a2584a351968e042d Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 6 Mar 2025 00:04:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20resolve=20conflicting?= =?UTF-8?q?=20styles=20in=20SidePanel=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix regression caused by competing styling methods in Box component. Remove duplicate position properties and standardize on simple div with css-in-js approach to prevent style conflicts and unexpected layout behavior. --- .../rooms/livekit/components/SidePanel.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx b/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx index deb7a9b9..f67d27a7 100644 --- a/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx +++ b/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx @@ -2,7 +2,7 @@ import { layoutStore } from '@/stores/layout' import { css } from '@/styled-system/css' import { Heading } from 'react-aria-components' import { text } from '@/primitives/Text' -import { Box, Button, Div } from '@/primitives' +import { Button, Div } from '@/primitives' import { RiCloseLine } from '@remixicon/react' import { useTranslation } from 'react-i18next' import { ParticipantsList } from './controls/Participants/ParticipantsList' @@ -28,9 +28,16 @@ const StyledSidePanel = ({ isClosed, closeButtonTooltip, }: StyledSidePanelProps) => ( - {children} - + ) type PanelProps = {