Fix overlay positioning for 'Sort,' 'Filter,' and 'Options' menus #1521 (#1781)

* Fix overlay positioning for 'Sort,' 'Filter,' and 'Options' menus

* Fix according to review

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Gokul Bansal 2023-10-04 22:01:55 +05:30 committed by GitHub
parent 7af306792b
commit b2dd868046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ export const DropdownButton = ({
const { refs, floatingStyles } = useFloating({
placement: dropdownPlacement,
middleware: [flip(), offset()],
middleware: [flip(), offset({ mainAxis: 8, crossAxis: 0 })],
});
const handleHotkeyTriggered = () => {