Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chg(dock): swap new split icon, fix swapped preview mode tooltip (#387)

Seamus72a03438483e
diff --git a/js/app/packages/app/component/dock/Dock.tsx b/js/app/packages/app/component/dock/Dock.tsx
index b31f489f00..791cd3ded0 100644
--- a/js/app/packages/app/component/dock/Dock.tsx
+++ b/js/app/packages/app/component/dock/Dock.tsx
@@ -4,7 +4,7 @@ import { createMemo, createSignal, onCleanup, onMount, Show } from 'solid-js';
import { isRightPanelOpen, useToggleRightPanel } from '@core/signal/layout';
import { ENABLE_DOCK_NOTITIFCATIONS, ENABLE_JACK_IN } from '@core/constant/featureFlags';
import { activeScope, hotkeyScopeTree } from '@core/hotkey/state';
-import SplitIcon from '@icon/regular/square-split-horizontal.svg';
+import SplitIcon from '@macro-icons/new-split.svg';
import { useGlobalNotificationSource } from '../GlobalAppState';
import IconPower from '@phosphor-icons/core/regular/power.svg';
import MacroCreateIcon from '@macro-icons/macro-create-b.svg';
diff --git a/js/app/packages/app/component/split-layout/components/SplitHeader.tsx b/js/app/packages/app/component/split-layout/components/SplitHeader.tsx
index 73bed4e692..e9d221d621 100644
--- a/js/app/packages/app/component/split-layout/components/SplitHeader.tsx
+++ b/js/app/packages/app/component/split-layout/components/SplitHeader.tsx
@@ -109,7 +109,7 @@ function SplitPreviewToggle() {
icon={SplitIcon}
theme={preview() ? 'accent' : 'current'}
tooltip={{
- label: preview() ? 'Split View' : 'Full View',
+ label: !preview() ? 'Split View (Preview)' : 'Full View (List)',
hotkeyToken: TOKENS.unifiedList.togglePreview,
}}
onClick={() => setPreview((prev) => !prev)}
diff --git a/js/app/packages/macro-icons/new-split.svg b/js/app/packages/macro-icons/new-split.svg
new file mode 100644
index 0000000000..c667f9da76
--- /dev/null
+++ b/js/app/packages/macro-icons/new-split.svg
@@ -0,0 +1,5 @@
+<svg width="100%" height="100%" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect x="142" y="32" width="90" height="192" rx="8" stroke="currentColor" stroke-width="16" mask="url(#path-1-inside-1_53_2)"/>
+ <path d="M65.995 177L65.995 79" stroke="currentColor" stroke-width="16" stroke-linecap="round" stroke-linejoin="round"/>
+ <path d="M17 127.995L115 127.995" stroke="currentColor" stroke-width="16" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>