Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix[mobile]: no back swipe gesture on web mobile (#2650)
Peter Chinman30a6167913c4
diff --git a/js/app/packages/app/component/split-layout/SplitLayout.tsx b/js/app/packages/app/component/split-layout/SplitLayout.tsxindex 00e9022671..ae4d747f4d 100644--- a/js/app/packages/app/component/split-layout/SplitLayout.tsx+++ b/js/app/packages/app/component/split-layout/SplitLayout.tsx@@ -1,7 +1,7 @@import { useGlobalBlockOrchestrator } from '@app/component/GlobalAppState';import { activeElement } from '@app/signal/focus';import { Resize } from '@core/component/Resize';-import { isMobile } from '@core/mobile/isMobile';+import { isNativeMobilePlatform } from '@core/mobile/isNativeMobilePlatform';import { isSidebarVisible } from '@app/component/sidebarVisibility';import { tabTitleSignal } from '@core/signal/tabTitle';import { useNavigate } from '@solidjs/router';@@ -272,9 +272,10 @@ export function SplitLayoutContainer(props: SplitLayoutContainerProps) {const [, setTabTitle] = tabTitleSignal;// Create the mobile swipe layout once on mobile devices.- const mobileSwipeLayout: MobileSwipeLayout | undefined = isMobile()- ? createMobileSwipeLayout(splitManager)- : undefined;+ const mobileSwipeLayout: MobileSwipeLayout | undefined =+ isNativeMobilePlatform()+ ? createMobileSwipeLayout(splitManager)+ : undefined;// Store a ref to each panel by idconst panelRefs = new Map<SplitId, HTMLDivElement>();@@ -310,7 +311,7 @@ export function SplitLayoutContainer(props: SplitLayoutContainerProps) {class={cn('size-full p-2 mobile:p-0', { 'pl-0': isSidebarVisible() })}><Show- when={isMobile() && mobileSwipeLayout}+ when={isNativeMobilePlatform() && mobileSwipeLayout}fallback={// Desktop: side-by-side resizable splits.<Resize.Zone