Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix basic styling [WIP]

Tomas Valenta0d4a2b9d7092
diff --git a/components/Editor/RouteEditor/PromptEditor.tsx b/components/Editor/RouteEditor/PromptEditor.tsx
index 6e94f2d96..9deb6d523 100644
--- a/components/Editor/RouteEditor/PromptEditor.tsx
+++ b/components/Editor/RouteEditor/PromptEditor.tsx
@@ -17,13 +17,14 @@ function PromptEditor({ onChange, block }: Props) {
return (
<div className="
flex
- flex-1
- bg-slate-100
+ bg-white
+ p-2
min-w-full
+ rounded
">
<EditorContent
editor={editor}
- className="w-full h-full"
+ className="w-full h-full outline-none"
/>
</div>
)
diff --git a/components/Editor/RouteEditor/index.tsx b/components/Editor/RouteEditor/index.tsx
index f3f1d3be3..a97115143 100644
--- a/components/Editor/RouteEditor/index.tsx
+++ b/components/Editor/RouteEditor/index.tsx
@@ -24,6 +24,7 @@ function RouteEditor({ route }: Props) {
flex
flex-1
items-start
+ overflow-hidden
">
{!route &&
<div>No route selected</div>
@@ -42,32 +43,23 @@ function RouteEditor({ route }: Props) {
flex
flex-1
flex-col
- items-center
+ items-start
overflow-auto
scroller
- bg-white
- relative
+ space-y-2
">
- <div className="
- flex
- flex-col
- items-center
- transition-all
- flex-1
- ">
- {requestBodyBlock &&
- <RequestBodyEditor
- block={requestBodyBlock}
- onChange={updateRequestBodyBlock}
- />
- }
- {promptBlock &&
- <PromptEditor
- block={promptBlock}
- onChange={updatePromptBlock}
- />
- }
- </div>
+ {requestBodyBlock &&
+ <RequestBodyEditor
+ block={requestBodyBlock}
+ onChange={updateRequestBodyBlock}
+ />
+ }
+ {promptBlock &&
+ <PromptEditor
+ block={promptBlock}
+ onChange={updatePromptBlock}
+ />
+ }
</div>
</>
}
diff --git a/styles/global.css b/styles/global.css
index f1f271cf4..35edcc829 100644
--- a/styles/global.css
+++ b/styles/global.css
@@ -76,3 +76,7 @@ code::-webkit-scrollbar-thumb {
@apply bg-slate-300;
@apply rounded-full;
}
+
+.ProseMirror:focus {
+ outline: none;
+}