Skip to content

Commit

Permalink
Fix scroll bars appearing in code blocks in pdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcv8000 committed Oct 2, 2023
1 parent 01c21f2 commit e8395ee
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/renderer/src/components/Views/Editor/styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#fake-editor {
display: none;

.ProseMirror {
pre {
code {
white-space: pre-wrap !important;
word-break: break-all !important;
}
}
}
}

@media print {
Expand All @@ -12,13 +21,6 @@
display: block;
width: 720px !important;
}
.ProseMirror {
pre {
code {
white-space: pre-wrap !important;
}
}
}
}

.ProseMirror:focus-visible {
Expand Down

0 comments on commit e8395ee

Please sign in to comment.