From dae47716ea38ec5a274aea6102035e4dbdda530f Mon Sep 17 00:00:00 2001
From: Ivan <8611739+IRBorisov@users.noreply.github.com>
Date: Tue, 24 Jun 2025 14:26:36 +0300
Subject: [PATCH] M: Simplify color tooltips
---
.../help/items/ui/help-formula-tree.tsx | 44 ++++++++++---------
.../features/help/items/ui/help-rseditor.tsx | 13 +++---
.../help/items/ui/help-type-graph.tsx | 23 +++++-----
.../editor-term-graph/schemas-guide.tsx | 4 +-
rsconcept/frontend/src/styling/components.css | 12 +++++
5 files changed, 56 insertions(+), 40 deletions(-)
diff --git a/rsconcept/frontend/src/features/help/items/ui/help-formula-tree.tsx b/rsconcept/frontend/src/features/help/items/ui/help-formula-tree.tsx
index 0c35dd60..b6ec0fe7 100644
--- a/rsconcept/frontend/src/features/help/items/ui/help-formula-tree.tsx
+++ b/rsconcept/frontend/src/features/help/items/ui/help-formula-tree.tsx
@@ -12,26 +12,30 @@ export function HelpFormulaTree() {
Виды узлов
-
- -
- объявление идентификатора
-
- -
- глобальный идентификатор
-
- -
- логическое выражение
-
- -
- типизированное выражение
-
- -
- присвоение и итерация
-
- -
- составные выражения
-
-
+
+
+ объявление идентификатора
+
+
+
+ глобальный идентификатор
+
+
+
+ логическое выражение
+
+
+
+ типизированное выражение
+
+
+
+ присвоение и итерация
+
+
+
+ составные выражения
+
Команды
diff --git a/rsconcept/frontend/src/features/help/items/ui/help-rseditor.tsx b/rsconcept/frontend/src/features/help/items/ui/help-rseditor.tsx
index 3b330868..8ffe85bd 100644
--- a/rsconcept/frontend/src/features/help/items/ui/help-rseditor.tsx
+++ b/rsconcept/frontend/src/features/help/items/ui/help-rseditor.tsx
@@ -72,17 +72,16 @@ export function HelpRSEditor() {
отображение наследованных
-
- текущая конституента
+
+ выбранная конституента
-
-
- текущей
-
+
+ выбранной
-
-
- текущей
-
+
+ выбранной
diff --git a/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx b/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx
index 80feea30..d407e383 100644
--- a/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx
+++ b/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx
@@ -23,17 +23,18 @@ export function HelpTypeGraph() {
Цвета узлов
-
- -
- ступень-основание
-
- -
- ступень-булеан
-
- -
- ступень декартова произведения
-
-
+
+
+ ступень-основание
+
+
+
+ ступень-булеан
+
+
+
+ ступень декартова произведения
+
Команды
diff --git a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/schemas-guide.tsx b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/schemas-guide.tsx
index 2164d325..e75cd64a 100644
--- a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/schemas-guide.tsx
+++ b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/schemas-guide.tsx
@@ -44,12 +44,12 @@ export function SchemasGuide() {
className='grid max-w-100 break-words text-base'
>
-
+
Текущая схема
{schemas.map((alias, index) => (
-
+
{alias}
))}
diff --git a/rsconcept/frontend/src/styling/components.css b/rsconcept/frontend/src/styling/components.css
index f36ea258..c3090f1a 100644
--- a/rsconcept/frontend/src/styling/components.css
+++ b/rsconcept/frontend/src/styling/components.css
@@ -72,6 +72,18 @@
transition-duration: var(--duration-dropdown);
}
+@utility cc-sample-color {
+ display: inline-block;
+ width: 0.75rem;
+ height: 0.75rem;
+ margin-right: 0.25rem;
+ transform: translateY(0.125rem);
+
+ border-width: 1px;
+ border-style: solid;
+ border-radius: calc(infinity * 1px);
+}
+
@utility cc-badge-constituenta {
width: 3rem;
padding-inline: 0.25rem;