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(agents): stop sidebar rows stretching to fill the conversations nav (#6724)

teo14da16da6506
diff --git a/apps/web/src/features/agents-view/components/AgentsSidebar.tsx b/apps/web/src/features/agents-view/components/AgentsSidebar.tsx
index 7b4cb057bf..93c85924dc 100644
--- a/apps/web/src/features/agents-view/components/AgentsSidebar.tsx
+++ b/apps/web/src/features/agents-view/components/AgentsSidebar.tsx
@@ -71,6 +71,8 @@ function ConversationContextMenu(props: {
selectedEntities={() => []}
viewContext={AGENTS_ACTION_VIEW_CONTEXT}
as="div"
+ // The nav is a fixed-height flex column, so the trigger's default
+ // `h-full` would split that height between the rows; keep rows content-sized.
class="block h-auto w-full shrink-0"
onOpenChange={(open) => {
if (!open) return;
diff --git a/apps/web/src/features/soup/SoupEntityContextMenu.tsx b/apps/web/src/features/soup/SoupEntityContextMenu.tsx
index 5bb63ff80a..9f4f43f87b 100644
--- a/apps/web/src/features/soup/SoupEntityContextMenu.tsx
+++ b/apps/web/src/features/soup/SoupEntityContextMenu.tsx
@@ -92,7 +92,7 @@ export const SoupEntityContextMenu: FlowComponent<
<Switch>
<Match when={isMobile()}>
<div
- class={cn('size-full', props.class)}
+ class={cn('h-full w-full', props.class)}
data-soup-entity
ref={(el) => {
touchHandler(el, () => ({
@@ -114,7 +114,7 @@ export const SoupEntityContextMenu: FlowComponent<
<ContextMenu onOpenChange={props.onOpenChange}>
<ContextMenu.Trigger
as={props.as}
- class={cn('size-full group/cm-trigger', props.class)}
+ class={cn('h-full w-full group/cm-trigger', props.class)}
on:contextmenu={(event: MouseEvent) =>
setMenuPosition({ x: event.clientX, y: event.clientY })
}