Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix basic styling [WIP]
Tomas Valenta0d4a2b9d7092
diff --git a/components/Editor/RouteEditor/PromptEditor.tsx b/components/Editor/RouteEditor/PromptEditor.tsxindex 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-2min-w-full+ rounded"><EditorContenteditor={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.tsxindex f3f1d3be3..a97115143 100644--- a/components/Editor/RouteEditor/index.tsx+++ b/components/Editor/RouteEditor/index.tsx@@ -24,6 +24,7 @@ function RouteEditor({ route }: Props) {flexflex-1items-start+ overflow-hidden">{!route &&<div>No route selected</div>@@ -42,32 +43,23 @@ function RouteEditor({ route }: Props) {flexflex-1flex-col- items-center+ items-startoverflow-autoscroller- 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.cssindex 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;+}