Fix video fullscreen mode on mobile

This commit is contained in:
2020-05-08 22:59:46 +02:00
parent ebdad2e657
commit c86dce74c2
6 changed files with 14 additions and 15 deletions

View File

@@ -13,8 +13,8 @@
## To Do List ## To Do List
* ECMA import/export * ECMA import/export
* Reset zoom on image closing (lightbox) * Reset zoom on image closing (lightbox)
* Fix video fullscreen button on ios * Fix lightbox portrait mode: push text under (mobile especially)
* Fix lightbox portrait mode: push text under
* Add mail frequency slider * Add mail frequency slider
* Replace Project Time Zone with browser Time Zone when uploading media? * Replace Project Time Zone with browser Time Zone when uploading media?
* Use WMTS servers directly when not using Geo Caching Server * Use WMTS servers directly when not using Geo Caching Server
* Newsletter: Add custom link to media/post

View File

@@ -126,7 +126,7 @@
//ADDED-START //ADDED-START
if(self.options.hasVideo) { if(self.options.hasVideo) {
this.$video = $('<video class="lb-video" src="" controls="true" autoplay playsinline></video>'); this.$video = $('<video class="lb-video" controls autoplay></video>');
this.$image.after(this.$video); this.$image.after(this.$video);
this.videoBorderWidth = { this.videoBorderWidth = {
top: parseInt(this.$video.css('border-top-width'), 10), top: parseInt(this.$video.css('border-top-width'), 10),

View File

@@ -40,6 +40,14 @@
translateY(var(--translate-y, 0)) translateY(var(--translate-y, 0))
scale(var(--scale, 1)); scale(var(--scale, 1));
} }
.lb-video {
box-sizing: content-box;
}
&.lb-video-nav .lb-nav {
top: 45px;
height: calc(100% - 90px);
}
.lb-nav { .lb-nav {
a.lb-prev, a.lb-next { a.lb-prev, a.lb-next {

View File

@@ -35,15 +35,6 @@ body.lb-disable-scrolling {
border: 4px solid white; border: 4px solid white;
} }
//ADDED-START
.lightbox .lb-video {
box-sizing: content-box;
}
.lightbox .lb-video-nav .lb-nav {
height: calc(100% - 45px);
}
//ADDED-END
.lightbox a img { .lightbox a img {
border: none; border: none;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long