Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(pam): style CodeMirror scrollbars to match app thin-scrollbar on Windows/Linux

bernie-g5fd9d8e98d35
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
index 658fc1c85e..3e4b7e65d3 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
@@ -12,8 +12,13 @@ const infisicalTheme = EditorView.theme({
".cm-scroller": {
overflow: "auto",
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace",
- backgroundColor: "#16181a"
+ backgroundColor: "#16181a",
+ scrollbarWidth: "thin",
+ scrollbarColor: "#39393d transparent"
},
+ ".cm-scroller::-webkit-scrollbar": { width: "4px", height: "4px" },
+ ".cm-scroller::-webkit-scrollbar-track": { background: "transparent" },
+ ".cm-scroller::-webkit-scrollbar-thumb": { background: "#39393d", borderRadius: "2px" },
".cm-content": { padding: "8px 0", caretColor: "#e0ed34", backgroundColor: "#16181a" },
".cm-line": { backgroundColor: "transparent" },
".cm-gutters": {