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.

fix(unified-list): filter menu causing layout thrash (#1000)

dev-rb7d380ddedd04
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsx
index 18124c7049..9b72711a9c 100644
--- a/js/app/packages/app/component/UnifiedListView.tsx
+++ b/js/app/packages/app/component/UnifiedListView.tsx
@@ -107,6 +107,7 @@ import {
type Setter,
Show,
type Signal,
+ Suspense,
} from 'solid-js';
import {
createStore,
@@ -1661,19 +1662,21 @@ export function UnifiedListView(props: UnifiedListViewProps) {
</section>
</Show>
<Show when={ENABLE_PROPERTY_FILTER}>
- <section class="gap-1 grid p-2">
- <span class="font-medium text-xs">Property</span>
- <PropertyFilterControl
- propertyFilters={propertyFilters}
- setPropertyFilters={setPropertyFilters}
- onIncompleteFiltersChange={
- setHasIncompletePropertyFilters
- }
- registerClearHandler={(fn) => {
- clearPropertyFilters = fn;
- }}
- />
- </section>
+ <Suspense>
+ <section class="gap-1 grid p-2">
+ <span class="font-medium text-xs">Property</span>
+ <PropertyFilterControl
+ propertyFilters={propertyFilters}
+ setPropertyFilters={setPropertyFilters}
+ onIncompleteFiltersChange={
+ setHasIncompletePropertyFilters
+ }
+ registerClearHandler={(fn) => {
+ clearPropertyFilters = fn;
+ }}
+ />
+ </section>
+ </Suspense>
</Show>
</div>
</div>