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

@@ -1,6 +1,6 @@
{ {
"productName": "yaak", "productName": "yaak",
"version": "2024.6.5", "version": "2024.6.6",
"identifier": "app.yaak.desktop", "identifier": "app.yaak.desktop",
"build": { "build": {
"beforeBuildCommand": "npm run build", "beforeBuildCommand": "npm run build",

View File

@@ -19,7 +19,8 @@
} }
.cm-line { .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 { .cm-placeholder {

View File

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