From 7eb25b08b0632348448bac0bd619d2e9b52828a0 Mon Sep 17 00:00:00 2001 From: TC Date: Sun, 14 Jun 2026 19:16:43 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20move=20Analyze=20button=20back?= =?UTF-8?q?=20to=20the=20beginning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Toolbar/AnalysisToolbar.tsx | 187 +++++++++--------- 1 file changed, 94 insertions(+), 93 deletions(-) diff --git a/src/renderer/components/Toolbar/AnalysisToolbar.tsx b/src/renderer/components/Toolbar/AnalysisToolbar.tsx index 7e58227..10b473c 100644 --- a/src/renderer/components/Toolbar/AnalysisToolbar.tsx +++ b/src/renderer/components/Toolbar/AnalysisToolbar.tsx @@ -420,6 +420,100 @@ export function AnalysisToolbar(): JSX.Element { ) : ( <> + + + {annotations.length > 0 && ( + + )} + + {analyzeOpen && analyzeButtonRef.current && createPortal( + (() => { + const rect = analyzeButtonRef.current!.getBoundingClientRect() + return ( +
+ + + + + + + + +
+ ) + })(), + document.body + )} + - - {annotations.length > 0 && ( - - )} - - {analyzeOpen && analyzeButtonRef.current && createPortal( - (() => { - const rect = analyzeButtonRef.current!.getBoundingClientRect() - return ( -
- - - - - - - - -
- ) - })(), - document.body - )} )}