Merge pull request #1667 from ONLYOFFICE/bugfix/contextmenu-offset

bugfix/contextmenu-offset
This commit is contained in:
Alexey Safronov 2023-09-01 23:57:37 +04:00 committed by GitHub
commit fa368adb4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import PropTypes from "prop-types";
import VerticalDotsReactSvgUrl from "PUBLIC_DIR/images/vertical-dots.react.svg?url";
import IconButton from "@docspace/components/icon-button";
import ContextMenu from "@docspace/components/context-menu";
import { isDesktop } from "@docspace/components/utils/device";
const ContextButton = (props) => {
const [isOpen, setIsOpen] = useState(false);
@ -41,7 +42,7 @@ const ContextButton = (props) => {
ref={menuRef}
onHide={onHide}
scaled={false}
leftOffset={150}
leftOffset={isDesktop() ? 150 : 0}
/>
</div>
);