From 05c7b49bbc60fff4291a5430fcbf701586917214 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 4 Jul 2025 10:11:23 +0200 Subject: [PATCH] Refactor DocSearchView layout and update button text - Added a new component to wrap and for improved styling. - Changed button text from "New post" to "New filter". - Removed the old structure and integrated its contents into the new layout. --- .../document/view/doc-search-view.tsx | 51 ++++++++----------- 1 file changed, 20 insertions(+), 31 deletions(-) diff --git a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx index 9071021..cfab0fe 100644 --- a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx +++ b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx @@ -40,16 +40,25 @@ export function DocSearchView({ posts }: Props) { }, []); //#region example components - // - // + // + // + // + // //#endregion return ( @@ -70,30 +79,10 @@ export function DocSearchView({ posts }: Props) { color="inherit" startIcon={} > - New post + New filter - - - - - <> {filters.map((filter, index) => (