mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
fb29e0be9f
commit
ecdebf85f7
1 changed files with 4 additions and 4 deletions
|
|
@ -893,8 +893,8 @@ export const bazaar = {
|
|||
}
|
||||
localSort[selectElement.parentElement.parentElement.getAttribute("data-type")] = selectElement.value;
|
||||
setStorageVal(Constants.LOCAL_BAZAAR, window.siyuan.storage[Constants.LOCAL_BAZAAR]);
|
||||
if (cardElements.length > 1 && cardElements.length % 2 === 1) {
|
||||
html += '<div class="fn__flex-1" style="margin-left: 15px;min-width: 342px;"></div>';
|
||||
if (cardElements.length > 1) {
|
||||
html += '<div class="fn__flex-1" style="margin-left: 15px;min-width: 342px;"></div><div class="fn__flex-1" style="margin-left: 15px;min-width: 342px;"></div>';
|
||||
}
|
||||
panelElement.querySelector(".b3-cards").innerHTML = html;
|
||||
}
|
||||
|
|
@ -949,8 +949,8 @@ export const bazaar = {
|
|||
html += item.outerHTML;
|
||||
});
|
||||
}
|
||||
if (response.data.packages.length > 1 && response.data.packages.length % 2 === 1) {
|
||||
html += '<div class="fn__flex-1" style="margin-left: 15px;min-width: 342px;"></div>';
|
||||
if (response.data.packages.length > 1) {
|
||||
html += '<div class="fn__flex-1" style="margin-left: 15px;min-width: 342px;"></div><div class="fn__flex-1" style="margin-left: 15px;min-width: 342px;"></div>';
|
||||
}
|
||||
element.innerHTML = `<div class="b3-cards">${html}</div>`;
|
||||
if (reload) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue