Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Change editor styling [WIP]
Tomas Valenta654b11fac598
diff --git a/components/Editor/RouteEditor/PromptEditor.tsx b/components/Editor/RouteEditor/PromptEditor.tsxindex d6a408033..c30f83eb5 100644--- a/components/Editor/RouteEditor/PromptEditor.tsx+++ b/components/Editor/RouteEditor/PromptEditor.tsx@@ -17,16 +17,15 @@ function PromptEditor({ onChange, block }: Props) {return (<div className="flex- min-w-full- rounded- bg-slate-300+ w-full+ h-full"><EditorContenteditor={editor}className="- w-full- h-full- outline-none+ flex-1+ flex+ flex-col"/></div>diff --git a/components/Editor/RouteEditor/index.tsx b/components/Editor/RouteEditor/index.tsxindex 757a1a06a..2c6878257 100644--- a/components/Editor/RouteEditor/index.tsx+++ b/components/Editor/RouteEditor/index.tsx@@ -23,8 +23,7 @@ function RouteEditor({ route }: Props) {px-4flexflex-1- bg-white- items-start+ bg-whitejustify-centeroverflow-hidden">@@ -37,31 +36,31 @@ function RouteEditor({ route }: Props) {</div>}{route &&- <>- <div className="+ <div className="flexflex-1flex-col+ bg-slate-400items-centermax-w-[65ch]+ min-h-0overflow-autoscrollerspace-y-2">- {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>}</div >)diff --git a/styles/global.css b/styles/global.cssindex 1ef397ef9..47331c371 100644--- a/styles/global.css+++ b/styles/global.css@@ -81,3 +81,7 @@ code::-webkit-scrollbar-thumb {.ProseMirror:focus {outline: none;}++.ProseMirror {+ @apply h-full w-full;+}