log auto bottom and increase height

This commit is contained in:
mbecker20
2024-05-20 22:56:32 -07:00
parent 6b6324d79c
commit 931f2bd92d

View File

@@ -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`,