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(tags): match tag pills to email participant pills (#9869)

Jacob Beckermanc4bf1249c586
diff --git a/apps/web/src/features/email-thread/email-thread.tsx b/apps/web/src/features/email-thread/email-thread.tsx
index 088535955b..f732a0f1df 100644
--- a/apps/web/src/features/email-thread/email-thread.tsx
+++ b/apps/web/src/features/email-thread/email-thread.tsx
@@ -118,7 +118,6 @@ export function EmailThread(props: EmailThreadProps) {
<InlineFetchedEntityTagsPill
entityId={props.threadId()}
entityType="THREAD"
- class="bg-surface-2"
showAddButton
/>
</Suspense>
diff --git a/apps/web/src/features/property/tags/EntityRowTags.tsx b/apps/web/src/features/property/tags/EntityRowTags.tsx
index e9ffbbd1c5..91b661140c 100644
--- a/apps/web/src/features/property/tags/EntityRowTags.tsx
+++ b/apps/web/src/features/property/tags/EntityRowTags.tsx
@@ -279,7 +279,8 @@ function TagOverflow(props: {
triggerClass={badgeTriggerClasses({
variant: 'outline',
size: 'xs',
- class: 'max-w-[14ch] gap-1.5 touch:min-h-0',
+ class:
+ 'max-w-[14ch] gap-1.5 border-edge bg-surface-2 touch:min-h-0',
})}
triggerLabel="Edit tags"
onActiveChange={onActiveChange}
@@ -290,7 +291,10 @@ function TagOverflow(props: {
{(tag, index) => (
<TagDot
color={tag.color}
- class={cn('size-2 ring ring-surface', index() > 0 && '-ml-1')}
+ class={cn(
+ 'size-2 ring ring-surface-2',
+ index() > 0 && '-ml-1'
+ )}
/>
)}
</For>
@@ -511,13 +515,16 @@ function InlineTagsPillFace(props: {
}
function inlineTagsTriggerClass(props: InlineTagsPillProps, count: number) {
+ const variant = props.variant ?? 'outline';
return badgeTriggerClasses({
- variant: props.variant ?? 'outline',
+ variant,
size: props.size ?? 'xs',
class: cn(
// Capped so a long tag label truncates instead of squeezing
// whatever shares the row with the pill (e.g. a task title).
'min-w-0 max-w-35 gap-1.5 text-left touch:min-h-0',
+ // Outline tag pills share the email participant pill's softer frame.
+ variant === 'outline' && 'border-edge bg-surface-2',
count === 0 && !props.showAddButton && 'text-ink-extra-muted',
props.class
),
diff --git a/apps/web/src/features/property/tags/TagPill.tsx b/apps/web/src/features/property/tags/TagPill.tsx
index ef48f68b6a..da57529df4 100644
--- a/apps/web/src/features/property/tags/TagPill.tsx
+++ b/apps/web/src/features/property/tags/TagPill.tsx
@@ -20,7 +20,7 @@ export function tagPillClasses(className?: string): string {
variant: 'outline',
size: 'xs',
class: cn(
- 'min-w-0 text-ink-muted transition-colors touch:min-h-0',
+ 'min-w-0 border-edge bg-surface-2 text-ink-muted transition-colors touch:min-h-0',
className
),
});
diff --git a/apps/web/src/features/property/tags/TagsRow.tsx b/apps/web/src/features/property/tags/TagsRow.tsx
index 755d25accc..dd4cbd5928 100644
--- a/apps/web/src/features/property/tags/TagsRow.tsx
+++ b/apps/web/src/features/property/tags/TagsRow.tsx
@@ -60,7 +60,7 @@ function TagChip(props: {
<Badge
variant="outline"
size="sm"
- class="m-px min-w-0 max-w-[30ch] gap-1.5 cursor-default"
+ class="m-px min-w-0 max-w-[30ch] gap-1.5 border-edge bg-surface-2 cursor-default"
>
<TagDot color={props.tag.color} />
<span class="min-w-0 truncate">{props.tag.label}</span>