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
style(core): update user-tooltip styles (#980)
Aidan Holloway-Bidwell906b71f43c25
diff --git a/js/app/packages/core/component/UserIcon.tsx b/js/app/packages/core/component/UserIcon.tsxindex 6113425d16..1dd8480b52 100644--- a/js/app/packages/core/component/UserIcon.tsx+++ b/js/app/packages/core/component/UserIcon.tsx@@ -149,7 +149,7 @@ export function UserIcon(props: UserIconProps) {fallback={icon()}><Tooltip- placement="bottom"+ placement="left"class={sizeClasses().container}unstyledtooltip={diff --git a/js/app/packages/core/component/UserTooltip.tsx b/js/app/packages/core/component/UserTooltip.tsxindex 91b29f7272..93c9f6b2bd 100644--- a/js/app/packages/core/component/UserTooltip.tsx+++ b/js/app/packages/core/component/UserTooltip.tsx@@ -1,9 +1,11 @@import { useSplitLayout } from '@app/component/split-layout/layout';+import { ClippedPanel } from '@core/component/ClippedPanel';+import { beveledCorners } from '../../block-theme/signals/themeSignals';import { toast } from '@core/component/Toast/Toast';import { isOk } from '@core/util/maybeResult';-import CommentIcon from '@icon/regular/chat-circle-text.svg';import IconCheck from '@icon/regular/check.svg';-import IconCopy from '@icon/regular/copy.svg';+import WideCopy from '@macro-icons/wide/copy.svg';+import WideChat from '@macro-icons/wide/chat.svg';import Trash from '@phosphor-icons/core/regular/trash.svg?component-solid';import { commsServiceClient } from '@service-comms/client';import { useUserId } from '@service-gql/client';@@ -47,81 +49,80 @@ export function UserTooltip(props: UserTooltipProps) {}};+ // TODO (seamus): add assign task button once launch popovet split with state is possible++ const buttonStyle =+ 'px-3 text-xs w-full justify-start hover-transition-bg hover:bg-hover';+return (- <div class="bg-panel text-ink border border-edge-muted overflow-hidden">- <div class="flex items-center gap-3 p-3">- <div class="size-8 shrink-0 rounded-full bg-ink-extra-muted text-panel pointer-events-none">- <Switch>- <Match when={props.isDeleted}>- <div class="size-8 shrink-0 rounded-full bg-ink-extra-muted/50 flex items-center justify-center">- <Trash class="w-4 h-4 shrink-0" />- </div>- </Match>- <Match when={props.id}>- <ProfilePicture- id={props.id}- sizeClass={{- container: 'size-8',- icon: 'w-4 h-4',- text: 'text-lg leading-none',- }}- />- </Match>- <Match when={!props.id && props.email}>- <ProfilePicture- id={undefined}- email={props.email}- sizeClass={{- container: 'size-8',- icon: 'w-4 h-4',- text: 'text-lg leading-none',- }}- />- </Match>- </Switch>- </div>+ <ClippedPanel tl={!beveledCorners()} active>+ <div class="bg-panel text-ink box-border border-accent overflow-hidden">+ <div class="flex items-center gap-2 p-2">+ <div class="size-10 shrink-0 rounded-full bg-ink-extra-muted pointer-events-none">+ <Switch>+ <Match when={props.isDeleted}>+ <div class="size-10 shrink-0 rounded-full bg-ink-extra-muted/50 flex items-center justify-center">+ <Trash class="w-4 h-4 shrink-0" />+ </div>+ </Match>+ <Match when={props.id}>+ <ProfilePicture+ id={props.id}+ sizeClass={{+ container: 'size-10',+ icon: 'w-4 h-4',+ text: 'text-lg text-panel leading-none',+ }}+ />+ </Match>+ <Match when={!props.id && props.email}>+ <ProfilePicture+ id={undefined}+ email={props.email}+ sizeClass={{+ container: 'size-10',+ icon: 'w-4 h-4',+ text: 'text-lg text-panel leading-none',+ }}+ />+ </Match>+ </Switch>+ </div>- <div class="flex-1 min-w-0">- <div class="text-sm font-medium text-ink truncate">- {props.displayName}+ <div class="flex-1 min-w-0">+ <div class="text-sm font-medium truncate">{props.displayName}</div>+ <Show when={props.email && props.email !== props.displayName}>+ <div class="text-xs opacity-60 truncate">{props.email}</div>+ </Show></div>- <Show when={props.email && props.email !== props.displayName}>- <div class="text-xs text-ink opacity-60 mt-0.5 truncate">- {props.email}- </div>- </Show></div>- </div>- <Show when={props.email || props.id}>- <div class="border-t border-edge-muted"></div>- <div class="p-2 flex flex-col gap-2">- <Show when={props.email}>- <Button- onClick={props.onCopyEmail}- class="text-xs text-ink-extramuted w-full justify-start"+ <Show when={props.email || props.id}>+ <div class="border-t border-edge/20"></div>+ <div class="py-2 flex flex-col gap-0">+ <Show when={props.email}>+ <Button onClick={props.onCopyEmail} class={buttonStyle}>+ {props.copied ? (+ <IconCheck class="w-3.5 h-3.5" />+ ) : (+ <WideCopy class="w-3.5 h-3.5" />+ )}+ Copy email+ </Button>+ </Show>+ <Show+ when={+ props.id && !props.isDeleted && props.id !== currentUserId()+ }>- {props.copied ? (- <IconCheck class="w-3.5 h-3.5" />- ) : (- <IconCopy class="w-3.5 h-3.5" />- )}- Copy email- </Button>- </Show>- <Show- when={props.id && !props.isDeleted && props.id !== currentUserId()}- >- <Button- onClick={openDM}- class="text-xs text-ink-extramuted w-full justify-start"- >- <CommentIcon class="w-3.5 h-3.5" />- DM- </Button>- </Show>- </div>- </Show>- </div>+ <Button onClick={openDM} class={buttonStyle}>+ <WideChat class="w-3.5 h-3.5" />+ DM+ </Button>+ </Show>+ </div>+ </Show>+ </div>+ </ClippedPanel>);}