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): obliterate clipped corner
Fake-User4ecf1efa40ed
diff --git a/js/app/packages/app/component/auth/Login.tsx b/js/app/packages/app/component/auth/Login.tsxindex 8155da19c3..92252c4951 100644--- a/js/app/packages/app/component/auth/Login.tsx+++ b/js/app/packages/app/component/auth/Login.tsx@@ -24,7 +24,7 @@ import { virtualKeyboardVisible } from '@core/mobile/virtualKeyboard';import { useAnalytics } from '@app/component/analytics-context';import { detect } from 'detect-browser';import { useUserInfo } from '@queries/auth';-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { PcNoiseGrid } from '@core/component/PcNoiseGrid';import LogoIcon from '@macro-icons/macro-logo.svg';import { useEmailLinks } from '@core/email-link';@@ -178,10 +178,7 @@ export function Login() {</div><div class="w-full max-w-[420px] login-card">- <ClippedPanel- cornerRadius={'4px'}- class="bg-panel shadow-lg shadow-[#1111]"- >+ <RoundPanel><div class="login-stagger"><divclass={cn(@@ -205,7 +202,7 @@ export function Login() {</Switch></div></div>- </ClippedPanel>+ </RoundPanel></div></div></Show>diff --git a/js/app/packages/app/component/auth/Signup.tsx b/js/app/packages/app/component/auth/Signup.tsxindex b746b3a7bc..699a8b76f3 100644--- a/js/app/packages/app/component/auth/Signup.tsx+++ b/js/app/packages/app/component/auth/Signup.tsx@@ -1,4 +1,4 @@-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { LoadingBlock } from '@core/component/LoadingBlock';import { PcNoiseGrid } from '@core/component/PcNoiseGrid';import { toast } from '@core/component/Toast/Toast';@@ -81,10 +81,7 @@ export function Signup() {</div><div class="w-full max-w-[420px] login-card">- <ClippedPanel- cornerRadius={'4px'}- class="bg-panel shadow-lg shadow-[#1111]"- >+ <RoundPanel><div class="login-stagger"><div class="flex items-center justify-center py-10"><LogoIcon class="size-20 text-accent" />@@ -100,7 +97,7 @@ export function Signup() {<LoginOptions signupMode setStage={(_stage: Stage) => {}} /></div></div>- </ClippedPanel>+ </RoundPanel></div></div></Show>diff --git a/js/app/packages/app/component/banner/Banner.tsx b/js/app/packages/app/component/banner/Banner.tsxindex 2bb89991ac..8e1433e1a3 100644--- a/js/app/packages/app/component/banner/Banner.tsx+++ b/js/app/packages/app/component/banner/Banner.tsx@@ -1,20 +1,17 @@import { LoginButton } from '@core/component/TopBar/LoginButton';-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';export default function Banner() {return (<div class="fixed bottom-0 md:bottom-12 md:left-1/2 md:-translate-x-1/2 z-sign-up-banner w-full md:w-auto">- <ClippedPanel- cornerRadius="4px"- class="bg-panel shadow-lg shadow-[#1111]"- >+ <RoundPanel><div class="flex md:flex-row flex-col justify-baseline items-center gap-2 md:gap-6 p-2 text-ink text-center whitespace-nowrap"><span class="text-sm text-ink-muted px-2">Create an account to get started.</span><LoginButton /></div>- </ClippedPanel>+ </RoundPanel></div>);}diff --git a/js/app/packages/app/component/dock/Dock.tsx b/js/app/packages/app/component/dock/Dock.tsxindex 37a93efd53..c6352d45b5 100644--- a/js/app/packages/app/component/dock/Dock.tsx+++ b/js/app/packages/app/component/dock/Dock.tsx@@ -1,6 +1,6 @@import { globalSplitManager } from "@app/signal/splitLayout";import { useHasPaidAccess } from "@core/auth";-import { ClippedPanel } from "@core/component/ClippedPanel";+import { RoundPanel } from "@core/component/RoundPanel";import { GlobalNotificationBell } from "@core/component/GlobalNotificationBell";import { Hotkey } from "@core/component/Hotkey";import { LabelAndHotKey } from "@core/component/Tooltip";@@ -47,7 +47,7 @@ export function Dock() {width: "100vw",}}>- <ClippedPanel bl br>+ <RoundPanel><divstyle={{"grid-template-columns": "min-content 1fr min-content",@@ -239,7 +239,7 @@ export function Dock() {</Button></div></div>- </ClippedPanel>+ </RoundPanel></div>{/*<Show when={DEV_MODE_ENV}>diff --git a/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx b/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsxindex 2ff949630f..d65aec9927 100644--- a/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx+++ b/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx@@ -21,7 +21,7 @@ import { createOnboardingState } from './create-onboarding-state';import { LESSONS } from './lessons';import { ContinueButton } from './components-lib';import { OnboardingProgress } from './OnboardingProgress';-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { PcNoiseGrid } from '@core/component/PcNoiseGrid';import { useAnalytics } from '@app/component/analytics-context';import { useHasPaidAccess } from '@core/auth/license';@@ -459,10 +459,7 @@ function InteractiveOnboardingInner() {{/* Centered card */}<div class="size-full max-w-[1600px] max-h-[900px]">- <ClippedPanel- cornerRadius={'4px'}- class="bg-panel size-full shadow-lg shadow-[#1111]"- >+ <RoundPanel><div class="size-full flex"><Showwhen={state.currentLesson()}@@ -645,7 +642,7 @@ function InteractiveOnboardingInner() {)}</Show></div>- </ClippedPanel>+ </RoundPanel></div></div>);diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/command-k.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/command-k.tsxindex 676d7f599c..8c58f97377 100644--- a/js/app/packages/app/component/interactive-onboarding/lessons/command-k.tsx+++ b/js/app/packages/app/component/interactive-onboarding/lessons/command-k.tsx@@ -1,7 +1,7 @@import { CommandMenuInner, CommandState } from '@app/component/command';import type { CategoryFilter } from '@app/component/command';import { createSoupState } from '@app/component/next-soup/create-soup-state';-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { createFreshSearch } from '@core/util/freshSort';import { Dialog } from '@kobalte/core/dialog';import {@@ -164,7 +164,7 @@ function CommandKDemo(props: LessonContentProps) {class="max-w-[calc(100vw-16px)] overflow-hidden portal-scope"style={{ width: '800px' }}>- <ClippedPanel active cornerRadius="4px">+ <RoundPanel active><div class="[&>*]:max-h-[75vh]" ref={setCommandMenuRef}><CommandMenuInnercommandMenuRef={commandMenuRef}@@ -175,7 +175,7 @@ function CommandKDemo(props: LessonContentProps) {}}/></div>- </ClippedPanel>+ </RoundPanel></Dialog.Content></div></Dialog.Portal>diff --git a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx b/js/app/packages/app/component/split-layout/components/SplitContainer.tsxindex fc5af923a8..2578a7e408 100644--- a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx+++ b/js/app/packages/app/component/split-layout/components/SplitContainer.tsx@@ -12,10 +12,7 @@ import { useSplitPanelOrThrow } from '../layoutUtils';import { SplitDrawerGroup } from './SplitDrawerContext';import { SplitHeader } from './SplitHeader';import { SplitToolbar } from './SplitToolbar';-import {- ClippedPanel,- type ClippedPanelProps,-} from '@core/component/ClippedPanel';+import { RoundPanel, type RoundPanelProps } from '@core/component/RoundPanel';import { globalSplitManager } from '@app/signal/splitLayout';import { isMobile } from '@core/mobile/isMobile';@@ -59,10 +56,10 @@ export function SplitContainer(return Boolean(splits && splits.length > 1);}- function MaybeClippedPanel(props: ClippedPanelProps) {+ function MaybeRoundPanel(props: RoundPanelProps) {return (<Show when={!isMobile()} fallback={props.children}>- <ClippedPanel {...props} />+ <RoundPanel {...props} /></Show>);}@@ -95,7 +92,7 @@ export function SplitContainer(data-modal={panel.handle.isSpotLight()}tabindex={-1}>- <MaybeClippedPanel+ <MaybeRoundPanelactive={panel.isPanelActive() &&multipleSplits() &&@@ -105,9 +102,6 @@ export function SplitContainer(// tl={props.tl}// bl={props.bl}// tr={props.tr}- // br={props.br}- // edgeColor="color-accent"- cornerRadius={'4px'}><div class="flex flex-col min-h-0 size-full bg-panel overflow-hidden"><SplitHeader ref={setHeaderRef} />@@ -119,7 +113,7 @@ export function SplitContainer(<MacroJump tabbableParent={ref} /></Show></div>- </MaybeClippedPanel>+ </MaybeRoundPanel></div></SplitDrawerGroup>);diff --git a/js/app/packages/block-email/component/compose/Compose.tsx b/js/app/packages/block-email/component/compose/Compose.tsxindex 29581665a4..4be0b847fb 100644--- a/js/app/packages/block-email/component/compose/Compose.tsx+++ b/js/app/packages/block-email/component/compose/Compose.tsx@@ -20,7 +20,7 @@ import {} from '@block-email/util/prepareEmailBody';import { convertEmailRecipientToContactInfo } from '@block-email/util/recipientConversion';import { useHasPaidAccess } from '@core/auth';-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { EmailPermissionsBanner } from '@core/component/EmailPermissionsBanner';import { toast } from '@core/component/Toast/Toast';import { isMobile } from '@core/mobile/isMobile';@@ -654,7 +654,7 @@ export function EmailCompose(props: EmailComposeProps) {</Show><div class="macro-message-width sm:macro-message-padding mx-auto w-full min-h-120 max-h-full my-2 sm:my-12 mobile:my-0 px-2 sm:px-4 mobile:px-0 overflow-hidden mobile:overflow-y-auto mobile:hide-scrollbar mobile:min-h-full"><WrapUnlessMobile- wrapper={(children) => <ClippedPanel>{children}</ClippedPanel>}+ wrapper={(children) => <RoundPanel>{children}</RoundPanel>}><ComposeLayouttoolbar={<EmailComposeToolbar editor={editor} />}diff --git a/js/app/packages/core/component/ClippedPanel.tsx b/js/app/packages/core/component/ClippedPanel.tsxdeleted file mode 100644index e903028087..0000000000--- a/js/app/packages/core/component/ClippedPanel.tsx+++ /dev/null@@ -1,113 +0,0 @@-import { cornerClip } from '@core/util/clipPath';-import { createMemo, splitProps, type JSX } from 'solid-js';-import { cn } from '@ui/utils/classname';--export type ClippedPanelProps = JSX.HTMLAttributes<HTMLDivElement> & {- active?: boolean;- edgeColor?: JSX.CSSProperties['color'];- highlightColor?: JSX.CSSProperties['color'];- /**- * When provided, this overrides all corner behavior:- * - bypasses clip-path (no corner clipping)- * - bypasses beveled corner logic (no signal check)- * - sets a uniform border-radius on both wrapper and inner panel- */- cornerRadius?: JSX.CSSProperties['border-radius'];- tr?: boolean;- tl?: boolean;- bl?: boolean;- br?: boolean;-};--export function ClippedPanel(props: ClippedPanelProps) {- const [local, rest] = splitProps(props, [- 'active',- 'edgeColor',- 'highlightColor',- 'cornerRadius',- 'tr',- 'tl',- 'br',- 'bl',- 'children',- 'class',- ]);-- const outerBgImage = createMemo(() => {- const edge = local.edgeColor || 'var(--color-edge-muted)';- const hl = local.highlightColor || 'var(--color-accent)';- return `linear-gradient(${local.active ? `${hl}, ${edge} 80%` : edge} )`;- });-- const useCornerRadiusOverride = createMemo(() => local.cornerRadius != null);-- const clipEnabled = createMemo(() => {- if (useCornerRadiusOverride()) return false;- return false;- });-- const outerClipPath = createMemo(() => {- if (!clipEnabled()) return '';- return cornerClip(- local.tl ? '0.5rem' : 0,- local.tr ? '0.5rem' : 0,- local.br ? '0.5rem' : 0,- local.bl ? '0.5rem' : 0- );- });-- const innerClipPath = createMemo(() => {- if (!clipEnabled()) return '';- return cornerClip(- local.tl ? 'calc(0.5rem - 0.5px)' : 0,- local.tr ? 'calc(0.5rem - 0.5px)' : 0,- local.br ? 'calc(0.5rem - 0.5px)' : 0,- local.bl ? 'calc(0.5rem - 0.5px)' : 0- );- });-- const outerBorderRadius = createMemo(() => {- if (useCornerRadiusOverride()) return local.cornerRadius;- return `- ${local.tl ? '16px' : '4px'}- ${local.tr ? '16px' : '4px'}- ${local.br ? '16px' : '4px'}- ${local.bl ? '16px' : '4px'}- `;- });-- const innerBorderRadius = createMemo(() => {- if (useCornerRadiusOverride()) return `calc(${local.cornerRadius} - 0.5px)`;- return `- ${local.tl ? '15.5px' : '3.3px'}- ${local.tr ? '15.5px' : '3.3px'}- ${local.br ? '15.5px' : '3.3px'}- ${local.bl ? '15.5px' : '3.3px'}- `;- });-- return (- <div- style={{- 'background-image': outerBgImage(),- 'clip-path': outerClipPath(),- 'border-radius': outerBorderRadius(),- }}- class="p-px h-full w-full box-border"- >- <div- style={{- 'clip-path': innerClipPath(),- 'border-radius': innerBorderRadius(),- }}- class={cn(- 'h-full w-full box-border overflow-hidden bg-panel',- local.class- )}- {...rest}- >- {local.children}- </div>- </div>- );-}diff --git a/js/app/packages/core/component/DialogWrapper.tsx b/js/app/packages/core/component/DialogWrapper.tsxindex a9bad2b04f..d711cebd30 100644--- a/js/app/packages/core/component/DialogWrapper.tsx+++ b/js/app/packages/core/component/DialogWrapper.tsx@@ -1,7 +1,7 @@import { Dialog } from '@kobalte/core';import { cn } from '@ui/utils/classname';import type { JSXElement, Ref } from 'solid-js';-import { ClippedPanel } from './ClippedPanel';+import { RoundPanel } from './RoundPanel';export interface DialogWrapperProps {children: JSXElement;@@ -34,14 +34,14 @@ export function DialogWrapper(props: DialogWrapperProps) {)}style={{ width: width }}>- <ClippedPanel active cornerRadius={'4px'}>+ <RoundPanel active><divclass={cn('[&>*]:max-h-[75vh]', props.class)}ref={props.contentRef}>{props.children}</div>- </ClippedPanel>+ </RoundPanel></Dialog.Content></div></>diff --git a/js/app/packages/core/component/DocumentPreview.tsx b/js/app/packages/core/component/DocumentPreview.tsxindex 340c2f2645..7c1fe52cc6 100644--- a/js/app/packages/core/component/DocumentPreview.tsx+++ b/js/app/packages/core/component/DocumentPreview.tsx@@ -12,7 +12,7 @@ import {} from '@core/block';import { itemToBlockName } from '@core/constant/allBlocks';// Components-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { toast } from '@core/component/Toast/Toast';import {isAccessiblePreviewItem,@@ -706,7 +706,7 @@ export function PopupPreview(props: {onMouseEnter={props.mouseEnter}onMouseLeave={props.mouseLeave}>- <ClippedPanel active>+ <RoundPanel active><Switch>{/* Loading state */}<Match when={item().loading}>@@ -867,7 +867,7 @@ export function PopupPreview(props: {)}</Match></Switch>- </ClippedPanel>+ </RoundPanel></div>);}diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsxindex 974487d5b7..4c92e3c9a0 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx@@ -1,4 +1,4 @@-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { type PortalScope, ScopedPortal } from '@core/component/ScopedPortal';import clickOutside from '@core/directive/clickOutside';import { fuzzyFilter } from '@core/util/fuzzy';@@ -32,7 +32,7 @@ false && clickOutside;false && floatWithSelection;false && floatWithElement;-// ClippedPanel's p-px border (2px) + py-2 padding (16px)+// RoundPanel's p-px border (2px) + py-2 padding (16px)const PANEL_DECORATION_HEIGHT = 18;export function ActionsMenuItem(props: {@@ -127,7 +127,7 @@ export function ActionMenu(props: {>(undefined);// Cap at 256px (16rem) so the menu stays compact when plenty of space is available,- // and floor at 0 after subtracting ClippedPanel decorations.+ // and floor at 0 after subtracting RoundPanel decorations.const contentMaxHeight = () => {const h = menuAvailableHeight();if (h === undefined) return undefined;@@ -318,7 +318,7 @@ export function ActionMenu(props: {use:clickOutside={clickOutsideHandler}ref={menuRef}>- <ClippedPanel active class="py-2 bg-panel" cornerRadius={'4px'}>+ <RoundPanel active><divclass="overflow-y-auto scrollbar-hidden"style={{@@ -330,7 +330,7 @@ export function ActionMenu(props: {>{inner()}</div>- </ClippedPanel>+ </RoundPanel></div></ScopedPortal></Show>diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsxindex 3a51846f1a..d239cc0ca2 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx@@ -1,4 +1,4 @@-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { resolveEmoji, useEmojiData } from '@core/component/Emoji/emojis';import { type PortalScope, ScopedPortal } from '@core/component/ScopedPortal';import clickOutside from '@core/directive/clickOutside';@@ -245,7 +245,7 @@ export function EmojiMenu(props: EmojiMenuProps) {}}ref={menuRef}>- <ClippedPanel active class="py-2 bg-panel" cornerRadius={'4px'}>+ <RoundPanel active><div class="flex flex-col gap-1 px-2 w-full"><Showwhen={emojiOptions().length > 0}@@ -283,7 +283,7 @@ export function EmojiMenu(props: EmojiMenuProps) {</VList></Show></div>- </ClippedPanel>+ </RoundPanel></div></ScopedPortal></Show>diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsxindex b24c4a192b..b07e54079e 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx@@ -32,7 +32,7 @@ import type {UserMentionRecord,} from '../../../utils/mentionsUtils';import type { HistoryItem as Item } from '@queries/history/history';-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { debouncedDependent } from '@core/util/debounce';import type { BucketConfig, MentionBucketId } from './MentionsMenuController';import { useMentionsMenuController } from './MentionsMenuController';@@ -71,7 +71,7 @@ const mobileAllSearch = createFreshSearch<MentionItem>({const MAX_ITEMS = 8;const VIRTUAL_ITEM_HEIGHT = 36;-// Height consumed by ClippedPanel's p-px border (2px) + py-2 padding (16px)+// Height consumed by RoundPanel's p-px border (2px) + py-2 padding (16px)const PANEL_DECORATION_HEIGHT = 18;export type MentionsMenuProps = {@@ -491,7 +491,7 @@ function MentionsMenuInner(props: MentionsMenuProps) {number | undefined>(undefined);- // Height available for scrollable content after subtracting ClippedPanel decorations.+ // Height available for scrollable content after subtracting RoundPanel decorations.// Capped at 256px (16rem) to preserve desktop behavior, and floored at 0.const contentMaxHeight = () => {const h = menuAvailableHeight();@@ -528,7 +528,7 @@ function MentionsMenuInner(props: MentionsMenuProps) {clickOutside(el, () => clickOutsideHandler);}}>- <ClippedPanel active class="py-2 bg-panel" cornerRadius={'4px'}>+ <RoundPanel active><Showwhen={controller.combinedItems().length > 0}fallback={<div class="px-2 text-ink-extra-muted">No results</div>}@@ -612,7 +612,7 @@ function MentionsMenuInner(props: MentionsMenuProps) {/></Show></Show>- </ClippedPanel>+ </RoundPanel></div></ScopedPortal></Show>diff --git a/js/app/packages/core/component/RoundPanel.tsx b/js/app/packages/core/component/RoundPanel.tsxnew file mode 100644index 0000000000..6a78abb373--- /dev/null+++ b/js/app/packages/core/component/RoundPanel.tsx@@ -0,0 +1,29 @@+import { cn } from '@ui/utils/classname';+import type { JSX } from 'solid-js';++export type RoundPanelProps = {+ highlightColor?: string;+ children?: JSX.Element;+ active?: boolean;+ class?: string;+};++export function RoundPanel(props: RoundPanelProps) {+ return (+ <div+ style={{+ 'background-image': `linear-gradient(${props.active ? `${props.highlightColor || 'var(--color-accent)'}, var(--color-edge-muted) 80%` : 'var(--color-edge-muted)'})`,+ }}+ class="p-px h-full w-full box-border rounded-[6px] overflow-clip"+ >+ <div+ class={cn(+ 'h-full w-full box-border bg-panel rounded-[5px] overflow-clip',+ props.class+ )}+ >+ {props.children}+ </div>+ </div>+ );+}diff --git a/js/app/packages/core/component/Toast/Toast.tsx b/js/app/packages/core/component/Toast/Toast.tsxindex 9a195da0de..7365e16592 100644--- a/js/app/packages/core/component/Toast/Toast.tsx+++ b/js/app/packages/core/component/Toast/Toast.tsx@@ -16,7 +16,7 @@ import {on,} from 'solid-js';import { Dynamic } from 'solid-js/web';-import { ClippedPanel } from '../ClippedPanel';+import { RoundPanel } from '../RoundPanel';import { Button } from '@ui/components/Button';import { cn } from '@ui/utils/classname';@@ -118,7 +118,7 @@ export interface ToastAction {/*** Config for a fully custom toast.* Replaces the icon, title, and accent color of the standard layout while- * still using the shared ClippedPanel chrome and progress/dismiss machinery.+ * still using the shared RoundPanel chrome and progress/dismiss machinery.*/export interface CustomToastConfig {title: string;@@ -296,19 +296,17 @@ function ToastContent(props: {return (<ToasttoastId={props.toastId}- class={`relative overflow-visible pointer-events-auto shadow-md rounded-lg+ class={`relative overflow-visible pointer-events-auto shadow-md roundeddata-opened:animate-slide-in data-closed:animate-hide transition-transform data-[swipe=move]:translate-x-[var(--kb-toast-swipe-move-x)]data-[swipe=cancel]:translate-x-0 data-[swipe=cancel]:ease-out data-[swipe=cancel]:duration-200 data-[swipe=end]:animate-swipe-out`}persistent={true}onMouseEnter={() => setIsHovered(true)}onMouseLeave={() => setIsHovered(false)}>- <ClippedPanel- edgeColor="var(--color-edge-muted)"+ <RoundPanelhighlightColor={accentColor()}active- cornerRadius={'8px'}- class="relative w-[90vw] sm:w-md px-2 sm:p-3 overflow-clip"+ class="relative w-[90vw] sm:w-md px-2 sm:p-3"><Switch>{/* ── Embed layout ── */}@@ -407,7 +405,7 @@ function ToastContent(props: {}}/></Show>- </ClippedPanel>+ </RoundPanel></Toast>);}@@ -551,7 +549,7 @@ function embed(/*** Show a toast with a fully custom title, icon, accent color, body content,- * and actions row — while still using the shared ClippedPanel chrome and+ * and actions row — while still using the shared RoundPanel chrome and* progress/dismiss machinery.*/function custom(diff --git a/js/app/packages/core/component/TopBar/ShareButton.tsx b/js/app/packages/core/component/TopBar/ShareButton.tsxindex e914b5ae31..0e5661e425 100644--- a/js/app/packages/core/component/TopBar/ShareButton.tsx+++ b/js/app/packages/core/component/TopBar/ShareButton.tsx@@ -74,7 +74,7 @@ import {import { match } from 'ts-pattern';import { EntityIcon } from '@core/component/EntityIcon';import { MiniToggleSwitch } from '@core/component/FormControls/MiniToggleSwitch';-import { ClippedPanel } from '../ClippedPanel';+import { RoundPanel } from '../RoundPanel';import { CustomScrollbar } from '../CustomScrollbar';import { ForwardToChannel } from '../ForwardToChannel';import { Permissions } from '../SharePermissions';@@ -641,7 +641,7 @@ export function ShareModal(props: ShareModalProps) {style={{ width: '800px' }}>{/* Card 1: Share form — gradient border */}- <ClippedPanel active cornerRadius="4px">+ <RoundPanel active><div class="text-ink flex flex-col"><div class="shrink-0 flex flex-row items-center justify-between px-3 h-[40px] gap-2 border-b border-edge-muted"><div class="flex-1 flex flex-row items-center gap-2 min-w-0">@@ -675,11 +675,11 @@ export function ShareModal(props: ShareModalProps) {blockName={props.blockAlias}/></div>- </ClippedPanel>+ </RoundPanel>{/* Card 2: Recipients — plain border */}<Show when={(recipients()?.length ?? 0) > 0 || !!props.owner}>- <ClippedPanel cornerRadius="4px">+ <RoundPanel><div class="text-ink flex flex-col"><div class="shrink-0 h-[40px] flex items-center px-3 border-b border-edge-muted text-sm font-medium">People with access to this{' '}@@ -796,7 +796,7 @@ export function ShareModal(props: ShareModalProps) {</div></div></div>- </ClippedPanel>+ </RoundPanel></Show>{/* Card 3: Public link — plain border */}@@ -806,7 +806,7 @@ export function ShareModal(props: ShareModalProps) {props.itemType !== 'email'}>- <ClippedPanel cornerRadius="4px">+ <RoundPanel><div class="text-ink flex flex-col"><divclass="h-[40px] flex items-center justify-between px-3 text-sm font-medium"@@ -870,7 +870,7 @@ export function ShareModal(props: ShareModalProps) {</div></Show></div>- </ClippedPanel>+ </RoundPanel></Show></Dialog.Content></div>diff --git a/js/app/packages/core/component/UserTooltip.tsx b/js/app/packages/core/component/UserTooltip.tsxindex 51a973deb7..f07e883e54 100644--- a/js/app/packages/core/component/UserTooltip.tsx+++ b/js/app/packages/core/component/UserTooltip.tsx@@ -1,5 +1,5 @@import { useSplitLayout } from '@app/component/split-layout/layout';-import { ClippedPanel } from '@core/component/ClippedPanel';+import { RoundPanel } from '@core/component/RoundPanel';import { toast } from '@core/component/Toast/Toast';import { isOk } from '@core/util/maybeResult';import IconCheck from '@icon/regular/check.svg';@@ -80,7 +80,7 @@ export function UserTooltip(props: UserTooltipProps) {'px-3 text-xs w-full justify-start hover:bg-hover/20 rounded-xs';return (- <ClippedPanel active>+ <RoundPanel active><div class="bg-panel text-ink box-border border-accent overflow-hidden max-w-lg"><div class="flex items-center gap-2 p-2"><div class="size-10 shrink-0 rounded-full bg-ink-extra-muted pointer-events-none">@@ -154,6 +154,6 @@ export function UserTooltip(props: UserTooltipProps) {</div></Show></div>- </ClippedPanel>+ </RoundPanel>);}diff --git a/js/app/packages/core/util/clipPath.ts b/js/app/packages/core/util/clipPath.tsdeleted file mode 100644index 32041d2920..0000000000--- a/js/app/packages/core/util/clipPath.ts+++ /dev/null@@ -1,53 +0,0 @@-/**- * Builds a chamfered-rectangle polygon path from corner sizes- * in TL, TR, BR, BL order and returns a complete `clip-path: polygon(...);` string.- *- * Example:- * <div- * class="w-10 h-4 bg-accent"- * style={{- * 'clip-path': cornerClip(0, "1rem", 0, 0)- * }}- * />- *- * Or use a single value for all corners:- * <div- * style={{- * 'clip-path': cornerClip("0.5rem")- * }}- * />- */-export function cornerClip(all: 0 | string): string;-export function cornerClip(- tl: 0 | string,- tr: 0 | string,- br: 0 | string,- bl: 0 | string-): string;-export function cornerClip(- tl: 0 | string,- tr?: 0 | string,- br?: 0 | string,- bl?: 0 | string-): string {- // If only one argument is provided, use it for all corners- if (tr === undefined && br === undefined && bl === undefined) {- tr = br = bl = tl;- }-- const sub100 = (s: 0 | string) =>- s === '0' || s === 0 ? '100%' : `calc(100% - ${s.replace('calc', '')})`;- // starting near top-left- // (tl,0) → (100%-tr,0) → (100%,tr) → (100%,100%-br) → (100%-bl,100%) → (bl,100%) → (0,100%-bl) → (0,tl)- const points = [- `${tl} 0`,- `${sub100(tr!)} 0`,- `100% ${tr}`,- `100% ${sub100(br!)}`,- `${sub100(br!)} 100%`,- `${bl} 100%`,- `0 ${sub100(bl!)}`,- `0 ${tl}`,- ].join(', ');- return `polygon(${points})`;-}