Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Improve splitter scroll handling [WIP]

Tomas Valenta9c446341311a
diff --git a/components/AgentLogFileContent.tsx b/components/AgentLogFileContent.tsx
index 2bb3d0cc9..20d5a248f 100644
--- a/components/AgentLogFileContent.tsx
+++ b/components/AgentLogFileContent.tsx
@@ -47,7 +47,7 @@ function AgentLogFileContent({
classes={['pr-2 overflow-auto', 'bg-gray-900 pl-2']}
initialSizes={splitterSizes}
onResizeFinished={setSizes}
- // minWidths={[100, 100]}
+ minWidths={[120, 120]}
>
<AgentPromptLogsList
logs={(logFile.content as AgentPromptLogs).logs}
@@ -62,7 +62,7 @@ function AgentLogFileContent({
log={logFile.content as AgentNextActionLog}
/>
) : logFile.filename.includes('user_input') ? (
- <div className="overflow-auto p-2 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 w-full border border-gray-800">
+ <div className="overflow-auto p-2 mr-2.5 mb-2.5 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 w-full border border-gray-800">
<div className="flex flex-col space-y-1 w-full">
<span className="text-sm font-medium text-gray-500">User Input</span>
<span
diff --git a/components/AgentNextActionLogDetail.tsx b/components/AgentNextActionLogDetail.tsx
index ad451dc0a..ae1160b37 100644
--- a/components/AgentNextActionLogDetail.tsx
+++ b/components/AgentNextActionLogDetail.tsx
@@ -10,7 +10,7 @@ function AgentNextActionLogDetail({
log,
}: Props) {
return (
- <div className="overflow-auto p-2 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 w-full border border-gray-800">
+ <div className="overflow-auto p-2 mr-2.5 mb-2.5 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 w-full border border-gray-800">
<div className="flex flex-col space-y-1 w-full">
<span className="text-sm font-medium text-gray-500">Thoughts</span>
<ReactJson
diff --git a/components/AgentPromptLogDetail.tsx b/components/AgentPromptLogDetail.tsx
index 9c5706f49..692741f93 100644
--- a/components/AgentPromptLogDetail.tsx
+++ b/components/AgentPromptLogDetail.tsx
@@ -33,7 +33,7 @@ function AgentPrompLogDetail({
}, [log])
return (
- <div className="overflow-auto p-2 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 border border-gray-800 min-w-[550px]">
+ <div className="overflow-auto mr-2.5 mb-2.5 p-2 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 border border-gray-800">
{log && (
<>
<div className="flex flex-col space-y-1 w-full">
@@ -57,7 +57,8 @@ function AgentPrompLogDetail({
src={parsedLog}
name={null}
style={{
- background: 'transparent'
+ background: 'transparent',
+ display: 'flex',
}}
displayObjectSize={false}
quotesOnKeys={false}