diff --git a/packages/desktop-client/src/components/budget/SidebarCategory.tsx b/packages/desktop-client/src/components/budget/SidebarCategory.tsx index 4d3b53e7a04..c125cedb71d 100644 --- a/packages/desktop-client/src/components/budget/SidebarCategory.tsx +++ b/packages/desktop-client/src/components/budget/SidebarCategory.tsx @@ -54,6 +54,9 @@ export function SidebarCategory({ const triggerRef = useRef(null); const contextMenusEnabled = useFeatureFlag('contextMenus'); + const [crossOffset, setCrossOffset] = useState(0); + const [offset, setOffset] = useState(0); + const displayed = (
setMenuOpen(true)} + onPress={() => { + setOffset(0); + setCrossOffset(0); + setMenuOpen(true); + }} > setMenuOpen(false)} - style={{ width: 200 }} + style={{ width: 200, margin: 1 }} isNonModal + offset={offset} + crossOffset={crossOffset} > { diff --git a/packages/desktop-client/src/components/budget/SidebarGroup.tsx b/packages/desktop-client/src/components/budget/SidebarGroup.tsx index 530c8f334a5..0c4b5823778 100644 --- a/packages/desktop-client/src/components/budget/SidebarGroup.tsx +++ b/packages/desktop-client/src/components/budget/SidebarGroup.tsx @@ -59,6 +59,9 @@ export function SidebarGroup({ const triggerRef = useRef(null); const contextMenusEnabled = useFeatureFlag('contextMenus'); + const [crossOffset, setCrossOffset] = useState(0); + const [offset, setOffset] = useState(0); + const displayed = ( {!dragPreview && ( @@ -108,7 +114,11 @@ export function SidebarGroup({