mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
d41b8672cd
commit
7afd615f9a
1 changed files with 1 additions and 1 deletions
|
|
@ -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>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue