Skip to content

Commit

Permalink
refactor(editor): update styling to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Nov 10, 2023
1 parent 0f021fc commit b1dcb9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/components/pages/MarkdownEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import EditorModals from "components/pages/EditorModals"
import { useMarkdown } from "hooks/useMarkdown"

import editorStyles from "styles/isomer-cms/pages/Editor.module.scss"
import "./editor.scss"

import {
boldButton,
Expand Down Expand Up @@ -137,6 +138,7 @@ const MarkdownEditor = ({ siteName, onChange, value, isLoading }) => {
>
<StatusIcon />
<SimpleMDE
className={editorStyles.cm}
id="simplemde-editor"
onChange={onChange}
value={value}
Expand Down
5 changes: 5 additions & 0 deletions src/components/pages/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.CodeMirror {
height: calc(100% - 6rem) !important;

overflow-y: scroll;
}
5 changes: 0 additions & 5 deletions src/styles/isomer-template.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13073,11 +13073,6 @@ a.navbar-item {
max-width: 100%;
}

.CodeMirror {
height: calc(100% - 6rem) !important;
overflow-y: scroll;
}

.page-header-container {
padding-left: 3.125rem;
margin: 0 0 !important;
Expand Down

0 comments on commit b1dcb9b

Please sign in to comment.