Skip to content

Commit b1d4491

Browse files
committed
Fixed UI
1 parent d6cd7e2 commit b1d4491

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/BandPowerGraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const Graph
217217
}, [animateGraph]);
218218

219219
return (
220-
<div ref={containerRef} className="w-full h-[300px] max-w-[700px]">
220+
<div ref={containerRef} className="w-full h-full max-w-[700px]">
221221
<canvas ref={canvasRef} style={{ width: "100%", height: "100%" }} />
222222
</div>
223223
);

src/components/FFT.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,16 +325,16 @@ const FFT = forwardRef(
325325
}, [plotData]);
326326

327327
return (
328-
<div className="flex flex-col gap-2 w-full h-full">
329-
<main
330-
className="flex flex-col flex-[1_1_0%] min-h-80 bg-highlight rounded-2xl m-4 relative"
331-
ref={canvasContainerRef}
328+
<div className="flex flex-col gap-2 w-full h-full">
329+
<main
330+
className="flex flex-col flex-[1_1_50%] h-1/2 bg-highlight rounded-2xl m-4 relative"
331+
ref={canvasContainerRef}
332332
>
333333
</main>
334334

335335
{/* Flex container for side-by-side layout */}
336-
<div className="w-full flex flex-row justify-between items-center max-w-full h-[300px] gap-20">
337-
{/* Canvas container (left side) */}
336+
<div className="w-full flex flex-row justify-between items-center max-w-full h-1/2 gap-20">
337+
{/* Canvas container (left side) */}
338338
<div ref={containerRef} className="flex-1 h-full">
339339
<canvas ref={canvasRef} className="w-full h-full" />
340340
</div>

0 commit comments

Comments
 (0)