Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sizing issue w/ bg video which made the #244

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/default-provider/app/background-video/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export default function Page() {
return (
<>
<section>
<BackgroundVideo src={countryClouds} disableTracking>
<BackgroundVideo
src={countryClouds}
disableTracking
style={{ aspectRatio: 1.9 }}
>
<h1>next-video</h1>
<p>
A React component for adding video to your Next.js application.
Expand Down
2 changes: 1 addition & 1 deletion examples/default-provider/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ footer .inner {
}

.mux-svg {
width: 2.2rem;
width: 2.5rem;
}

aside nav ul {
Expand Down
2 changes: 2 additions & 0 deletions src/components/players/background-player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export const BackgroundPlayer = forwardRef((allProps: BackgroundPlayerProps, for
}

.next-video-bg-poster {
width: 100%;
height: 100%;
position: relative;
object-fit: cover;
pointer-events: none;
Expand Down