From 7c5d39bef98eedc052b5c24a4143119ff6122453 Mon Sep 17 00:00:00 2001 From: TC Date: Sun, 14 Jun 2026 19:09:15 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20move=20toolbar=20buttons=20to=20?= =?UTF-8?q?the=20left?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Toolbar/AnalysisToolbar.tsx | 76 +++++++++---------- 1 file changed, 36 insertions(+), 40 deletions(-) diff --git a/src/renderer/components/Toolbar/AnalysisToolbar.tsx b/src/renderer/components/Toolbar/AnalysisToolbar.tsx index f6987e3..6e8d076 100644 --- a/src/renderer/components/Toolbar/AnalysisToolbar.tsx +++ b/src/renderer/components/Toolbar/AnalysisToolbar.tsx @@ -420,6 +420,40 @@ export function AnalysisToolbar(): JSX.Element { ) : ( <> + + + {activeFilePath && paragraphRhythm.length > 0 && ( + + )} + {activeFilePath && sentenceStats && ( + + )} - - {activeFilePath && paragraphRhythm.length > 0 && ( - <> - - {rhythmOpen && rhythmButtonRef.current && createPortal( + {activeFilePath && paragraphRhythm.length > 0 && rhythmOpen && rhythmButtonRef.current && createPortal( (() => { const rect = rhythmButtonRef.current!.getBoundingClientRect() return ( @@ -591,21 +601,9 @@ export function AnalysisToolbar(): JSX.Element { ) })(), document.body - )} - )} - {activeFilePath && sentenceStats && ( - <> - - {statsOpen && statsButtonRef.current && createPortal( + {activeFilePath && sentenceStats && statsOpen && statsButtonRef.current && createPortal( (() => { const rect = statsButtonRef.current!.getBoundingClientRect() const maxBin = Math.max(...sentenceStats.bins, 1) @@ -673,8 +671,6 @@ export function AnalysisToolbar(): JSX.Element { ) })(), document.body - )} - )} {activeFilePath && (