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[mobile]: fix channel soup truncation (#2080)
Peter Chinman08ffe2e1253d
diff --git a/js/app/packages/app/component/Layout.tsx b/js/app/packages/app/component/Layout.tsxindex b89e32fdaf..cd4b85df49 100644--- a/js/app/packages/app/component/Layout.tsx+++ b/js/app/packages/app/component/Layout.tsx@@ -137,7 +137,11 @@ export function Layout(props: RouteSectionProps) {</Show><div class="max-h-full grow-1 flex"><Show- when={isAuthenticated() && !AUTH_URLS.includes(location.pathname)}+ when={+ !isMobile() &&+ isAuthenticated() &&+ !AUTH_URLS.includes(location.pathname)+ }><AppSidebarsidebarState={sidebarState()}diff --git a/js/app/packages/core/component/LexicalMarkdown/theme.ts b/js/app/packages/core/component/LexicalMarkdown/theme.tsindex 0c4df30023..8f76544e12 100644--- a/js/app/packages/core/component/LexicalMarkdown/theme.ts+++ b/js/app/packages/core/component/LexicalMarkdown/theme.ts@@ -232,6 +232,10 @@ export const twoLineClampMarkdownTheme = createTheme({...unifiedListMarkdownTheme,root: `${theme.root} pr-[2px] cursor-default`,paragraph: 'md-p text-[1em] line-clamp-2',+ text: {+ ...theme.text,+ bold: 'font-medium',+ },// .md .search-match sets display:inline-block, which iOS Safari treats as a// box item inside -webkit-line-clamp, causing the clamp to count one fewer// visual line (line-clamp-3 appears as 2 lines). Override to inline so thediff --git a/js/app/packages/entity/src/composed/ListEntity.tsx b/js/app/packages/entity/src/composed/ListEntity.tsxindex 95ae4c7da2..d9e27cad27 100644--- a/js/app/packages/entity/src/composed/ListEntity.tsx+++ b/js/app/packages/entity/src/composed/ListEntity.tsx@@ -50,7 +50,6 @@ import { createEntityDraggable } from '../utils/draggable';import { UnreadIndicator } from '../components/UnreadIndicator';import { MultiSelectCheckbox } from '../components/MultiSelectCheckbox';import { DraftBadge, InviteBadge, SharedBadge } from '../components/Badges';-import { DisplayName } from '../components/DisplayName';import { useIsShared } from '../utils/shared';import { ProjectBreadCrumb } from '../components/ProjectBreadCrumb';import {@@ -60,6 +59,8 @@ import {import { useSplitPanel } from '@app/component/split-layout/layoutUtils';import { mergeRefs } from '@solid-primitives/refs';import { createElementSize } from '@solid-primitives/resize-observer';+import { tryMacroId, useDisplayNameParts } from '@core/user';+import { DisplayName } from '@entity/components/DisplayName';const WIDE_BREAKPOINT = 512; // @lg container query = 32rem@@ -338,6 +339,12 @@ function NarrowMessageLayout(props: LayoutProps) {const isDirectMessage = () =>isChannelEntity(props.entity) &&props.entity.channelType === 'direct_message';++ const name =+ isChannelEntity(props.entity) && props.entity.latestMessage?.senderId+ ? useDisplayNameParts(tryMacroId(props.entity.latestMessage?.senderId))+ : undefined;+return (<Entity.Layoutclass="w-full text-sm grid"@@ -424,7 +431,11 @@ function NarrowMessageLayout(props: LayoutProps) {><StaticMarkdowntheme={twoLineClampMarkdownTheme}- markdown={msg().content.trim()}+ markdown={+ (name ? `**${name.firstName()}:** ` : '') ++ msg().content.trim()+ }+ singleLine/></Show></Entity.Slot>