From aeab2840de0c69122c49dba1b6f286597e4d606a Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 26 Mar 2026 15:31:24 -0400 Subject: [PATCH] fix(ui): constrain bounded code editor scroll viewports --- .../cliproxy/provider-editor/index.tsx | 6 ++-- ui/src/components/profiles/editor/index.tsx | 6 ++-- ui/src/components/shared/code-editor.tsx | 9 ++++-- ui/src/index.css | 32 +++++++++++++++++++ ui/src/pages/api.tsx | 2 +- 5 files changed, 45 insertions(+), 10 deletions(-) diff --git a/ui/src/components/cliproxy/provider-editor/index.tsx b/ui/src/components/cliproxy/provider-editor/index.tsx index 502b8583..55d858f0 100644 --- a/ui/src/components/cliproxy/provider-editor/index.tsx +++ b/ui/src/components/cliproxy/provider-editor/index.tsx @@ -234,8 +234,8 @@ export function ProviderEditor({ Loading settings... ) : ( -
-
+
+
@@ -303,7 +303,7 @@ export function ProviderEditor({
-
+
diff --git a/ui/src/components/profiles/editor/index.tsx b/ui/src/components/profiles/editor/index.tsx index d13c4353..f9709845 100644 --- a/ui/src/components/profiles/editor/index.tsx +++ b/ui/src/components/profiles/editor/index.tsx @@ -226,8 +226,8 @@ export function ProfileEditor({
) : ( -
-
+
+
-
+
diff --git a/ui/src/components/shared/code-editor.tsx b/ui/src/components/shared/code-editor.tsx index e1dd049e..5dbc3fd4 100644 --- a/ui/src/components/shared/code-editor.tsx +++ b/ui/src/components/shared/code-editor.tsx @@ -156,12 +156,16 @@ export function CodeEditor({ ); return ( -
+
{/* Editor container */}
-
+
{selectedProfileData ? ( <>