pl-fe: fix dropdown menu overflow

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-05-06 14:49:20 +02:00
parent 2d4892cc1e
commit bc4b20c8a8

View File

@ -143,7 +143,7 @@ const DropdownMenuContent: React.FC<IDropdownMenuContent> = ({ handleClose, item
<div ref={ref}>
{items?.some(item => item?.items?.length) ? (
<ReactSwipeableViews animateHeight index={tab === undefined ? 0 : 1}>
<div className={clsx({ 'w-full': touchscreen })}>
<div className={clsx('max-w-full', { 'w-full': touchscreen })}>
{Component && <Component handleClose={handleClose} />}
{(items?.length || touchscreen) && renderItems(items)}
</div>