Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(soup): user icon weird padding (#3026)

Seamus5da9f1eb3101
diff --git a/js/app/packages/core/component/UserIcon.tsx b/js/app/packages/core/component/UserIcon.tsx
index 0ad615d8e4..ed64c703eb 100644
--- a/js/app/packages/core/component/UserIcon.tsx
+++ b/js/app/packages/core/component/UserIcon.tsx
@@ -103,7 +103,7 @@ export function UserIcon(props: UserIconProps) {
<div
onMouseDown={props.suppressClick ? undefined : getOrCreateDm}
class={cn(
- 'relative inline-flex shrink-0 overflow-hidden rounded-full bg-ink-extra-muted text-panel leading-none',
+ 'relative shrink-0 overflow-hidden rounded-full bg-ink-extra-muted text-panel',
sizeClasses().container,
props.class
)}
diff --git a/js/app/packages/entity/src/extractors-notification/notification-sender-icon.tsx b/js/app/packages/entity/src/extractors-notification/notification-sender-icon.tsx
index 02abe9fe1e..2957639317 100644
--- a/js/app/packages/entity/src/extractors-notification/notification-sender-icon.tsx
+++ b/js/app/packages/entity/src/extractors-notification/notification-sender-icon.tsx
@@ -41,10 +41,11 @@ export function NotificationSenderIcon(props: NotificationSenderIconProps) {
return [];
};
+ const hasSenders = () => senderIds().length > 0;
const hasMultipleSenders = () => senderIds().length > 1;
return (
- <Show when={senderIds().length > 0}>
+ <Show when={hasSenders()}>
<Show
when={hasMultipleSenders()}
fallback={
diff --git a/js/app/packages/entity/src/extractors-notification/notification-stacks.tsx b/js/app/packages/entity/src/extractors-notification/notification-stacks.tsx
index 8f511e1e73..b8afb012fd 100644
--- a/js/app/packages/entity/src/extractors-notification/notification-stacks.tsx
+++ b/js/app/packages/entity/src/extractors-notification/notification-stacks.tsx
@@ -185,7 +185,6 @@ export function NotificationStacks(props: NotificationStacksProps) {
const notifications = () => props.entity.notifications?.() ?? [];
const validNotifications = () =>
filterNotDoneNotifications(filterValidNotifications(notifications()));
-
const [stacks, setStacks] = createStore<NotificationStack[]>([]);
createEffect(() => {