Skip to content

Commit

Permalink
Make side panel scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed May 17, 2023
1 parent 2e8bd0f commit 002bc82
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/ranking/EagerVisynRanking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,18 @@ export function EagerVisynRanking<T extends Record<string, unknown>>({
}
}, [selection]);

return <Box ref={divRef} style={{ flex: 1, width: '100%' }} {...(innerProps || {})} />;
return (
<Box
ref={divRef}
sx={{
flex: 1,
width: '100%',
// Make the side panel scrollable
'> .lu-side-panel-main': {
overflowY: 'auto',
},
}}
{...(innerProps || {})}
/>
);
}

0 comments on commit 002bc82

Please sign in to comment.