From 5b3862d46c60d81fb6946268002bada70b9e4aa4 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:27:06 +0300 Subject: [PATCH] Fix codemirror selection and fonts --- rsconcept/frontend/src/components/RSInput/RSInput.tsx | 2 +- rsconcept/frontend/src/components/RefsInput/RefsInput.tsx | 2 +- rsconcept/frontend/src/styling/constants.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rsconcept/frontend/src/components/RSInput/RSInput.tsx b/rsconcept/frontend/src/components/RSInput/RSInput.tsx index 3a139f3b..d1a78753 100644 --- a/rsconcept/frontend/src/components/RSInput/RSInput.tsx +++ b/rsconcept/frontend/src/components/RSInput/RSInput.tsx @@ -20,7 +20,7 @@ import { rsHoverTooltip } from './tooltip'; const editorSetup: BasicSetupOptions = { highlightSpecialChars: false, history: true, - drawSelection: false, + drawSelection: true, syntaxHighlighting: false, defaultKeymap: true, historyKeymap: true, diff --git a/rsconcept/frontend/src/components/RefsInput/RefsInput.tsx b/rsconcept/frontend/src/components/RefsInput/RefsInput.tsx index 4bce66f1..b4b239dd 100644 --- a/rsconcept/frontend/src/components/RefsInput/RefsInput.tsx +++ b/rsconcept/frontend/src/components/RefsInput/RefsInput.tsx @@ -24,7 +24,7 @@ import { refsHoverTooltip } from './tooltip'; const editorSetup: BasicSetupOptions = { highlightSpecialChars: false, history: true, - drawSelection: false, + drawSelection: true, syntaxHighlighting: false, defaultKeymap: true, historyKeymap: true, diff --git a/rsconcept/frontend/src/styling/constants.css b/rsconcept/frontend/src/styling/constants.css index f48dbb55..625ad8f7 100644 --- a/rsconcept/frontend/src/styling/constants.css +++ b/rsconcept/frontend/src/styling/constants.css @@ -6,7 +6,7 @@ :root { --font-ui: 'Geologica', sans-serif; --font-main: 'Rubik', 'Noto Sans Math', 'Noto Sans Symbols 2', 'Segoe UI Symbol', sans-serif; - --font-math: 'Noto Sans Math', 'Noto Sans Symbols 2', 'Segoe UI Symbol', sans-serif; + --font-math: 'Noto Sans Math', 'Noto Sans Symbols 2', 'Rubik', 'Segoe UI Symbol', sans-serif; /* Light Theme */ --cl-bg-120: hsl(000, 000%, 100%);