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(md): fix corner nit on document preview (#1141)
Seamus38db75825de4
diff --git a/js/app/packages/core/component/DocumentPreview.tsx b/js/app/packages/core/component/DocumentPreview.tsxindex e6d635874a..5f0e3889bc 100644--- a/js/app/packages/core/component/DocumentPreview.tsx+++ b/js/app/packages/core/component/DocumentPreview.tsx@@ -37,6 +37,7 @@ import SparkleIcon from '@icon/regular/sparkle.svg';import LoadingSpinner from '@icon/regular/spinner.svg';import TrashSimple from '@icon/regular/trash-simple.svg';import UserIcon from '@icon/regular/user.svg';+import MacroEmbed from '@macro-icons/macro-embed.svg';// Componentsimport { ClippedPanel } from '@core/component/ClippedPanel';@@ -44,7 +45,7 @@ import { beveledCorners } from '../../block-theme/signals/themeSignals';import { createCallback } from '@solid-primitives/rootless';import { useNavigate } from '@solidjs/router';import { globalSplitManager } from 'app/signal/splitLayout';-import type { Component, ComponentProps, JSX } from 'solid-js';+import type { Component, JSX } from 'solid-js';import { type Accessor, Match, Show, Switch } from 'solid-js';import { Dynamic, Portal } from 'solid-js/web';import { formatDate } from '../util/date';@@ -56,48 +57,6 @@ import { Tooltip } from './Tooltip';false && floatWithElement;-const CustomEmbedIcon: Component<ComponentProps<'svg'>> = (props) => (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" {...props}>- {/* Background (invisible) */}- <rect width="256" height="256" fill="none" />- {/* Top line */}- <line- x1="40"- y1="60"- x2="216"- y2="60"- fill="none"- stroke="currentColor"- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="16"- />- {/* Box */}- <rect- x="72"- y="96"- width="112"- height="48"- rx="8"- fill="none"- stroke="currentColor"- stroke-width="16"- />- {/* Bottom line */}- <line- x1="40"- y1="176"- x2="216"- y2="176"- fill="none"- stroke="currentColor"- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="16"- />- </svg>-);-/*** Container for displaying mentions with optional collapsing*/@@ -414,7 +373,7 @@ export function PopupPreview(props: {: 'Convert to Card View'}onClick={props.previewInfo.handlePreviewToggle}- icon={CustomEmbedIcon}+ icon={MacroEmbed}/></Show>);@@ -557,7 +516,7 @@ export function PopupPreview(props: {return (<Portal><div- class="absolute select-none overflow-hidden z-toast-region w-80 bg-dialog text-ink"+ class="absolute select-none overflow-hidden z-toast-region w-80 text-ink"use:floatWithElement={{ element: () => props.floatRef }}onMouseEnter={props.mouseEnter}onMouseLeave={props.mouseLeave}diff --git a/js/app/packages/macro-icons/macro-embed.svg b/js/app/packages/macro-icons/macro-embed.svgnew file mode 100644index 0000000000..2dac89a3f2--- /dev/null+++ b/js/app/packages/macro-icons/macro-embed.svg@@ -0,0 +1,5 @@+<svg width="100%" height="100%" viewBox="0 -4 24 24" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">+<rect x="0" y="0" width="24" height="2" rx="1"/>+<path d="M5.5 5H18.5C19.33 5 20 5.67 20 6.5V9.5C20 10.33 19.33 11 18.5 11H5.5C4.67 11 4 10.33 4 9.5V6.5C4 5.67 4.67 5 5.5 5ZM6 9H18V7H6V9Z"/>+<rect x="0" y="14" width="24" height="2" rx="1"/>+</svg>