mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: make sure editor takes full vertical space
This commit is contained in:
@@ -363,7 +363,7 @@ function EditorChrome(
|
||||
) : null}
|
||||
|
||||
<Toolbar />
|
||||
<Flex sx={{ justifyContent: "center", overflow: "hidden" }}>
|
||||
<Flex sx={{ justifyContent: "center", overflow: "hidden", flex: 1 }}>
|
||||
<FlexScrollContainer
|
||||
className="editorScroll"
|
||||
style={{ display: "flex", flexDirection: "column", flex: 1 }}
|
||||
|
||||
@@ -88,7 +88,6 @@ const updateView = (state: EditorState, dispatch: DispatchFn) => {
|
||||
const regex = (s: string, settings: SearchSettings): RegExp => {
|
||||
const { enableRegex, matchCase, matchWholeWord } = settings;
|
||||
const boundary = matchWholeWord ? "\\b" : "";
|
||||
console.log(boundary);
|
||||
return RegExp(
|
||||
boundary +
|
||||
(enableRegex ? s : s.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")) +
|
||||
|
||||
Reference in New Issue
Block a user