diff --git a/src/lib/components/DesktopEditor.svelte b/src/lib/components/DesktopEditor.svelte
index 9956d0fe..ea7b4868 100644
--- a/src/lib/components/DesktopEditor.svelte
+++ b/src/lib/components/DesktopEditor.svelte
@@ -22,7 +22,8 @@
enabled: false
},
overviewRulerLanes: 0,
- glyphMargin: true
+ glyphMargin: true,
+ lineNumbersMinChars: 4
} satisfies monaco.editor.IStandaloneEditorConstructionOptions;
let currentText = '';
let showPopup = $state(false);
@@ -184,6 +185,7 @@
const unsubscribeMode = mode.subscribe((mode) => {
if (editor) {
monaco.editor.setTheme(`mermaid${mode === 'dark' ? '-dark' : ''}`);
+ divElement?.classList.toggle('mermaid-dark', mode === 'dark');
}
});
const resizeObserver = new ResizeObserver((entries) => {
@@ -239,4 +241,9 @@
border-radius: 4px;
cursor: pointer;
}
+
+ :global(#editor.mermaid-dark .suggestion-icon) {
+ background-color: #2e4d6b;
+ background-image: url('/icons/use-chat-dark.svg');
+ }
diff --git a/static/icons/use-chat-dark.svg b/static/icons/use-chat-dark.svg
new file mode 100644
index 00000000..b24e7143
--- /dev/null
+++ b/static/icons/use-chat-dark.svg
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/static/icons/use-chat.svg b/static/icons/use-chat.svg
index 86ced9d4..5f4d7e45 100644
--- a/static/icons/use-chat.svg
+++ b/static/icons/use-chat.svg
@@ -2,8 +2,8 @@
aria-hidden="true" role="img">
+ fill="black" />
+ fill="black" />
\ No newline at end of file