Fix editor tags wrapping behavior

This commit is contained in:
Gregory Schier
2024-06-17 17:05:29 -07:00
parent c29b3c6509
commit 12eac34d95
3 changed files with 6 additions and 5 deletions

View File

@@ -19,7 +19,8 @@
}
.cm-line {
@apply text-fg pl-1 pr-1.5;
@apply w-full; /* Important! Ensure it spans the entire width */
@apply w-full text-fg pl-1 pr-1.5;
}
.cm-placeholder {

View File

@@ -102,6 +102,9 @@ export const baseExtensions = [
history(),
dropCursor(),
drawSelection(),
syntaxHighlighting(syntaxHighlightStyle),
syntaxTheme,
EditorState.allowMultipleSelections.of(true),
autocompletion({
tooltipClass: () => 'x-theme-menu',
closeOnBlur: true, // Set to `false` for debugging in devtools without closing it
@@ -110,9 +113,6 @@ export const baseExtensions = [
return (a.boost ?? 0) - (b.boost ?? 0);
},
}),
syntaxHighlighting(syntaxHighlightStyle),
syntaxTheme,
EditorState.allowMultipleSelections.of(true),
];
export const multiLineExtensions = [