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(ui): dechud attachments (#3317)
Fake-Userd052f6e036d1
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 aa790c5377..e493f62a0a 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@@ -1094,7 +1094,7 @@ export const SoupViewList = (props: SoupViewListProps) => {onClick={() => group().loadMore()}><CaretDownIcon class="size-2.5" />- Load more+ Load More</Button></Show></div>diff --git a/js/app/packages/channel/Attachments/AttachmentEntityList.tsx b/js/app/packages/channel/Attachments/AttachmentEntityList.tsxindex 18f6339a15..ef8f638bc8 100644--- a/js/app/packages/channel/Attachments/AttachmentEntityList.tsx+++ b/js/app/packages/channel/Attachments/AttachmentEntityList.tsx@@ -21,7 +21,7 @@ export function AttachmentEntityList(props: {return (<AttachmentSection label="Documents">- <div class="grid p-3">+ <div class="grid grid-cols-1"><Show when={!hasDocuments()}><div class="py-3 text-sm text-ink-faint">No documents in this channel yet.diff --git a/js/app/packages/channel/Attachments/AttachmentEntityRow.tsx b/js/app/packages/channel/Attachments/AttachmentEntityRow.tsxindex 3320eac2d1..c27d986b36 100644--- a/js/app/packages/channel/Attachments/AttachmentEntityRow.tsx+++ b/js/app/packages/channel/Attachments/AttachmentEntityRow.tsx@@ -13,12 +13,12 @@ export function AttachmentEntityRow(props: {<Entity.Rootentity={props.entity}onClick={() => props.onClick?.()}- class="flex items-center gap-2 min-h-10 px-2 text-sm hover:bg-hover w-full"+ class="flex items-center gap-2 min-h-10 px-6 text-sm hover:bg-hover w-full"><div class="size-4 shrink-0"><Entity.Icon entity={props.entity} /></div>- <span class="ph-no-capture font-semibold truncate flex-1">+ <span class="ph-no-capture font-semibold truncate flex-1 min-w-0"><Entity.Title entity={props.entity} /></span><Show when={props.senderId}>diff --git a/js/app/packages/channel/Attachments/MediaGallery.tsx b/js/app/packages/channel/Attachments/MediaGallery.tsxindex e3cceb66d1..d1cd35e770 100644--- a/js/app/packages/channel/Attachments/MediaGallery.tsx+++ b/js/app/packages/channel/Attachments/MediaGallery.tsx@@ -16,8 +16,8 @@ export function MediaGallery(props: {const hasMedia = () => props.items.length > 0;return (- <AttachmentSection label="Photos and videos">- <div class="grid p-3">+ <AttachmentSection label="Photos and Videos">+ <div class="grid py-2 px-6"><Show when={!hasMedia()}><div class="py-3 text-sm text-ink-faint">No photos or videos in this channel yet.@@ -26,13 +26,11 @@ export function MediaGallery(props: {<Show when={hasMedia()}><div>- <div- aria-label="Photos and videos gallery"- class="flex flex-row flex-wrap gap-1.5"- >+ <div aria-label="Photos and videos gallery"><MediaGriditems={props.items}variant="attachments"+ class="justify-center"onOpen={(index) => {setLightboxIndex(index);setViewerOpen(true);diff --git a/js/app/packages/channel/Attachments/SectionHeader.tsx b/js/app/packages/channel/Attachments/SectionHeader.tsxindex 7df2fcde0b..f387670c1a 100644--- a/js/app/packages/channel/Attachments/SectionHeader.tsx+++ b/js/app/packages/channel/Attachments/SectionHeader.tsx@@ -11,7 +11,7 @@ export function AttachmentSection(props: {}) {return (<Panel depth={2} class={cn('h-auto', props.class)}>- <Panel.Header class="justify-between">+ <Panel.Header class="justify-between px-6"><h3 class="text-sm font-medium text-ink">{props.label}</h3><div class="shrink-0">{props.action}</div></Panel.Header>@@ -28,9 +28,10 @@ export function LoadMoreButton(props: {}) {return (<Button- variant="ghost"+ variant="base"size="sm"- class="w-full"+ depth={4}+ class="justify-self-center mt-2 bg-surface"onClick={() => props.onLoadMore()}disabled={props.isFetching()}>@@ -43,7 +44,7 @@ export function LoadMoreButton(props: {</>}>- Load more+ Load More</Show></Button>);diff --git a/js/app/packages/channel/Media/MediaGrid.tsx b/js/app/packages/channel/Media/MediaGrid.tsxindex c99475e3da..27bd35c3b6 100644--- a/js/app/packages/channel/Media/MediaGrid.tsx+++ b/js/app/packages/channel/Media/MediaGrid.tsx@@ -6,7 +6,7 @@ import { MediaImage } from './MediaImage';import { MediaVideo } from './MediaVideo';import type { MediaItem } from './media-items';-const ATTACHMENT_TILE_SIZE = 92;+const ATTACHMENT_TILE_SIZE = 106;const SINGLE_IMAGE_MAX_WIDTH = 400;const SINGLE_IMAGE_MAX_HEIGHT = 400;const MESSAGE_GALLERY_IMAGE_MAX_WIDTH = 200;@@ -59,7 +59,7 @@ function AttachmentImageTile(props: { item: MediaItem; onOpen?: () => void }) {<MediaImage.Imagesrc={props.item.src}class={cn(- 'size-23 select-none rounded-2xl border border-edge object-cover',+ 'size-25.5 select-none rounded-2xl border border-edge object-cover',props.onOpen && 'hover:opacity-80')}onOpen={props.onOpen}@@ -140,7 +140,7 @@ function MessageVideoTile(props: { item: MediaItem; onOpen: () => void }) {function AttachmentVideoTile(props: { item: MediaItem; onOpen?: () => void }) {return (- <MediaVideo.Root class="size-23 group overflow-hidden border border-edge bg-surface">+ <MediaVideo.Root class="size-25.5 group overflow-hidden border border-edge bg-surface"><MediaVideo.Previewsrc={props.item.src}class="size-full object-cover"