Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(mobile): mobile search stacking context (#4936)

Peter Chinmand272d7c5602f
diff --git a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx b/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
index 9d1601093b..076acbd1f2 100644
--- a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
+++ b/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
@@ -202,7 +202,9 @@ export function SplitPanel(props: SplitPanelProps) {
'fixed inset-16 z-modal-overlay isolate opacity-50':
props.handle.isSpotLight(),
'opacity-100': props.active || props.handle.isSpotLight(),
- 'relative size-full': !props.handle.isSpotLight(),
+ // mobile:isolate contains the floating SplitHeader within the panel's own stacking context, so the root-level mobile
+ // search overlay paints over it.
+ 'relative size-full mobile:isolate': !props.handle.isSpotLight(),
}}
style={{
'--split-header-height': `${
diff --git a/apps/web/src/features/command/mobile/MobileSearch.tsx b/apps/web/src/features/command/mobile/MobileSearch.tsx
index a0c2a7f0eb..dbf5e7e9e8 100644
--- a/apps/web/src/features/command/mobile/MobileSearch.tsx
+++ b/apps/web/src/features/command/mobile/MobileSearch.tsx
@@ -195,7 +195,7 @@ function MobileSearchInner() {
<Show when={showTabs()}>
<FloatRegion
region="accessory"
- priority={20}
+ priority={100}
active={() => SearchState.isOpen()}
>
<CategoryFilterTabs />
@@ -206,7 +206,7 @@ function MobileSearchInner() {
while search is open, regardless of keyboard visibility. */}
<FloatRegion
region="dock"
- priority={20}
+ priority={100}
active={() => SearchState.isOpen()}
>
<SearchInputBar onBack={handleBack} />