From 9f6428238502e445936c1f3e16284085fbf801fa Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:07:46 +0300 Subject: [PATCH] B: Fix font loading and small issues --- rsconcept/frontend/index.html | 2 +- rsconcept/frontend/src/components/data-table/table-body.tsx | 2 +- rsconcept/frontend/src/features/rsform/labels.ts | 1 - rsconcept/frontend/src/styling/overrides.css | 1 + rsconcept/frontend/src/styling/utilities.css | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rsconcept/frontend/index.html b/rsconcept/frontend/index.html index f32d47ad..8ee23df4 100644 --- a/rsconcept/frontend/index.html +++ b/rsconcept/frontend/index.html @@ -17,7 +17,7 @@ diff --git a/rsconcept/frontend/src/components/data-table/table-body.tsx b/rsconcept/frontend/src/components/data-table/table-body.tsx index 384e01ac..7e0b4c55 100644 --- a/rsconcept/frontend/src/components/data-table/table-body.tsx +++ b/rsconcept/frontend/src/components/data-table/table-body.tsx @@ -33,7 +33,7 @@ export function TableBody({ const handleRowClicked = useCallback( (target: Row, event: React.MouseEvent) => { onRowClicked?.(target.original, event); - if (target.getCanSelect()) { + if (table.options.enableRowSelection && target.getCanSelect()) { if (event.shiftKey && !!lastSelected && lastSelected !== target.id) { const { rows, rowsById } = table.getRowModel(); const lastIndex = rowsById[lastSelected].index; diff --git a/rsconcept/frontend/src/features/rsform/labels.ts b/rsconcept/frontend/src/features/rsform/labels.ts index a749a72d..0cf05db2 100644 --- a/rsconcept/frontend/src/features/rsform/labels.ts +++ b/rsconcept/frontend/src/features/rsform/labels.ts @@ -285,7 +285,6 @@ export function describeExpressionStatus(status: ExpressionStatus): string { * Retrieves label for {@link CstType}. */ export function labelCstType(target: CstType): string { - console.log(1); // prettier-ignore switch (target) { case CstType.BASE: return 'Базисное множество'; diff --git a/rsconcept/frontend/src/styling/overrides.css b/rsconcept/frontend/src/styling/overrides.css index cb64dcc1..3a16adb4 100644 --- a/rsconcept/frontend/src/styling/overrides.css +++ b/rsconcept/frontend/src/styling/overrides.css @@ -76,6 +76,7 @@ .react-flow__attribution { font-size: var(--font-size-sm); font-family: var(--font-ui); + font-weight: 400; margin: 1rem; background-color: transparent; diff --git a/rsconcept/frontend/src/styling/utilities.css b/rsconcept/frontend/src/styling/utilities.css index 1ef2eaae..cfbc1a04 100644 --- a/rsconcept/frontend/src/styling/utilities.css +++ b/rsconcept/frontend/src/styling/utilities.css @@ -8,7 +8,7 @@ @utility font-controls { font-family: var(--font-ui); - font-weight: 600; + font-weight: 700; } @utility font-math {