From 1651d1f1f57b8c43148ab8433bef0d4caf0d13e9 Mon Sep 17 00:00:00 2001 From: DanielWalnut <45447813+hetaoBackend@users.noreply.github.com> Date: Mon, 8 Jun 2026 19:17:14 +0800 Subject: [PATCH] fix(frontend): restructure Memory settings toolbar into two rows (#3433) The search input, filter tabs, and four action buttons were crammed into a single horizontal row, which squeezed the search box into an unusable sliver and truncated the "Summaries" filter tab to "Summarie". Split the toolbar into two rows: search + filter tabs on the first, actions on the second. The search input now keeps a usable min width, filter tabs use whitespace-nowrap so they never truncate, and the destructive "Clear all memory" button is pushed to the far right (ml-auto) to separate it from the constructive actions. Co-authored-by: Claude Opus 4.8 (1M context) --- .../settings/memory-settings-page.tsx | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/workspace/settings/memory-settings-page.tsx b/frontend/src/components/workspace/settings/memory-settings-page.tsx index ce01d3c27..f7b677445 100644 --- a/frontend/src/components/workspace/settings/memory-settings-page.tsx +++ b/frontend/src/components/workspace/settings/memory-settings-page.tsx @@ -555,13 +555,14 @@ export function MemorySettingsPage() { ) : null} -
-
+
+ {/* Row 1: search + filter tabs */} +
setQuery(event.target.value)} placeholder={searchPlaceholder} - className="sm:max-w-xs" + className="min-w-0 flex-1 sm:max-w-md" /> - {filterAll} - {filterFacts} - + + {filterAll} + + + {filterFacts} + + {filterSummaries}
-
+ {/* Row 2: actions — constructive group on the left, destructive separated to the right */} +