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(routines): fit the routines list on a phone without sideways scroll (#8770)
gbirman496e8ea55263
diff --git a/apps/web/src/components/view-shell/SearchBar.tsx b/apps/web/src/components/view-shell/SearchBar.tsxindex c9487ee024..3c34e69c1c 100644--- a/apps/web/src/components/view-shell/SearchBar.tsx+++ b/apps/web/src/components/view-shell/SearchBar.tsx@@ -114,7 +114,11 @@ export function SearchBar(props: SearchBarProps) {class="pointer-events-none absolute inset-0 flex items-center gap-2 overflow-hidden whitespace-nowrap text-sm text-ink-placeholder group-focus-within:hidden"><span class="truncate">{inputProps.placeholder}</span>- <Hotkey shortcut={local.hotkey} theme="subtle" class="shrink-0" />+ <Hotkey+ shortcut={local.hotkey}+ theme="subtle"+ class="shrink-0 touch:hidden"+ /></div></Show></div>@@ -123,7 +127,7 @@ export function SearchBar(props: SearchBarProps) {<Hotkeyshortcut={hotkey()}theme="subtle"- class="shrink-0 group-focus-within:hidden"+ class="shrink-0 group-focus-within:hidden touch:hidden"/>)}</Show>diff --git a/apps/web/src/features/routines/components/routine-row.tsx b/apps/web/src/features/routines/components/routine-row.tsxindex 652779643f..c2cb3677ea 100644--- a/apps/web/src/features/routines/components/routine-row.tsx+++ b/apps/web/src/features/routines/components/routine-row.tsx@@ -10,7 +10,10 @@ import { cn, InlineCheckbox, Layer, Tooltip } from '@ui';import { type JSX, type ParentProps, Show } from 'solid-js';import type { RoutineRow } from '../core/types';-/** Shared geometry keeps routine properties aligned with their column headers. */+/**+ * Shared geometry keeps routine properties aligned with their column headers.+ * A narrow list (a phone) drops the headers and collapses the row to one line.+ */export function RoutineRowLayout(props: ParentProps<Pick<JSX.HTMLAttributes<HTMLDivElement>, 'class' | 'role'>>) {@@ -18,7 +21,7 @@ export function RoutineRowLayout(<EntityLayoutrole={props.role}class={cn(- 'grid min-h-10 min-w-[740px] grid-cols-[minmax(12rem,1fr)_8rem_7rem_minmax(8rem,12rem)_7rem] items-center gap-2 px-3',+ 'grid min-h-10 min-w-[740px] grid-cols-[minmax(12rem,1fr)_8rem_7rem_minmax(8rem,12rem)_7rem] items-center gap-2 px-3 touch:min-h-11 @max-[760px]/routines:min-w-0 @max-[760px]/routines:grid-cols-[minmax(0,1fr)_auto_auto_auto]',props.class)}>@@ -50,7 +53,7 @@ export function RoutineListRow(props: {return (<divrole="row"- class="soup-list-entity @container/entity mx-1 min-w-[740px] rounded-xl py-0.5 hover:bg-list-hover focus-within:bg-list-highlighted"+ class="soup-list-entity @container/entity mx-1 min-w-[740px] rounded-xl py-0.5 hover:bg-list-hover focus-within:bg-list-highlighted @max-[760px]/routines:min-w-0"onClick={() => props.onOpen(props.row.id)}><RoutineRowLayout class="px-2 text-sm">@@ -65,7 +68,10 @@ export function RoutineListRow(props: {</button></Tooltip></EntitySlot>- <EntitySlot role="cell" class="min-w-0 text-xs text-ink-muted">+ <EntitySlot+ role="cell"+ class="min-w-0 text-xs text-ink-muted @max-[760px]/routines:hidden"+ ><Tooltip label={props.row.creator} class="max-w-full"><span class="truncate">{props.row.creator}</span></Tooltip>@@ -105,7 +111,9 @@ export function RoutineListRow(props: {class="size-3.5 shrink-0"/></Show>- <span class="truncate">{props.row.target}</span>+ <span class="truncate @max-[760px]/routines:sr-only">+ {props.row.target}+ </span></span></Tooltip></EntitySlot>@@ -126,7 +134,9 @@ export function RoutineListRow(props: {onClick={() => props.onToggle(props.row)}><InlineCheckbox checked={props.row.enabled} />- <span>{props.row.enabled ? 'Enabled' : 'Disabled'}</span>+ <span class="@max-[760px]/routines:hidden">+ {props.row.enabled ? 'Enabled' : 'Disabled'}+ </span></button></Tooltip></Layer>diff --git a/apps/web/src/features/routines/components/routines-list.tsx b/apps/web/src/features/routines/components/routines-list.tsxindex fafe3b8ad8..f074cec2ef 100644--- a/apps/web/src/features/routines/components/routines-list.tsx+++ b/apps/web/src/features/routines/components/routines-list.tsx@@ -100,9 +100,12 @@ export function RoutinesList(props: {aria-label="Routines"aria-busy={props.loading}tabIndex={-1}- class="min-h-0 min-w-0 flex-1 overflow-auto outline-none"+ class="@container/routines min-h-0 min-w-0 flex-1 overflow-auto outline-none">- <div role="rowgroup" class="sticky top-0 z-1 min-w-[748px] bg-panel">+ <div+ role="rowgroup"+ class="sticky top-0 z-1 min-w-[748px] bg-panel @max-[760px]/routines:hidden"+ ><RoutineRowLayoutrole="row"class="text-xs font-medium text-ink-extra-muted"@@ -116,7 +119,10 @@ export function RoutinesList(props: {</span></RoutineRowLayout></div>- <div role="rowgroup" class="min-w-[748px]">+ <div+ role="rowgroup"+ class="min-w-[748px] @max-[760px]/routines:min-w-0"+ ><For each={filtered()}>{(row) => (<RoutineListRowdiff --git a/docs/agent-guide/navigation.md b/docs/agent-guide/navigation.mdindex 0d4449b516..9dd634b6b0 100644--- a/docs/agent-guide/navigation.md+++ b/docs/agent-guide/navigation.md@@ -776,6 +776,10 @@ columns. The search field sits below the top bar, as in Projects; search by namecreator, or model/agent, or press **Cmd/Ctrl+F** to focus it. **Create Routine** sitsto the right of search. Click a row to open its settings in the same pane. Togglethe **Enabled** checkbox property directly in the list to pause or resume it.+When the list is narrower than 760px (a phone, or the Settings sheet) it drops the+column headers and **Created by**, and each row fits one line: name, status, the+model or agent icon, and the **Enabled** checkbox, with no sideways scroll. Search+fields hide their keyboard hint on touch devices.Open the routine and use its **Run History** tab to see past runs. Each run is itsown agent session. The routine's **Runs hidden** / **Runs shown** chip decideswhere its runs appear. **Hide runs** (the default) keeps them off Home and out of