Bläddra i källkod

Fill waveform parent height

Use height of parent container in waveform canvas.
pull/1/head
TheoryOfNekomata 1 år sedan
förälder
incheckning
edb4b0acfc
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      packages/web-kitchensink-reactnext/src/packages/react-wavesurfer/WaveformCanvas/index.tsx

+ 1
- 1
packages/web-kitchensink-reactnext/src/packages/react-wavesurfer/WaveformCanvas/index.tsx Visa fil

@@ -78,7 +78,7 @@ export const WaveformCanvas = React.forwardRef<SpectrogramCanvasDerivedComponent
const { default: WaveSurfer } = await import('wavesurfer.js');
const waveSurferInstance = WaveSurfer.create({
container: containerRef.current,
height: containerRef.current.clientHeight,
height: 'auto',
autoplay: autoPlay,
fillParent: true,
waveColor,


Laddar…
Avbryt
Spara