mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-29 04:10:01 -05:00
log auto bottom and increase height
This commit is contained in:
@@ -171,10 +171,10 @@ const Log = ({
|
||||
top: ref.current.scrollHeight,
|
||||
behavior: "smooth",
|
||||
});
|
||||
useEffect(scroll, []);
|
||||
useEffect(scroll, [_log]);
|
||||
return (
|
||||
<>
|
||||
<div ref={ref} className="h-[70vh] overflow-y-auto">
|
||||
<div ref={ref} className="h-[80vh] overflow-y-auto">
|
||||
<pre
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: _log ? logToHtml(_log) : `no ${stream} logs`,
|
||||
|
||||
Reference in New Issue
Block a user