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(share): align share modal with other modals (#2574)
Seamus874af512525b
diff --git a/js/app/packages/core/component/ForwardToChannel.tsx b/js/app/packages/core/component/ForwardToChannel.tsxindex 80e4c12e19..59b9bbf4c3 100644--- a/js/app/packages/core/component/ForwardToChannel.tsx+++ b/js/app/packages/core/component/ForwardToChannel.tsx@@ -292,8 +292,7 @@ export function ForwardToChannel(props: ForwardToChannelProps) {options={destinationOptions}triggerMode="input"noBrackets- hideBorder- noPadding+ class="border-1 border-edge-muted/50 p-1"focusOnMountmobileHorizontalScroll/>diff --git a/js/app/packages/core/component/RecipientSelector.tsx b/js/app/packages/core/component/RecipientSelector.tsxindex 2a3b3e2874..9640b066ee 100644--- a/js/app/packages/core/component/RecipientSelector.tsx+++ b/js/app/packages/core/component/RecipientSelector.tsx@@ -42,6 +42,7 @@ import {} from 'solid-js';import { type VirtualizerHandle, VList } from 'virtua/solid';import { useAugmentUserWithDmActivity } from '@core/user/dmActivity';+import { cn } from '@ui/utils/classname';function RecipientChip(props: {icon?: JSX.Element;@@ -240,6 +241,7 @@ type RecipientSelectorProps<K extends CombinedRecipientKind> = {onChipDragStart?: (option: WithCustomUserInput<K>, e: DragEvent) => void;onChipDragEnd?: (e: DragEvent) => void;mobileHorizontalScroll?: boolean;+ class?: string;};export function RecipientSelector<K extends CombinedRecipientKind>(@@ -474,12 +476,13 @@ export function RecipientSelector<K extends CombinedRecipientKind>(? (props.placeholder ?? placeholderText()): undefined}- class="ph-no-capture w-full text-sm offset-2 bg-input"- classList={{- 'border border-edge': !props.hideBorder,- 'py-2': !props.noPadding,- 'focus-within:bracket-offset-2': !props.noBrackets,- }}+ class={cn(+ 'ph-no-capture w-full text-sm offset-2 bg-input',+ !props.hideBorder && 'border border-edge',+ !props.noPadding && 'py-2',+ !props.noBrackets && 'focus-within:bracket-offset-2',+ props.class+ )}><Combobox.Control<CombinedRecipientItem>>{(state) => {diff --git a/js/app/packages/core/component/TopBar/ShareButton.tsx b/js/app/packages/core/component/TopBar/ShareButton.tsxindex a753697065..ea1a6df723 100644--- a/js/app/packages/core/component/TopBar/ShareButton.tsx+++ b/js/app/packages/core/component/TopBar/ShareButton.tsx@@ -634,11 +634,11 @@ export function ShareModal(props: ShareModalProps) {open={props.isSharePermOpen}><Dialog.Portal>- <Dialog.Overlay class="z-modal fixed inset-0 bg-modal-overlay pattern-edge-muted pattern-diagonal-4 pointer-events-none" />- <div class="z-modal fixed inset-0 flex flex-col items-center justify-center py-8">+ <Dialog.Overlay class="z-modal fixed inset-0 bg-modal-overlay pattern-edge-muted pattern-diagonal-4" />+ <div class="z-modal fixed inset-0"><Dialog.Content- class="max-w-[calc(100vw-16px)] max-h-[calc(100vh-64px)] overflow-y-auto scrollbar-hidden mx-auto portal-scope flex flex-col gap-2"- style={{ width: '533px' }}+ class="max-w-[calc(100vw-16px)] mt-20 sm:mt-40 mx-auto overflow-y-auto scrollbar-hidden portal-scope flex flex-col gap-2 [&>*]:max-h-[75vh]"+ style={{ width: '800px' }}>{/* Card 1: Share form — gradient border */}<ClippedPanel active cornerRadius="4px">@@ -850,7 +850,7 @@ export function ShareModal(props: ShareModalProps) {<Buttonvariant="secondary"size="sm"- class="flex items-center gap-1 rounded-xs px-2"+ class="flex items-center gap-1 rounded-xs px-2 py-1"onClick={copyPublicLink}><WideCopy class="size-4" />@@ -1099,7 +1099,7 @@ export function ShareOptions(props: {<DropdownMenu.Trigger disabled={props.disabled}><Buttondisabled={props.disabled}- class={`min-w-[67px] h-[22px] py-2 pl-2 pr-1 rounded-xs flex items-center gap-1 ${props.noBorder ? 'border-0 sm:border' : ''}`}+ class={`min-w-[67px] py-1 pl-2 pr-1 rounded-xs flex items-center gap-1 ${props.noBorder ? 'border-0 sm:border' : ''}`}variant="secondary">{currentValueText()}