diff --git a/web/src/app/(app)/machines/[machine_id]/page.tsx b/web/src/app/(app)/machines/[machine_id]/page.tsx
index 22fcbdd..023190a 100644
--- a/web/src/app/(app)/machines/[machine_id]/page.tsx
+++ b/web/src/app/(app)/machines/[machine_id]/page.tsx
@@ -35,7 +35,10 @@ export default async function Page({
/>
)}
{machine.status !== "building" && machine.build_log && (
-
+
)}
diff --git a/web/src/components/LogsViewer.tsx b/web/src/components/LogsViewer.tsx
index f9e64c1..0be4691 100644
--- a/web/src/components/LogsViewer.tsx
+++ b/web/src/components/LogsViewer.tsx
@@ -1,6 +1,7 @@
"use client";
import React, { useEffect, useRef } from "react";
+import { cn } from "@/lib/utils";
import { toast } from "sonner";
export type LogsType = {
@@ -12,7 +13,8 @@ export type LogsType = {
export function LogsViewer({
logs,
hideTimestamp,
-}: { logs: LogsType; hideTimestamp?: boolean }) {
+ className,
+}: { logs: LogsType; hideTimestamp?: boolean; className?: string }) {
const container = useRef(null);
useEffect(() => {
@@ -40,7 +42,10 @@ export function LogsViewer({
}
container.current = ref;
}}
- className="h-full w-full flex flex-col text-xs p-2 overflow-y-scroll whitespace-break-spaces"
+ className={cn(
+ "h-full w-full flex flex-col text-xs p-2 overflow-y-scroll whitespace-break-spaces",
+ className,
+ )}
>
{logs.map((x, i) => (