diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 7b8e3b03..1e593735 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "productName": "yaak", - "version": "2024.6.5", + "version": "2024.6.6", "identifier": "app.yaak.desktop", "build": { "beforeBuildCommand": "npm run build", diff --git a/src-web/components/core/Editor/Editor.css b/src-web/components/core/Editor/Editor.css index af6e0ee6..9b5e61fb 100644 --- a/src-web/components/core/Editor/Editor.css +++ b/src-web/components/core/Editor/Editor.css @@ -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 { diff --git a/src-web/components/core/Editor/extensions.ts b/src-web/components/core/Editor/extensions.ts index 22ae5e36..55e0b461 100644 --- a/src-web/components/core/Editor/extensions.ts +++ b/src-web/components/core/Editor/extensions.ts @@ -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 = [