♻️(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:
committed by
aleb_the_flash
parent
0da8aa846a
commit
0370d9cad0
@@ -94,7 +94,7 @@ export const Effects = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<VStack padding="0 1.5rem">
|
<VStack padding="0 1.5rem" overflowY="scroll">
|
||||||
{localCameraTrack && isCameraEnabled ? (
|
{localCameraTrack && isCameraEnabled ? (
|
||||||
<video
|
<video
|
||||||
ref={videoRef}
|
ref={videoRef}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const StyledSidePanel = ({
|
|||||||
<RiCloseLine />
|
<RiCloseLine />
|
||||||
</Button>
|
</Button>
|
||||||
</Div>
|
</Div>
|
||||||
<Div overflowY="scroll">{children}</Div>
|
{children}
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export const ParticipantsList = () => {
|
|||||||
|
|
||||||
// TODO - extract inline styling in a centralized styling file, and avoid magic numbers
|
// TODO - extract inline styling in a centralized styling file, and avoid magic numbers
|
||||||
return (
|
return (
|
||||||
<>
|
<Div overflowY="scroll">
|
||||||
<H
|
<H
|
||||||
lvl={2}
|
lvl={2}
|
||||||
className={css({
|
className={css({
|
||||||
@@ -78,6 +78,6 @@ export const ParticipantsList = () => {
|
|||||||
<ParticipantListItem participant={participant} />
|
<ParticipantListItem participant={participant} />
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</>
|
</Div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user