From f4eb75ff347e78ac334e55ee26fbdd247bb8eaa2 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Wed, 23 Mar 2022 21:31:54 +0500 Subject: [PATCH] fix(scroll): closes #100 --- web/src/containers/Studio/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/containers/Studio/index.tsx b/web/src/containers/Studio/index.tsx index acb65a1..7c9c658 100644 --- a/web/src/containers/Studio/index.tsx +++ b/web/src/containers/Studio/index.tsx @@ -70,6 +70,9 @@ const Studio = () => { setWebout(`
${webout}
`) setTab('2') + + // Scroll to bottom of log + window.scrollTo(0, document.body.scrollHeight) }) .catch((err) => console.log(err)) }