mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-14 00:16:13 +01:00
This commit is contained in:
parent
f62de94887
commit
7fdd85dda2
5 changed files with 133 additions and 10 deletions
|
|
@ -59,7 +59,7 @@ export const renderGallery = (options: {
|
|||
let galleryHTML = "";
|
||||
// body
|
||||
view.cards.forEach((item: IAVGalleryItem, rowIndex: number) => {
|
||||
galleryHTML += `<div data-id="${item.id}" class="av__gallery-item${selectItemIds.includes(item.id) ? " av__gallery-item--select" : ""}">`;
|
||||
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
|
||||
if (item.coverURL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue