mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
editor: disable wrapping for all lines in codeblocks
This commit is contained in:
committed by
Abdullah Atta
parent
fc5ea0ad51
commit
cb644dbea6
@@ -553,7 +553,7 @@ export const CodeBlock = Node.create<CodeBlockOptions>({
|
||||
contentDOMFactory: () => {
|
||||
const content = document.createElement("div");
|
||||
content.classList.add("node-content-wrapper");
|
||||
content.style.whiteSpace = "inherit";
|
||||
content.style.whiteSpace = "pre";
|
||||
// caret is not visible if content element width is 0px
|
||||
content.style.minWidth = "20px";
|
||||
return { dom: content };
|
||||
|
||||
Reference in New Issue
Block a user