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.

style(entity): improve call badge and avatar group styling (#8048)

Jacob Beckerman54702ed5c79f
diff --git a/apps/web/src/features/entity/components/Badges.tsx b/apps/web/src/features/entity/components/Badges.tsx
index c5042ef267..b44641d01c 100644
--- a/apps/web/src/features/entity/components/Badges.tsx
+++ b/apps/web/src/features/entity/components/Badges.tsx
@@ -137,17 +137,17 @@ function getCallStatusBadgeConfig(status: CallStatus): CallStatusBadgeConfig {
switch (status) {
case 'ATTENDED':
return {
- class: 'text-ink-extra-muted border-edge-muted px-2',
+ class: 'text-ink-extra-muted border-transparent bg-ink/5 px-2',
label: 'attended',
};
case 'MISSED':
return {
- class: 'text-warning border-edge-muted px-2',
+ class: 'text-warning border-transparent bg-warning/10 px-2',
label: 'missed',
};
case 'UNATTENDED':
return {
- class: 'text-ink-extra-muted/70 border-edge-muted px-2',
+ class: 'text-ink-extra-muted/70 border-transparent bg-ink/5 px-2',
label: 'unattended',
};
}
@@ -162,7 +162,7 @@ export function CallStatusBadge(props: { status: CallStatus }) {
export function CallChannelNameBadge(props: { channelName: string }) {
return (
<Badge
- class="ph-no-capture max-w-32 min-w-0 shrink-0 normal-case font-sans text-ink-extra-muted border-edge-muted px-2"
+ class="ph-no-capture max-w-32 min-w-0 shrink-0 normal-case font-sans text-ink-extra-muted border-transparent bg-ink/5 px-2"
title={props.channelName}
>
<HashIcon class="size-3 shrink-0" />
@@ -173,7 +173,7 @@ export function CallChannelNameBadge(props: { channelName: string }) {
export function CallDurationBadge(props: { duration: string }) {
return (
- <Badge class="normal-case text-ink-extra-muted border-edge-muted px-2">
+ <Badge class="normal-case text-ink-extra-muted border-transparent bg-ink/5 px-2">
{props.duration}
</Badge>
);
diff --git a/apps/web/src/features/entity/composed/ListEntity.tsx b/apps/web/src/features/entity/composed/ListEntity.tsx
index cafafbcb45..01b5120716 100644
--- a/apps/web/src/features/entity/composed/ListEntity.tsx
+++ b/apps/web/src/features/entity/composed/ListEntity.tsx
@@ -221,18 +221,23 @@ export function ListEntity(props: ListEntityProps) {
// to track which layout the Switch actually renders.
isWide() ? SOUP_ROW_CLASS.wide : SOUP_ROW_CLASS.narrow,
'soup-list-entity rounded-xl @container/entity w-[calc(100%-0.5rem)] mr-1 relative group/narrow flex flex-col py-0.5',
+ // Keep avatar-group separators in sync with the row background so they
+ // blend into it instead of creating visible rings.
+ '[--avatar-group-separator:var(--color-panel)]',
{
'min-h-10 mx-(--soup-row-gutter)':
!isMobile() && !usesCondensedNarrowLayout(),
'min-h-9 mx-(--soup-row-gutter)':
!isMobile() && usesCondensedNarrowLayout(),
- 'bg-list-selected': props.checked,
- 'bg-list-selected-highlighted': props.checked && props.highlighted,
- 'bg-list-highlighted':
+ 'bg-list-selected [--avatar-group-separator:var(--color-list-selected)]':
+ props.checked,
+ 'bg-list-selected-highlighted [--avatar-group-separator:var(--color-list-selected-highlighted)]':
+ props.checked && props.highlighted,
+ 'bg-list-highlighted [--avatar-group-separator:var(--color-list-highlighted)]':
props.highlighted && !props.checked && !isTouchDevice(),
- 'hover:bg-list-hover':
+ 'hover:bg-list-hover hover:[--avatar-group-separator:var(--color-list-hover)]':
!props.highlighted && !props.checked && !isTouchDevice(),
- 'focus-within:bg-list-hover':
+ 'focus-within:bg-list-hover focus-within:[--avatar-group-separator:var(--color-list-hover)]':
!!rowActions() && !props.highlighted && !props.checked,
}
)}