This commit is contained in:
Daniel 2025-06-10 22:50:25 +08:00
parent d41b8672cd
commit 7afd615f9a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -72,7 +72,7 @@ export const renderGallery = (options: {
if (view.coverFrom !== 0) {
if (item.coverURL) {
galleryHTML += `<div class="av__gallery-cover"><div class="av__gallery-img${view.fitImage ? " av__gallery-img--fit" : ""}" style="background-image:url('${item.coverURL}')"></div></div>`;
} else if (!item.coverContent) {
} else if (item.coverContent) {
galleryHTML += `<div class="av__gallery-cover"><div class="av__gallery-content">${item.coverContent}</div></div>`;
} else {
galleryHTML += `<div class="av__gallery-cover"></div>`;