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(core): fix split header crash (#2082)

Seamus351d82ecd644
diff --git a/js/app/packages/app/component/split-layout/components/SplitHeader.tsx b/js/app/packages/app/component/split-layout/components/SplitHeader.tsx
index b4332562ee..846eb2d3e1 100644
--- a/js/app/packages/app/component/split-layout/components/SplitHeader.tsx
+++ b/js/app/packages/app/component/split-layout/components/SplitHeader.tsx
@@ -211,18 +211,18 @@ export function SplitHeader(props: { ref: Setter<HTMLDivElement | null> }) {
panel.layoutRefs.headerRight = ref;
}}
>
- <Show
- when={
- !isTouchDevice() &&
- (shouldShowEntityNavigation(soup, panel) ||
- (layout && canSpotlight(layout.manager)))
- }
- >
- <div class="z-2 relative flex items-center gap-0.5 h-full order-last">
+ <div class="z-2 relative flex items-center gap-0.5 h-full order-last">
+ <Show
+ when={
+ !isTouchDevice() &&
+ (shouldShowEntityNavigation(soup, panel) ||
+ (layout && canSpotlight(layout.manager)))
+ }
+ >
<EntityNavigationIndicator />
<SplitSpotlightButton />
- </div>
- </Show>
+ </Show>
+ </div>
</div>
</div>
</div>