File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ const utils = {
397397 iframeTitle ?: string ,
398398 ) : string {
399399 const title = iframeTitle ? 'title="' + iframeTitle + '"' : '' ;
400- return `<div class="lg-video -cont lg-has-iframe" style="width:${ iframeWidth } ; max-width:${ iframeMaxWidth } ; height: ${ iframeHeight } ; max-height:${ iframeMaxHeight } ">
400+ return `<div class="lg-media -cont lg-has-iframe" style="width:${ iframeWidth } ; max-width:${ iframeMaxWidth } ; height: ${ iframeHeight } ; max-height:${ iframeMaxHeight } ">
401401 <iframe class="lg-object" frameborder="0" ${ title } src="${ src } " allowfullscreen="true"></iframe>
402402 </div>` ;
403403 } ,
@@ -579,6 +579,7 @@ const utils = {
579579 dynamicEl . alt = alt || title || '' ;
580580 dynamicElements . push ( dynamicEl ) ;
581581 } ) ;
582+ console . log ( dynamicElements , 'dynamicElements' ) ;
582583 return dynamicElements ;
583584 } ,
584585 isMobile ( ) : boolean {
Original file line number Diff line number Diff line change 258258 }
259259 }
260260 }
261+
262+ .lg-media-cont {
263+ text-align : center ;
264+ display : inline-block ;
265+ vertical-align : middle ;
266+ position : relative ;
267+ .lg-object {
268+ width : 100% !important ;
269+ height : 100% !important ;
270+ }
271+ }
272+
273+ .lg-has-iframe {
274+ .lg-media-cont {
275+ -webkit-overflow-scrolling : touch ;
276+ overflow : auto ;
277+ }
278+ }
261279}
262280
263281.lg-backdrop {
You can’t perform that action at this time.
0 commit comments