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.

unified-list: move view config changes buttons into dropdown when preview is active

Caleb Taylorbf9ceb8aeab9
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsx
index fe69603ea4..45aa682562 100644
--- a/js/app/packages/app/component/UnifiedListView.tsx
+++ b/js/app/packages/app/component/UnifiedListView.tsx
@@ -970,24 +970,54 @@ export function UnifiedListView(props: UnifiedListViewProps) {
<SplitToolbarRight order={5}>
<div class="flex flex-row items-center gap-1 p-1 h-full select-none">
<Show when={isViewConfigChanged()}>
- <Button
- size="SM"
- classList={{
- '!border-ink/25 !text-ink !bg-panel hover:!text-ink ml-1.5 font-normal': true,
- }}
- onClick={onClickResetViewConfigChanges}
- >
- CLEAR
- </Button>
- <Button
- size="SM"
- classList={{
- '!border-ink/25 !text-ink !bg-panel hover:!text-ink mx-1.5 font-normal': true,
- }}
- onClick={onClickSaveViewConfigChanges}
- >
- SAVE CHANGES
- </Button>
+ <Show when={view().display.preview}>
+ <DropdownMenu
+ size="SM"
+ theme="secondary"
+ triggerLabel={<span class="font-extrabold">⋮</span>}
+ >
+ <div class="flex flex-col gap-2 p-2">
+ <Button
+ size="SM"
+ classList={{
+ '!border-ink/25 !text-ink !bg-panel hover:!text-ink font-normal': true,
+ }}
+ onClick={onClickResetViewConfigChanges}
+ >
+ CLEAR
+ </Button>
+ <Button
+ size="SM"
+ classList={{
+ '!border-ink/25 !text-ink !bg-panel hover:!text-ink font-normal': true,
+ }}
+ onClick={onClickSaveViewConfigChanges}
+ >
+ SAVE CHANGES
+ </Button>
+ </div>
+ </DropdownMenu>
+ </Show>
+ <Show when={!view().display.preview}>
+ <Button
+ size="SM"
+ classList={{
+ '!border-ink/25 !text-ink !bg-panel hover:!text-ink ml-1.5 font-normal': true,
+ }}
+ onClick={onClickResetViewConfigChanges}
+ >
+ CLEAR
+ </Button>
+ <Button
+ size="SM"
+ classList={{
+ '!border-ink/25 !text-ink !bg-panel hover:!text-ink mx-1.5 font-normal': true,
+ }}
+ onClick={onClickSaveViewConfigChanges}
+ >
+ SAVE CHANGES
+ </Button>
+ </Show>
</Show>
<DropdownMenu
size="SM"