From 3024cde1b1c8556f266a66df3394000774ed2bf6 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Thu, 2 May 2024 21:34:47 +0300 Subject: [PATCH] Fix overscroll behavior --- .vscode/settings.json | 1 + rsconcept/frontend/README.md | 2 +- rsconcept/frontend/src/app/ApplicationLayout.tsx | 2 +- .../frontend/src/components/select/SubstitutionsPicker.tsx | 2 +- rsconcept/frontend/src/components/ui/Modal.tsx | 2 +- rsconcept/frontend/src/components/ui/Tooltip.tsx | 2 +- .../frontend/src/dialogs/DlgDeleteCst/ConstituentsList.tsx | 2 +- .../pages/RSFormPage/EditorRSExpression/ParsingResult.tsx | 2 +- .../pages/RSFormPage/EditorTermGraph/EditorTermGraph.tsx | 2 +- .../src/pages/RSFormPage/EditorTermGraph/ViewHidden.tsx | 2 +- .../pages/RSFormPage/ViewConstituents/ConstituentsTable.tsx | 2 +- rsconcept/frontend/src/styling/overrides.css | 1 + rsconcept/frontend/src/styling/styles.css | 1 + rsconcept/frontend/src/utils/codemirror.ts | 6 +++--- 14 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 6c125ef7..0e407911 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -79,6 +79,7 @@ "NPRO", "NUMR", "Opencorpora", + "overscroll", "passwordreset", "perfectivity", "PNCT", diff --git a/rsconcept/frontend/README.md b/rsconcept/frontend/README.md index 5ef803e0..681d51b4 100644 --- a/rsconcept/frontend/README.md +++ b/rsconcept/frontend/README.md @@ -12,7 +12,7 @@ Styling conventions - outer layout: fixed bottom-1/2 left-0 -translate-x-1/2 - rectangle: mt-3 min-w-fit min-w-10 flex-grow shrink-0 - inner layout: px-3 py-2 flex flex-col gap-3 justify-between items-center - - overflow behavior: overflow-scroll + - overflow behavior: overflow-scroll overscroll-contain - border: borer-2 outline-none shadow-md - colors: clr-controls - text: text-start text-sm font-semibold whitespace-nowrap diff --git a/rsconcept/frontend/src/app/ApplicationLayout.tsx b/rsconcept/frontend/src/app/ApplicationLayout.tsx index a6325a39..4d6eee2a 100644 --- a/rsconcept/frontend/src/app/ApplicationLayout.tsx +++ b/rsconcept/frontend/src/app/ApplicationLayout.tsx @@ -23,7 +23,7 @@ function ApplicationLayout() {
{labelConstituenta(cst)}
: null; diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression/ParsingResult.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression/ParsingResult.tsx index af6cc1d7..0fcd5070 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression/ParsingResult.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression/ParsingResult.tsx @@ -18,7 +18,7 @@ function ParsingResult({ isOpen, data, disabled, onShowError }: ParsingResultPro return (