Skip to content

Commit

Permalink
Less jumping
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbell-lot23 committed Apr 10, 2024
1 parent a333420 commit 4f6ecda
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions src/components/sections/DevTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,30 @@ export function DevTools({ devTools }: LandingPageFragment) {
)}

{featureImage.type === 'mux-video' && (
<MuxPlayer
streamType="on-demand"
playbackId="3OZMn3uq3dlTfHO19bGjaBO8JXXbPduqCx2RqDG5jIg"
primaryColor="#FFFFFF"
secondaryColor="#000000"
muted={true}
autoPlay={true}
style={
{
display: 'block',
'--controls': 'none',
'--media-object-fit': 'cover',
'--media-object-position': 'center'
} as React.CSSProperties
}
/>
<div
style={{
position: 'relative',
width: '100%'
}}
>
<MuxPlayer
streamType="on-demand"
playbackId="3OZMn3uq3dlTfHO19bGjaBO8JXXbPduqCx2RqDG5jIg"
primaryColor="#FFFFFF"
secondaryColor="#000000"
muted={true}
autoPlay={true}
style={
{
display: 'block',
margin: '15px 0',
'--controls': 'none',
'--media-object-fit': 'cover',
'--media-object-position': 'center'
} as React.CSSProperties
}
/>
</div>
)}
</div>
</Tab.Panel>
Expand Down Expand Up @@ -195,12 +203,14 @@ export function DevTools({ devTools }: LandingPageFragment) {
streamType="on-demand"
playbackId="3OZMn3uq3dlTfHO19bGjaBO8JXXbPduqCx2RqDG5jIg"
primaryColor="#FFFFFF"
secondaryColor="#000000"
secondaryColor="#ff00ff"
muted={true}
autoPlay={true}
style={
{
display: 'block',
padding: '50px 0',
margin: '50px 0',
'--controls': 'none',
'--media-object-fit': 'cover',
'--media-object-position': 'center'
Expand Down

0 comments on commit 4f6ecda

Please sign in to comment.