From 8d65dc831c2f0b19070119d7757c35088705d815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 24 Sep 2022 11:43:49 +0800 Subject: [PATCH] fix error --- app/assets/javascripts/theater.js | 1 + app/assets/stylesheets/gallery_card.css | 3 +++ modules/gallery/_gallery_widget4.html.erb | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index b045f9f..2fdb073 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -345,6 +345,7 @@ window.GalleryTheater = function(){ var createThumbStrip = function(){ if(!gt.isTheaterInitialized){ + gt.thumbStrip.html("") $.each(gt.albumData.images,function(index, image){ var li = $(""), a = $(""), diff --git a/app/assets/stylesheets/gallery_card.css b/app/assets/stylesheets/gallery_card.css index db533f9..c1f84b5 100644 --- a/app/assets/stylesheets/gallery_card.css +++ b/app/assets/stylesheets/gallery_card.css @@ -1,3 +1,6 @@ +.gallery.card-group .card-body img { + object-fit: cover; +} .gallery.card-group .row { position: relative; display: flex; diff --git a/modules/gallery/_gallery_widget4.html.erb b/modules/gallery/_gallery_widget4.html.erb index 2b56d73..fc6ec94 100644 --- a/modules/gallery/_gallery_widget4.html.erb +++ b/modules/gallery/_gallery_widget4.html.erb @@ -2,7 +2,7 @@

{{widget-title}}

- + <% OrbitHelper.render_css_in_head(["gallery_card.css"]) %>