Revert "Make main menu full width on mobile again."

This reverts commit 70d48d5472.
This commit is contained in:
barnabasmolnar
2023-04-26 12:52:35 +02:00
parent 70d48d5472
commit b63d17045e
5 changed files with 15 additions and 22 deletions
@@ -16,7 +16,6 @@ const MenuContent = ({
onSelect,
style,
sideOffset,
collisionBoundary,
}: {
children?: React.ReactNode;
onClickOutside?: () => void;
@@ -27,7 +26,6 @@ const MenuContent = ({
onSelect?: (event: Event) => void;
style?: React.CSSProperties;
sideOffset?: number;
collisionBoundary?: Element | Element[] | null | undefined;
}) => {
const device = useDevice();
const menuRef = useOutsideClickHook(() => {
@@ -41,7 +39,6 @@ const MenuContent = ({
return (
<DropdownMenuContentPropsContext.Provider value={{ onSelect }}>
<DropdownMenuPrimitive.Content
collisionBoundary={collisionBoundary}
ref={menuRef}
className={classNames}
style={style}