@@ -133,9 +133,9 @@ const FFT = forwardRef(
133133 line . lineSpaceX ( - 1 , 2 / dataPointCountRef . current ) ;
134134 wglp . addLine ( line ) ;
135135 newWglPlots . push ( wglp ) ;
136- console . log ( newWglPlots )
136+ console . log ( newWglPlots )
137137 linesRef . current = [ line ] ;
138- wglPlotsref . current = [ wglp ] ;
138+ wglPlotsref . current = [ wglp ] ;
139139 setCanvasElements ( [ canvas ] ) ;
140140 } catch ( error ) {
141141 console . error ( "Error creating WebglPlot:" , error ) ;
@@ -324,19 +324,19 @@ console.log(newWglPlots)
324324 return (
325325 < div className = "flex flex-col gap-2 w-full h-full" >
326326 < main
327- className = "flex flex-col flex-[1_1_0%] min-h-80 bg-highlight rounded-2xl m-4 relative"
327+ className = "flex flex-col flex-[1_1_0%] min-h-70 bg-highlight rounded-2xl m-4 relative"
328328 ref = { canvasContainerRef }
329329 > </ main >
330330
331331 { /* Flex container for side-by-side layout */ }
332- < div className = "w-full flex flex-row justify-between items-center max-w-full h-[300px] gap-20" >
332+ < div className = "w-full flex flex-row justify-between items-center max-w-full gap-20" >
333333 { /* Canvas container (left side) */ }
334- < div ref = { containerRef } className = "flex-1 h-full " >
335- < canvas ref = { canvasRef } className = "w-full h-full " />
334+ < div ref = { containerRef } className = "flex-1" >
335+ < canvas ref = { canvasRef } className = "w-full" />
336336 </ div >
337337
338338 { /* BandPowerGraph (right side) */ }
339- < div className = "flex-1 h-full " >
339+ < div className = "flex-1" >
340340 < BandPowerGraph fftData = { fftData } samplingRate = { currentSamplingRate } />
341341 </ div >
342342 </ div >
0 commit comments