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
fix(ui): tabs chevron && resize handle (#3185)
Fake-User3525fa0ed42c
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 655194200d..a4ed216330 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@@ -9,6 +9,7 @@ import { useSplitPanelOrThrow } from '@app/component/split-layout/layoutUtils';import { isListViewID, type ListView } from '@app/constants/list-views';import { type TabItem, Tabs } from '@core/component/Tabs';import { useUserContext } from '@core/context/user';+import ChevronDownIcon from '@icon/regular/caret-down.svg';import { Dropdown, Layer } from '@ui';import { batch, createMemo, For, Match, Switch } from 'solid-js';@@ -160,8 +161,9 @@ export const CollapsedSoupViewTabs = () => {return (<Dropdown placement="bottom-start" gutter={4}>- <Dropdown.Trigger>+ <Dropdown.Trigger class="flex items-center gap-1"><span class="truncate">{activeLabel()}</span>+ <ChevronDownIcon class="size-3 shrink-0" /></Dropdown.Trigger><Dropdown.Portal><Layer depth={2}>diff --git a/js/app/packages/core/component/Resize/Resize.tsx b/js/app/packages/core/component/Resize/Resize.tsxindex 53c85da31b..3ba779bafa 100644--- a/js/app/packages/core/component/Resize/Resize.tsx+++ b/js/app/packages/core/component/Resize/Resize.tsx@@ -1,4 +1,5 @@import { createElementSize } from '@solid-primitives/resize-observer';+import { cn } from '@ui/utils/classname';import {createContext,createEffect,@@ -429,22 +430,20 @@ function Gutter(props: GutterProps) {onKeyDown={onKeyDown}><div- class="border-accent absolute opacity-0 group-focus:opacity-100"- classList={{- 'group-hover:opacity-50': !ptrDown(),- 'opacity-100': ptrDown(),- }}+ class={cn(+ 'bg-accent absolute opacity-0 group-focus:opacity-100 rounded-[1px]',+ !ptrDown() && 'group-hover:opacity-50',+ ptrDown() && 'opacity-100'+ )}style={{left: ctx.direction === 'horizontal' ? '50%' : '0',top: ctx.direction === 'vertical' ? '50%' : '0',- width: ctx.direction === 'horizontal' ? '0' : '100%',- height: ctx.direction === 'vertical' ? '0' : '100%',- 'border-left-width': ctx.direction === 'horizontal' ? '1px' : '0',- 'border-top-width': ctx.direction === 'vertical' ? '1px' : '0',+ width: ctx.direction === 'horizontal' ? '2px' : '100%',+ height: ctx.direction === 'vertical' ? '2px' : '100%',transform:ctx.direction === 'horizontal'- ? 'translate(-0.5px, 0)'- : 'translate(0, -0.5px)',+ ? 'translateX(-50%)'+ : 'translateY(-50%)',}}></div></div>