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(soup): expand find bar in narrow split via SplitHeaderRight (#3275)
gbirman2601d296e696
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsxindex 314257ab3a..b45fb9eb9f 100644--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx@@ -145,6 +145,12 @@ export const SoupSearchbar = (props: SoupSearchbarProps) => {class="w-full flex items-center shrink-0 grow min-w-0 mobile:-order-2"data-search-bar-wrapperdata-no-focus-restore+ onFocusOut={(e) => {+ if (hasContent() || !props.onDismiss) return;+ const next = e.relatedTarget as Node | null;+ if (next && e.currentTarget.contains(next)) return;+ props.onDismiss();+ }}><divclass={cn(diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsxindex 9a5eed2952..8d13287e2c 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx@@ -285,22 +285,13 @@ export const SoupView = (props: SoupViewProps) => {<div class="size-full flex flex-col"><div class="flex flex-col w-full"><SplitHeaderLeft>- <div- class={cn('h-full flex gap-3 items-center', {- 'shrink-0': !narrowSearchExpanded(),- 'flex-1 min-w-0': narrowSearchExpanded(),- })}- >+ <div class="h-full flex gap-3 items-center shrink-0"><Show when={!isMobile()}><h1 class="font-semibold text-ink select-none text-sm shrink-0">{props.viewName}</h1></Show>- <Show- when={- !narrowSearchExpanded() && !isComponentListView('search')- }- >+ <Show when={!isComponentListView('search')}><Show when={!isMobile()}><CollapsibleHeaderItemid="tabs"@@ -317,22 +308,22 @@ export const SoupView = (props: SoupViewProps) => {<MobileFilterDrawer /></Show></Show>- <Show when={narrowSearchExpanded()}>- <div class="flex-1 min-w-0">- <SoupSearchbar- variant="secondary"- autoFocus- initialValue={props.initialSearchText}- onDismiss={() => setNarrowSearchExpanded(false)}- />- </div>- </Show></div></SplitHeaderLeft><SplitHeaderRight><Show when={isMobile() && !narrowSearchExpanded()}><SettingsButton /></Show>+ <Show when={narrowSearchExpanded()}>+ <div class="flex-1 min-w-0">+ <SoupSearchbar+ variant="secondary"+ autoFocus+ initialValue={props.initialSearchText}+ onDismiss={() => setNarrowSearchExpanded(false)}+ />+ </div>+ </Show><Showwhen={!isComponentListView('search')}fallback={