瀏覽代碼

Fill waveform parent height

Use height of parent container in waveform canvas.
pull/1/head
TheoryOfNekomata 1 年之前
父節點
當前提交
edb4b0acfc
共有 1 個檔案被更改,包括 1 行新增1 行删除
  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 查看文件

@@ -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,


Loading…
取消
儲存