Jump to content

Videos look really small on mobile for some reason?

Go to solution Solved by tuanphan,

Recommended Posts

Hey all! 

I recently used a snippet of code to improve the look of vertical videos in my client's portfolio. But for some reason on  mobile, the videos appear super small (see screenshot attached.) Does anyone know how to correct this? Thank you in advance for taking a look!

WEBSITE: https://mylk-collective-2024.squarespace.com/ (password: MYLK)

Pages where this is happening (mobile only) - 

Code I added to the custom CSS of the site:

.sqs-native-video .native-video-player {
    padding-top: 0 !important;
}
.video-player .plyr {
    position: relative !important;
}
 
 
.video-player .plyr .plyr__controls:before {
  display:none;
}
.sqs-native-video .native-video-player {
  opacity:0;
  animation:fadeEnter 2s 2s forwards;
}
 
@keyframes fadeEnter {
0% {
opacity:0;
}
100% {
opacity:1;
}
}

image.thumb.jpeg.85489d113b53540747b44a9122c72630.jpeg

Link to comment
  • Replies 5
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Change this line

.sqs-native-video .native-video-player {
    padding-top: 0 !important;
}
.video-player .plyr {
    position: relative !important;
}

to this

@media screen and (min-width:768px) {
.sqs-native-video .native-video-player {
    padding-top: 0 !important;
}
.video-player .plyr {
    position: relative !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Solution

With this page

https://mylk-collective-2024.squarespace.com/portfolio/yamas

try this code to Custom CSS box

@media screen and (max-width:767px) {
section[data-section-id="663e94aa66f16c484c5598f4"] .video-player {
    padding-bottom: 90% !important;
}
}

If it works, I will give quick instructions for other pages

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.