From 03643e49a9209c75b6bba36db42b0c13624cae08 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:53:55 +0300 Subject: [PATCH] M: Minor fix to AST viewer --- rsconcept/frontend/src/dialogs/DlgShowAST.tsx | 18 +++++++++++++----- rsconcept/frontend/src/styling/color.ts | 3 +++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/rsconcept/frontend/src/dialogs/DlgShowAST.tsx b/rsconcept/frontend/src/dialogs/DlgShowAST.tsx index 3206fcda..8e257c1e 100644 --- a/rsconcept/frontend/src/dialogs/DlgShowAST.tsx +++ b/rsconcept/frontend/src/dialogs/DlgShowAST.tsx @@ -53,11 +53,19 @@ function DlgShowAST({ hideWindow, syntaxTree, expression }: DlgShowASTProps) { const handleHoverOut = useCallback(() => setHoverID(undefined), []); return ( - - + + -
+ {!hoverNode ? expression : null} {hoverNode ? (
@@ -66,8 +74,8 @@ function DlgShowAST({ hideWindow, syntaxTree, expression }: DlgShowASTProps) { {expression.slice(hoverNode.finish)}
) : null} -
-
+ +