From 7872e2aab464dde8475f7d2a47591eaa71f540df Mon Sep 17 00:00:00 2001 From: dextmorgn Date: Mon, 17 Nov 2025 13:33:02 +0100 Subject: [PATCH] feat(app): toolbar flex --- .../graphs/details-panel/details-panel.tsx | 2 +- flowsint-app/src/components/graphs/toolbar.tsx | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/flowsint-app/src/components/graphs/details-panel/details-panel.tsx b/flowsint-app/src/components/graphs/details-panel/details-panel.tsx index 8297c50b..b4dc9100 100644 --- a/flowsint-app/src/components/graphs/details-panel/details-panel.tsx +++ b/flowsint-app/src/components/graphs/details-panel/details-panel.tsx @@ -113,7 +113,7 @@ function KeyValueDisplay({ data, className }: KeyValueDisplayProps) { {data && Object.entries(data) .filter( - ([key]) => !['sketch_id', 'caption', 'size', 'color', 'description'].includes(key) + ([key]) => !['sketch_id', 'caption', 'size', 'color', 'description', 'x', 'y'].includes(key) ) .map(([key, value], index) => { let val: string | null = null diff --git a/flowsint-app/src/components/graphs/toolbar.tsx b/flowsint-app/src/components/graphs/toolbar.tsx index 41ef5047..2f8864ba 100644 --- a/flowsint-app/src/components/graphs/toolbar.tsx +++ b/flowsint-app/src/components/graphs/toolbar.tsx @@ -164,8 +164,8 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean ) return ( - <> -
+
+
} @@ -224,7 +224,7 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean
{/* Center: View Toggle Group */} -
+
@@ -234,7 +234,7 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean size="sm" onClick={() => setView('graph')} className={cn( - 'h-7 px-2 rounded-sm', + 'h-6 px-2 rounded-sm', view === 'graph' ? 'bg-background text-foreground border' : 'text-muted-foreground hover:text-foreground hover:bg-background/50' @@ -252,7 +252,7 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean size="sm" onClick={() => setView('table')} className={cn( - 'h-7 px-2 rounded-sm', + 'h-6 px-2 rounded-sm', view === 'table' ? 'bg-background text-foreground border' : 'text-muted-foreground hover:text-foreground hover:bg-background/50' @@ -270,7 +270,7 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean size="sm" onClick={() => setView('relationships')} className={cn( - 'h-7 px-2 rounded-sm', + 'h-6 px-2 rounded-sm', view === 'relationships' ? 'bg-background text-foreground border' : 'text-muted-foreground hover:text-foreground hover:bg-background/50' @@ -288,7 +288,7 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean size="sm" onClick={() => setView('map')} className={cn( - 'h-7 px-2 rounded-sm', + 'h-6 px-2 rounded-sm', view === 'map' ? 'bg-background text-foreground border' : 'text-muted-foreground hover:text-foreground hover:bg-background/50' @@ -303,7 +303,7 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean
- < div className="flex items-center gap-2 absolute right-2 top-2" > + < div className="flex items-center gap-2" > {view === 'graph' && ( <> @@ -324,6 +324,6 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean
- + ) }) \ No newline at end of file