mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Bunch of radix related fixes.
This commit is contained in:
parent
7d791b86f8
commit
c88f3c84eb
6 changed files with 32 additions and 16 deletions
|
@ -15,6 +15,7 @@ const MenuContent = ({
|
|||
className = "",
|
||||
onSelect,
|
||||
style,
|
||||
sideOffset,
|
||||
}: {
|
||||
children?: React.ReactNode;
|
||||
onClickOutside?: () => void;
|
||||
|
@ -24,6 +25,7 @@ const MenuContent = ({
|
|||
*/
|
||||
onSelect?: (event: Event) => void;
|
||||
style?: React.CSSProperties;
|
||||
sideOffset?: number;
|
||||
}) => {
|
||||
const device = useDevice();
|
||||
const menuRef = useOutsideClickHook(() => {
|
||||
|
@ -42,7 +44,7 @@ const MenuContent = ({
|
|||
style={style}
|
||||
data-testid="dropdown-menu"
|
||||
side="bottom"
|
||||
sideOffset={4}
|
||||
sideOffset={sideOffset ?? 4}
|
||||
align="start"
|
||||
>
|
||||
{/* the zIndex ensures this menu has higher stacking order,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue