Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
demo(youtube-player): add auto video resizing #17648
I wonder if this is highlighting a bigger problem with the component: most users would expect the youtube video to fill the width of the youtube-player element. Rather than forcing the user to explicitly set a width and height, I wonder if it should default to whatever the css style of the youtube-player element.
- automatically resize the video to fit the screen - this was noticeable on mobile where the video would just get cut off - rename video to selectedVideo for clarity - fix TypeScript path mappings so that IDEs don't complain about module - use classes to style Material components as recommended