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(ios soup): css as source of truth for safe area (#4349)
Peter Chinmand5f58a53f0dd
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 323da1d2a6..dfbffebc21 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@@ -106,6 +106,7 @@ import {invalidateSoupEntity,refetchSoupEntity,} from '@queries/soup/normalized-cache';+import { createElementSize } from '@solid-primitives/resize-observer';import { debounce } from '@solid-primitives/scheduled';import { Button, cn, Layer, Tooltip } from '@ui';import {@@ -1512,11 +1513,15 @@ const SoupList = (props: SoupListProps) => {const itemSize = createMemo(() => props.itemSize ?? DEFAULT_ITEM_SIZE);const overscan = createMemo(() => props.overscan ?? DEFAULT_OVERSCAN);+ const [topSpacerRef, setTopSpacerRef] = createSignal<HTMLDivElement>();+ const topSpacerSize = createElementSize(topSpacerRef);// Full-frame mobile: rows under-scroll the status bar; this in-scroll// spacer is their resting inset (safe-top — list views have no header).const topInset = () =>- isMobile() ? (splitPanel?.contentOffsetTop() ?? 0) : 0;+ isMobile()+ ? (topSpacerSize.height ?? splitPanel?.contentOffsetTop() ?? 0)+ : 0;const handleScroll = (offset: number) => {const handle = virtualizerHandle();@@ -1564,7 +1569,11 @@ const SoupList = (props: SoupListProps) => {}}{...soupListContainerAttribute}>- <div aria-hidden style={{ height: `${topInset()}px` }} />+ <div+ ref={setTopSpacerRef}+ aria-hidden+ class="h-0 mobile:h-(--mobile-content-inset-top)"+ /><Virtualizercache={props.cache}ref={registerVirtualizerHandler}