fix error

This commit is contained in:
邱博亞 2022-09-24 11:43:49 +08:00
parent abdaf6085c
commit 8d65dc831c
3 changed files with 5 additions and 1 deletions

View File

@ -345,6 +345,7 @@ window.GalleryTheater = function(){
var createThumbStrip = function(){ var createThumbStrip = function(){
if(!gt.isTheaterInitialized){ if(!gt.isTheaterInitialized){
gt.thumbStrip.html("")
$.each(gt.albumData.images,function(index, image){ $.each(gt.albumData.images,function(index, image){
var li = $("<li class='gallery-item'></li>"), var li = $("<li class='gallery-item'></li>"),
a = $("<a href=''></a>"), a = $("<a href=''></a>"),

View File

@ -1,3 +1,6 @@
.gallery.card-group .card-body img {
object-fit: cover;
}
.gallery.card-group .row { .gallery.card-group .row {
position: relative; position: relative;
display: flex; display: flex;

View File

@ -2,7 +2,7 @@
<h3 class="widget-title"> <h3 class="widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<link rel="stylesheet" type="text/css" href="/assets/gallery_card.css"> <% OrbitHelper.render_css_in_head(["gallery_card.css"]) %>
<div class="row widget-content" data-level="0" data-list="images"> <div class="row widget-content" data-level="0" data-list="images">
<div class="card card-flip h-100"> <div class="card card-flip h-100">
<div class="card-front"> <div class="card-front">