napthedev / react-tuby

A React video player library with YouTube-like UI
https://react-tuby.vercel.app
MIT License
138 stars 42 forks source link

Dimensions for Player is not working #2

Closed ductridev closed 2 years ago

ductridev commented 2 years ago

I try to apply custom dimensions to the player and take an error look like this image And without custom dimensions, the player works well and looks like this image

When I disable width and height in the tuby-container class it works well. image

The error seems like the width and height of the tuby-container class have conflicted with the custom width and height dimension if both exist. Thank you.

napthedev commented 2 years ago
image

Please check what line of your own css is overwriting the library's style.

image

In my case it still work nomally

ductridev commented 2 years ago

Fixed it. Just use one more div tag outside to control the width and height of the player.