From ec75cb866cada9f01273e02a4c72c6fb5d5a9eb4 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Fri, 24 Nov 2023 18:03:10 +0300 Subject: [PATCH] Minor UI fixes for editor --- rsconcept/frontend/src/components/Common/ConceptTooltip.tsx | 2 ++ rsconcept/frontend/src/components/Help/InfoCstClass.tsx | 2 +- rsconcept/frontend/src/components/Help/InfoCstStatus.tsx | 2 +- rsconcept/frontend/src/components/Navigation/Navigation.tsx | 2 +- .../frontend/src/pages/RSFormPage/EditorConstituenta.tsx | 4 ++-- .../src/pages/RSFormPage/elements/RSEditorControls.tsx | 6 +++--- .../frontend/src/pages/RSFormPage/elements/RSItemsMenu.tsx | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/rsconcept/frontend/src/components/Common/ConceptTooltip.tsx b/rsconcept/frontend/src/components/Common/ConceptTooltip.tsx index bc9ad207..375dcad6 100644 --- a/rsconcept/frontend/src/components/Common/ConceptTooltip.tsx +++ b/rsconcept/frontend/src/components/Common/ConceptTooltip.tsx @@ -11,6 +11,7 @@ function ConceptTooltip({ className, layer='z-tooltip', place='bottom', + style, ...props }: ConceptTooltipProps) { const { darkMode } = useConceptTheme(); @@ -18,6 +19,7 @@ function ConceptTooltip({ return ( +
{ title &&

{title}

} { Object.values(CstClass).map( (cclass, index) => { diff --git a/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx b/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx index 9cc47787..8383c7a2 100644 --- a/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx +++ b/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx @@ -12,7 +12,7 @@ function InfoCstStatus({ title }: InfoCstStatusProps) { const { colors } = useConceptTheme(); return ( -
+
{ title &&

{title}

} { Object.values(ExpressionStatus) .filter(status => status !== ExpressionStatus.UNDEFINED) diff --git a/rsconcept/frontend/src/components/Navigation/Navigation.tsx b/rsconcept/frontend/src/components/Navigation/Navigation.tsx index 80f09e46..4fda5027 100644 --- a/rsconcept/frontend/src/components/Navigation/Navigation.tsx +++ b/rsconcept/frontend/src/components/Navigation/Navigation.tsx @@ -14,7 +14,7 @@ function Navigation () { const navigateCreateNew = () => navigateTo('/rsform-create'); return ( -