From 9d519a8a294deb86ca63661403e44f928c94c5c2 Mon Sep 17 00:00:00 2001 From: Saxon Fletcher Date: Wed, 12 Feb 2025 13:16:00 +1000 Subject: [PATCH] fix ts --- apps/studio/components/ui/AIEditor/index.tsx | 4 ++-- apps/studio/components/ui/EditorPanel/EditorPanel.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/studio/components/ui/AIEditor/index.tsx b/apps/studio/components/ui/AIEditor/index.tsx index e6e2ebce6fb..961a7482665 100644 --- a/apps/studio/components/ui/AIEditor/index.tsx +++ b/apps/studio/components/ui/AIEditor/index.tsx @@ -244,8 +244,8 @@ const AIEditor = ({ language={language} original={diffValue.original} modified={diffValue.modified} - onMount={(editor) => { - diffEditorRef.current = editor as monacoEditor.IStandaloneDiffEditor + onMount={(editor: monacoEditor.IStandaloneDiffEditor) => { + diffEditorRef.current = editor setIsDiffEditorMounted(true) }} options={{ diff --git a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx index cfb9cc06761..9083a179242 100644 --- a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx +++ b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx @@ -255,7 +255,7 @@ export const EditorPanel = ({ onChange }: EditorPanelProps) => { wordWrap: 'on', lineNumbers: 'on', folding: false, - padding: { top: 4, right: 16 }, + padding: { top: 4 }, lineNumbersMinChars: 3, }} />