From 5f6eeba90244bab9644926436f614bf9ee08fc2f Mon Sep 17 00:00:00 2001 From: Philipp Heuer Date: Mon, 28 Sep 2020 19:37:42 +0200 Subject: [PATCH] Increase the size of the CodeEditor used for additionalJsonData --- src/QueryEditor.tsx | 8 +++++--- src/css/json-editor.css | 7 +++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 src/css/json-editor.css diff --git a/src/QueryEditor.tsx b/src/QueryEditor.tsx index b1a98f65..332b113d 100644 --- a/src/QueryEditor.tsx +++ b/src/QueryEditor.tsx @@ -8,6 +8,8 @@ import { Format } from './format'; import { GenericOptions, GrafanaQuery } from './types'; +import "./css/json-editor.css"; + type Props = QueryEditorProps; const formatAsOptions = [ @@ -84,10 +86,10 @@ export const QueryEditor: ComponentType = ({ datasource, onChange, onRunQ
-
+
100} diff --git a/src/css/json-editor.css b/src/css/json-editor.css new file mode 100644 index 00000000..727cadea --- /dev/null +++ b/src/css/json-editor.css @@ -0,0 +1,7 @@ +.grafana-json-datasource-editor { + width: 100%; +} + +.grafana-json-datasource-editor div { + width: 100%; +} \ No newline at end of file