From 4a705e2bf87974b299eff44b5c0e004ec92bcf3f Mon Sep 17 00:00:00 2001 From: predictiple Date: Thu, 1 Feb 2024 13:53:13 +0200 Subject: [PATCH] Fix for ACE editor cursor position issue in Classic theme (#3262) Should resolve the issue described in #3259 --- gui/velociraptor/src/components/users/user-label.jsx | 2 +- gui/velociraptor/src/themes/no-theme.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/velociraptor/src/components/users/user-label.jsx b/gui/velociraptor/src/components/users/user-label.jsx index fd552820f44..d3b6fbf3006 100644 --- a/gui/velociraptor/src/components/users/user-label.jsx +++ b/gui/velociraptor/src/components/users/user-label.jsx @@ -377,7 +377,7 @@ export default class UserLabel extends React.Component { let ace_options = JSON.parse(this.context.traits.ui_settings || "{}"); if (options.theme === "no-theme") { ace_options.theme = "ace/theme/xcode"; - ace_options.fontFamily = "monospace"; + ace_options.fontFamily = "Iosevka Term"; } else if (options.theme === "veloci-dark") { ace_options.theme = "ace/theme/vibrant_ink"; ace_options.fontFamily = "Iosevka Term"; diff --git a/gui/velociraptor/src/themes/no-theme.css b/gui/velociraptor/src/themes/no-theme.css index 32fb71968f4..5947e1fe6f2 100644 --- a/gui/velociraptor/src/themes/no-theme.css +++ b/gui/velociraptor/src/themes/no-theme.css @@ -22,6 +22,8 @@ --font-size-small: 13px; --font-family-sans-serif: "Noto Sans", roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; + --font-family-monospace: "Iosevka Term", Iosevka-Term, SFMono-Regular, Menlo, Monaco, + "Ubuntu Mono", Consolas, "Liberation Mono", "Courier New", monospace; --color-tooltip-background: white; }