File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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) */ }
You can’t perform that action at this time.
0 commit comments