mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 19:00:15 +01:00
🚨
This commit is contained in:
parent
32a9a99814
commit
8c6fdd2a14
3 changed files with 2 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ export const renderGallery = (options: {
|
|||
view.cards.forEach((item: IAVGalleryItem, rowIndex: number) => {
|
||||
galleryHTML += `<div data-id="${item.id}" draggable="true" class="av__gallery-item${selectItemIds.includes(item.id) ? " av__gallery-item--select" : ""}">`;
|
||||
if (view.coverFrom !== 0) {
|
||||
const coverClass= "av__gallery-cover av__gallery-cover--" + view.cardAspectRatio
|
||||
const coverClass= "av__gallery-cover av__gallery-cover--" + view.cardAspectRatio;
|
||||
if (item.coverURL) {
|
||||
if (item.coverURL.startsWith("background")) {
|
||||
galleryHTML += `<div class="${coverClass}"><div class="av__gallery-img${view.fitImage ? " av__gallery-img--fit" : ""}" style="${item.coverURL}"></div></div>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue