web: make sure editor takes full vertical space

This commit is contained in:
Abdullah Atta
2023-03-20 09:46:18 +05:00
parent 19a5d6353d
commit eecfabef61
2 changed files with 1 additions and 2 deletions

View File

@@ -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 }}

View File

@@ -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, "\\$&")) +