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(avatar): fix avi alignment in soup, use avi for sidebar channels (#3177)
Seamus01a4c48bb159
diff --git a/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsx b/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsxindex db69598a91..41e359ddac 100644--- a/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsx+++ b/js/app/packages/app/component/app-sidebar/channels-unread-widget.tsx@@ -11,7 +11,7 @@ import { openNotification } from '@notifications';import { isChannelNotification } from '@notifications/notification-helpers';import { getChannelNotificationParams } from '@notifications/notification-navigation';import type { UnifiedNotification } from '@notifications/types';-import { Button, cn } from '@ui';+import { Avatar, Button, cn } from '@ui';import {createEffect,createMemo,@@ -72,9 +72,9 @@ function computeChannelLetters(groups: ChannelGroup[]): Map<string, string> {function ChannelLetterIcon(props: { letters: string }) {return (- <div class="size-full rounded-sm border border-ink/40 text-ink-muted flex items-center justify-center">- <span class="text-xxs leading-none">{props.letters}</span>- </div>+ <Avatar size="md">+ <Avatar.Fallback>#{props.letters}</Avatar.Fallback>+ </Avatar>);}@@ -190,7 +190,7 @@ function ChannelGroupItem(props: {<Buttonclass={cn('flex items-center cursor-default rounded-xs',- isSlim() ? 'justify-center size-8' : 'justify-start gap-3 size-full'+ isSlim() ? 'justify-center size-8' : 'justify-start gap-3 size-full h-8')}draggable={false}variant="ghost"@@ -210,13 +210,13 @@ function ChannelGroupItem(props: {><UserIconid={senderId()!}- size="fill"+ size="md"suppressClickshowTooltip={false}/></Show><Show when={isSlim()}>- <div class="absolute -top-0.5 -right-0.5 size-1.5 bg-accent rounded-full" />+ <div class="absolute -top-0.5 -right-0.5 size-1.5 bg-accent rounded-full ring-page ring-2" /></Show></div>diff --git a/js/app/packages/app/component/app-sidebar/sidebar.tsx b/js/app/packages/app/component/app-sidebar/sidebar.tsxindex 487022d419..73d1ef267e 100644--- a/js/app/packages/app/component/app-sidebar/sidebar.tsx+++ b/js/app/packages/app/component/app-sidebar/sidebar.tsx@@ -361,10 +361,6 @@ export const registerSidebarHotkeys = ({}};-// ----------------------------------------------------------------------------// SidebarActionButton-// ----------------------------------------------------------------------------type SidebarActionButtonProps = {label: string;hotkeyToken?: HotkeyToken;diff --git a/js/app/packages/entity/src/extractors/entity-icon.tsx b/js/app/packages/entity/src/extractors/entity-icon.tsxindex 3921201667..15b166e455 100644--- a/js/app/packages/entity/src/extractors/entity-icon.tsx+++ b/js/app/packages/entity/src/extractors/entity-icon.tsx@@ -38,7 +38,7 @@ function DirectMessageIcon(props: {};return (- <div class={'bg-panel size-full rounded-full'}>+ <div class="size-full flex"><Showwhen={participantId()}fallback={