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: update styles for soup-view and command menu segmented controls (#1835)
Seamus6411e7526c46
diff --git a/js/app/packages/app/component/command/CommandMenu.tsx b/js/app/packages/app/component/command/CommandMenu.tsxindex d10c41c299..5f983de263 100644--- a/js/app/packages/app/component/command/CommandMenu.tsx+++ b/js/app/packages/app/component/command/CommandMenu.tsx@@ -604,25 +604,28 @@ function CategoryFilterTabs() {CommandState.setSelectedIndex(0);}}}- class="border-b border-edge-muted/50">- <Tabs.List class="flex items-center px-2 py-1.5">- <For each={CATEGORIES}>- {(category) => (- <Tabs.Trigger- value={category.id}- class={cn(- 'px-2 py-1 text-xs border first:border-l-1 border-l-0 border-edge-muted/50 font-semibold',- CommandState.categoryFilter() === category.id- ? 'text-ink pattern bg-edge-muted'- : 'text-ink-muted/70 hover:text-ink hover:bg-hover'+ <Tabs.List class="p-1.5">+ <div class="text-sm bg-ink/5 rounded-sm overflow-clip border border-edge-muted inline-block">+ <div class="flex">+ <For each={CATEGORIES}>+ {(category) => (+ <Tabs.Trigger+ value={category.id}+ class={cn(+ 'border-r-1 border-edge-muted last:border-r-0',+ 'relative text-ink-muted/70 px-3 py-1 text-xs font-medium block hover:bg-ink/6 hover:text-ink',+ CommandState.categoryFilter() === category.id &&+ 'text-ink bg-ink/7'+ )}+ tabIndex={-1}+ >+ {category.label}+ </Tabs.Trigger>)}- tabIndex={-1}- >- {category.label}- </Tabs.Trigger>- )}- </For>+ </For>+ </div>+ </div></Tabs.List></Tabs>);diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsxindex 52a0b9e4e4..2e933a64fa 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx@@ -253,14 +253,13 @@ export const SegmentedControl: ParentComponent<return (<KSegmentedControl- class="size-full text-sm border border-edge rounded-md p-0.5"+ class="size-full text-sm bg-ink/5 rounded-sm overflow-clip border border-edge-muted"value={props.value}defaultValue={props.defaultValue ?? props.list[0]?.value}onChange={onChange}disabled={props.disabled}><div class="relative" role="presentation">- <KSegmentedControl.Indicator class="absolute rounded bg-accent/15 border border-accent/30 transition-all ease-out" /><div class="flex" role="presentation"><For each={props.list}>{(item) => {@@ -272,9 +271,10 @@ export const SegmentedControl: ParentComponent<<KSegmentedControl.Itemvalue={itemValue()}disabled={props.disabled}+ class="border-r-1 border-edge-muted last:border-r-0"><KSegmentedControl.ItemInput class="absolute inset-0 pointer-events-none" />- <KSegmentedControl.ItemLabel class="relative text-ink-muted size-full px-3 py-1 text-xs font-medium data-[checked]:text-accent transition-colors block">+ <KSegmentedControl.ItemLabel class="relative text-ink-muted/70 size-full px-3 py-1 text-xs font-medium data-[checked]:text-ink data-[checked]:bg-ink/8 transition-colors duration-50 block hover:bg-ink/8 hover:text-ink">{itemLabel()}</KSegmentedControl.ItemLabel></KSegmentedControl.Item>