From 7c41cfc3dcc55626db840ec472a6aadb5392150b Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Mon, 31 Jan 2022 22:19:27 +0530 Subject: [PATCH] feat: make whole menu switch be clickable (#837) --- .../components/NotesOptions/NotesOptions.tsx | 56 ++++++++++--------- app/assets/stylesheets/_sn.scss | 2 +- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx b/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx index d83b6c5a2..67b85ade9 100644 --- a/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx +++ b/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx @@ -159,22 +159,26 @@ const SpellcheckOptions: FunctionComponent<{ : undefined; return ( -
- { +
+ {!spellcheckControllable && ( -

+

Spellcheck cannot be controlled for this editor.

)} @@ -331,45 +335,45 @@ export const NotesOptions = observer( return ( <> - { + + +
{appState.tags.tagsCount > 0 && ( diff --git a/app/assets/stylesheets/_sn.scss b/app/assets/stylesheets/_sn.scss index 38b7d7c6c..44bac1c4f 100644 --- a/app/assets/stylesheets/_sn.scss +++ b/app/assets/stylesheets/_sn.scss @@ -643,7 +643,7 @@ width: 100%; } -.cursor-not-allowed { +.sn-component .cursor-not-allowed { cursor: not-allowed; }