♻️(frontend) delegate scroll to side panel content

Allow more flexibility in side panel behavior. Some panels, such as the chat,
require specific scrolling functionality:
- Header and footer should remain fixed
- Only chat messages should be scrollable

This change enables customization of scroll behavior for different panel types,
improving component reusability.
This commit is contained in:
lebaudantoine
2024-10-09 17:28:41 +02:00
committed by aleb_the_flash
parent 0da8aa846a
commit 0370d9cad0
3 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ export const Effects = () => {
}
return (
<VStack padding="0 1.5rem">
<VStack padding="0 1.5rem" overflowY="scroll">
{localCameraTrack && isCameraEnabled ? (
<video
ref={videoRef}

View File

@@ -58,7 +58,7 @@ const StyledSidePanel = ({
<RiCloseLine />
</Button>
</Div>
<Div overflowY="scroll">{children}</Div>
{children}
</Box>
)

View File

@@ -44,7 +44,7 @@ export const ParticipantsList = () => {
// TODO - extract inline styling in a centralized styling file, and avoid magic numbers
return (
<>
<Div overflowY="scroll">
<H
lvl={2}
className={css({
@@ -78,6 +78,6 @@ export const ParticipantsList = () => {
<ParticipantListItem participant={participant} />
)}
/>
</>
</Div>
)
}