Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: make code block vertically scrollable

thecodrrf3d8aff4b3bc
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index 46bfae19b..fdbb7d360 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -73,6 +73,7 @@ tox-tbtn tox-tbtn--select {
.mce-content-body {
outline: none;
height: 100%;
+ padding-bottom: 150px;
}
.mce-content-body:not([dir="rtl"])[data-mce-placeholder]:not(.mce-visualblocks)::before {
@@ -129,7 +130,8 @@ h6::before {
}
.mce-content-body pre {
- overflow-x: auto;
+ overflow: auto;
+ max-height: 600px;
line-height: 1.5 !important;
padding: 15px;
border: 1px solid var(--border);