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
feat(app): clip rightbar (#262)
Fake-Userbd53418be7ea
diff --git a/js/app/packages/app/component/custom-cursor/custom-cursor.ts b/js/app/packages/app/component/custom-cursor/custom-cursor.tsindex 467ed7c119..ad2bcdf199 100644--- a/js/app/packages/app/component/custom-cursor/custom-cursor.ts+++ b/js/app/packages/app/component/custom-cursor/custom-cursor.ts@@ -321,7 +321,7 @@ function generateCustomCursorStyleTextContent() {styleTextContent += Object.keys(cursorSvgMap).map((key) => {return `- .${getCursorClassFromKey(key)} {+ .${getCursorClassFromKey(key)} {cursor: ${getCursor(key)} !important;--custom-cursor: ${key};}`;diff --git a/js/app/packages/app/component/rightbar/Rightbar.tsx b/js/app/packages/app/component/rightbar/Rightbar.tsxindex 3ba1692833..e4281aae49 100644--- a/js/app/packages/app/component/rightbar/Rightbar.tsx+++ b/js/app/packages/app/component/rightbar/Rightbar.tsx@@ -661,6 +661,7 @@ export const RightbarWrapper = (_props: { isBigChat?: boolean }) => {<SplitlikeContainerspotlight={bigChatOpen}setSpotlight={setBigChatOpen}+ tr={!bigChatOpen()}><RightbarchatId={chatId()}diff --git a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx b/js/app/packages/app/component/split-layout/components/SplitContainer.tsxindex dbcd9bda53..5bf5c87b2f 100644--- a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx+++ b/js/app/packages/app/component/split-layout/components/SplitContainer.tsx@@ -18,6 +18,7 @@ import { SplitModalProvider } from './SplitModalContext';import { SplitToolbar } from './SplitToolbar';import './splitContainer.css';import { globalSplitManager } from '@app/signal/splitLayout';+import { ClippedPanel } from '@core/component/ClippedPanel';function EdgeDecor(props: { isActive: boolean }) {return (@@ -123,8 +124,13 @@ export function SplitContainer(export function SplitlikeContainer(props: ParentProps<{- spotlight: Accessor<boolean>;setSpotlight: Setter<boolean>;+ spotlight: Accessor<boolean>;+ active?: boolean;+ tl?: boolean;+ tr?: boolean;+ br?: boolean;+ bl?: boolean;}>) {const [panel, setPanel] = createSignal<HTMLDivElement | null>(null);@@ -141,17 +147,26 @@ export function SplitlikeContainer(/><div class="fixed inset-[4rem] bg-panel shadow-xl" /></Show>+<divdata-split-containertabindex={-1}ref={setPanel}- class="@container/split flex flex-col border-edge-muted border min-h-0 bg-panel bracket-never"+ class="@container/split flex flex-col min-h-0 bracket-never"classList={{'size-full': !props.spotlight(),'fixed inset-[4rem] z-modal isolate': props.spotlight(),}}>- <div class="size-full overflow-hidden">{props.children}</div>+ <ClippedPanel+ active={props.active}+ tl={props.tl}+ tr={props.tr}+ bl={props.bl}+ br={props.br}+ >+ <div class="size-full overflow-hidden">{props.children}</div>+ </ClippedPanel></div></SplitDrawerGroup></SplitModalProvider>diff --git a/js/app/packages/core/component/ClippedPanel.tsx b/js/app/packages/core/component/ClippedPanel.tsxindex 583578b1eb..fe99c0d5c7 100644--- a/js/app/packages/core/component/ClippedPanel.tsx+++ b/js/app/packages/core/component/ClippedPanel.tsx@@ -17,10 +17,10 @@ export function ClippedPanel(props: PanelProps) {'background-image': `linear-gradient(${props.active ? 'var(--color-accent)' : 'var(--color-edge-muted)'}, var(--color-edge-muted))`,'box-sizing': 'border-box','clip-path': cornerClip(- props.tr ? '0.5rem' : 0,props.tl ? '0.5rem' : 0,- props.bl ? '0.5rem' : 0,- props.br ? '0.5rem' : 0+ props.tr ? '0.5rem' : 0,+ props.br ? '0.5rem' : 0,+ props.bl ? '0.5rem' : 0),padding: '1px',height: '100%',@@ -31,10 +31,10 @@ export function ClippedPanel(props: PanelProps) {style={{'background-color': 'var(--color-panel)','clip-path': cornerClip(- props.tr ? 'calc(0.5rem - 0.5px)' : 0,props.tl ? 'calc(0.5rem - 0.5px)' : 0,- props.bl ? 'calc(0.5rem - 0.5px)' : 0,- props.br ? 'calc(0.5rem - 0.5px)' : 0+ props.tr ? 'calc(0.5rem - 0.5px)' : 0,+ props.br ? 'calc(0.5rem - 0.5px)' : 0,+ props.bl ? 'calc(0.5rem - 0.5px)' : 0),height: '100%',width: '100%',