Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix logs scrolling

Tomas Valentad9e2a88eeba0
diff --git a/components/Editor/RightSidebar/Logs/index.tsx b/components/Editor/RightSidebar/Logs/index.tsx
index ad7f6f938..831cf253f 100644
--- a/components/Editor/RightSidebar/Logs/index.tsx
+++ b/components/Editor/RightSidebar/Logs/index.tsx
@@ -1,11 +1,10 @@
import {
Fragment,
useEffect,
- useLayoutEffect,
useRef,
useState,
} from 'react'
-import hljs from 'highlight.js'
+// import hljs from 'highlight.js'
import ReactMarkdown from 'react-markdown'
import Text from 'components/Text'
@@ -47,7 +46,6 @@ function Logs({
// }
// }, [logs, selectedTab])
-
useEffect(function scrollLogs() {
if (!ref.current) return
ref.current.scrollIntoView({ behavior: 'smooth' })
@@ -89,7 +87,6 @@ function Logs({
</div>
<div
- ref={ref}
className="
flex-1
overflow-auto
@@ -99,6 +96,8 @@ function Logs({
scroller
whitespace-pre-wrap
py-4
+ flex
+ flex-col
px-2
">
{selectedTab === 0 && logs?.map((l, i, a) =>