Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(agentic-ide): thin themed scrollbars and no sticky headers in the diff view

rubenluetke10-beepb98630ff622d
diff --git a/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx b/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx
index 50ffc2101f..36121575f1 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx
@@ -180,6 +180,10 @@ export default function EditorSurface({
diff = monaco.editor.createDiffEditor(diffHost.current, {
...EDITOR_OPTIONS,
minimap: { enabled: false },
+ // Each half would pin its own, different scope lines over the top
+ // rows, so the two sides stop lining up and a fast scroll leaves a
+ // stale header lying on the text.
+ stickyScroll: { enabled: false },
originalEditable: false,
renderSideBySide: true,
useInlineViewWhenSpaceIsLimited: true,
diff --git a/jarvis/ui/web/frontend/src/components/agentic/editor/editorGutter.css b/jarvis/ui/web/frontend/src/components/agentic/editor/editorGutter.css
index 704562ec76..b70cd62bf2 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/editor/editorGutter.css
+++ b/jarvis/ui/web/frontend/src/components/agentic/editor/editorGutter.css
@@ -24,3 +24,26 @@
.monaco-editor .jarvis-gutter-deleted-below::before {
bottom: -4px;
}
+
+/* The diff overview's "you are here" box. Monaco fills the whole 30 px column
+ with a grey slab; drawn as the app's thin pill thumb instead, so the change
+ marks in both lanes stay visible beside it. */
+.monaco-diff-editor .diffOverview .diffViewport,
+.monaco-diff-editor .diffOverview .diffViewport:hover,
+.monaco-diff-editor .diffOverview .diffViewport:active {
+ background: transparent;
+}
+.monaco-diff-editor .diffOverview .diffViewport::after {
+ content: "";
+ position: absolute;
+ inset: 2px auto 2px 12px;
+ width: 6px;
+ border-radius: 999px;
+ background: var(--vscode-scrollbarSlider-background);
+}
+.monaco-diff-editor .diffOverview .diffViewport:hover::after {
+ background: var(--vscode-scrollbarSlider-hoverBackground);
+}
+.monaco-diff-editor .diffOverview .diffViewport:active::after {
+ background: var(--vscode-scrollbarSlider-activeBackground);
+}
diff --git a/jarvis/ui/web/frontend/src/components/agentic/editor/monacoRuntime.ts b/jarvis/ui/web/frontend/src/components/agentic/editor/monacoRuntime.ts
index 26d8f196c9..2c7107f76c 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/editor/monacoRuntime.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/editor/monacoRuntime.ts
@@ -92,6 +92,9 @@ export function applyTheme(dark: boolean): void {
const border = tokenHex("--border", dark ? "#2e2e2e" : "#e5e5e5");
const lift = tokenHex("--secondary", dark ? "#262626" : "#f5f5f5");
const popover = tokenHex("--popover", background);
+ // The same thumb colours as the app's own scrollbars (index.css), so the
+ // editor's bars and the diff overview's viewport box read as one family.
+ const thumb = tokenHex("--border-strong", dark ? "#404040" : "#bdbdbd");
monaco.editor.defineTheme("jarvis", {
base: dark ? "vs-dark" : "vs",
inherit: true,
@@ -116,6 +119,9 @@ export function applyTheme(dark: boolean): void {
"input.border": border,
"focusBorder": border,
"scrollbar.shadow": "#00000000",
+ "scrollbarSlider.background": thumb.slice(0, 7),
+ "scrollbarSlider.hoverBackground": `${muted.slice(0, 7)}aa`,
+ "scrollbarSlider.activeBackground": `${muted.slice(0, 7)}dd`,
"diffEditor.border": border,
},
});
@@ -132,6 +138,8 @@ export const EDITOR_OPTIONS: monaco.editor.IEditorOptions & monaco.editor.IGloba
bracketPairColorization: { enabled: true },
guides: { bracketPairs: "active", indentation: true },
smoothScrolling: true,
+ // Thin bars like the rest of the app instead of Monaco's 14 px gutters.
+ scrollbar: { verticalScrollbarSize: 10, horizontalScrollbarSize: 10, useShadows: false },
cursorSmoothCaretAnimation: "on",
renderWhitespace: "selection",
scrollBeyondLastLine: false,