fix: 🐛 Overflow scroll list menu based on screen hight (#4123)

This commit is contained in:
Igor Octaviano 2024-05-15 10:16:02 -03:00 committed by GitHub
parent d5759d6c06
commit 6bba2e70f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,10 @@ const ListMenu = ({ items = [], renderer, onClick }) => {
};
return (
<div className="bg-secondary-dark flex flex-col gap-[4px] rounded-md p-1">
<div
className="bg-secondary-dark flex flex-col gap-[4px] overflow-scroll rounded-md p-1"
style={{ maxHeight: 'calc(100vh - 5rem)' }}
>
{items.map((item, index) => {
return (
<ListItem