Skip to content

Commit

Permalink
fix(markdown): update styling to remove overflow (#1671)
Browse files Browse the repository at this point in the history
* fix(template): u9pdate styling for editor

* refactor(editor): update styling to own file
  • Loading branch information
seaerchin authored Nov 14, 2023
1 parent 44ea8f8 commit e141830
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 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;
}
1 change: 1 addition & 0 deletions src/styles/isomer-cms/pages/Editor.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
box-sizing: border-box;
position: relative;
height: calc(100vh - #{$header-height} - #{$footer-height} - 1rem);
}

.pageEditorSidebarLoading {
Expand Down
7 changes: 1 addition & 6 deletions src/styles/isomer-template.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12654,7 +12654,7 @@ html.has-navbar-fixed-top-widescreen {
}

.remove-after:after {
content: "" !important
content: "" !important;
}

.bg-primary {
Expand Down Expand Up @@ -13073,11 +13073,6 @@ a.navbar-item {
max-width: 100%;
}

.CodeMirror {
height: 100% !important;
overflow-y: scroll;
}

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

0 comments on commit e141830

Please sign in to comment.