diff --git a/ui/src/components/runbooks/editor/blocks/RunBlock/terminal.tsx b/ui/src/components/runbooks/editor/blocks/RunBlock/terminal.tsx
index e5ca0fca..fa203fc9 100644
--- a/ui/src/components/runbooks/editor/blocks/RunBlock/terminal.tsx
+++ b/ui/src/components/runbooks/editor/blocks/RunBlock/terminal.tsx
@@ -55,6 +55,7 @@ const TerminalComponent = ({ pty }: any) => {
terminal.loadAddon(fitAddon);
terminal.onResize(onResize(pty));
+ fitAddon.fit();
const windowResize = () => {
fitAddon.fit();
};
@@ -67,8 +68,6 @@ const TerminalComponent = ({ pty }: any) => {
window.addEventListener("resize", windowResize);
- fitAddon.fit();
-
// Customize further as needed
return () => {
terminal.dispose();
@@ -76,7 +75,9 @@ const TerminalComponent = ({ pty }: any) => {
};
}, [pty]);
- return
;
+ return (
+
+ );
};
export default TerminalComponent;
diff --git a/ui/src/main.tsx b/ui/src/main.tsx
index 074552f7..58cfd77b 100644
--- a/ui/src/main.tsx
+++ b/ui/src/main.tsx
@@ -8,7 +8,7 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
-
+
diff --git a/ui/src/pages/Home.tsx b/ui/src/pages/Home.tsx
index b7c4503d..0f0b5dcf 100644
--- a/ui/src/pages/Home.tsx
+++ b/ui/src/pages/Home.tsx
@@ -36,7 +36,7 @@ function Header({ name }: any) {
return (
-
+
{greeting}
diff --git a/ui/src/pages/Runbooks.tsx b/ui/src/pages/Runbooks.tsx
index 0452a578..6b517553 100644
--- a/ui/src/pages/Runbooks.tsx
+++ b/ui/src/pages/Runbooks.tsx
@@ -6,7 +6,7 @@ export default function Runbooks() {
const currentRunbook = useStore((store) => store.currentRunbook);
return (
-