Skip to content

Commit 7fcbec5

Browse files
author
Ritika Mishra
committed
updated ui
1 parent 80be1c2 commit 7fcbec5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/app/serial-plotter/page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,13 @@ const SerialPlotter = () => {
360360
{viewMode !== "plotter" && (
361361
<div
362362
ref={rawDataRef}
363-
className={`w-full border rounded-xl shadow-lg bg-[#1a1a2e] text-white overflow-auto flex flex-col`}
364-
style={{ height: "35vh", maxHeight: "35vh", minHeight: "35vh" }} // Set fixed height
363+
className="w-full border rounded-xl shadow-lg bg-[#1a1a2e] text-white overflow-auto flex flex-col"
364+
style={{
365+
height: viewMode === "monitor" ? "calc(100vh - 100px)" : "35vh", // Adjust height when only monitor is shown
366+
maxHeight: viewMode === "monitor" ? "calc(100vh - 100px)" : "35vh",
367+
minHeight: "35vh",
368+
}}
365369
>
366-
367370
{/* Title Bar with Input and Buttons */}
368371
<div className="sticky top-0 flex items-center justify-between bg-[#1a1a2e] p-2 z-10">
369372
{/* Input Box (Full Width) */}

0 commit comments

Comments
 (0)