Skip to content

Commit

Permalink
🎨 fix #10199
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 16, 2024
1 parent 7b43396 commit 7ee8ee1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/config/bazaar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export const bazaar = {
};
return `<div data-obj='${JSON.stringify(dataObj)}' class="b3-card b3-card--wrap${hide ? " fn__none" : ""}${item.current ? " b3-card--current" : ""}">
<div class="b3-card__img">
<img src="${item.iconURL}" onerror="this.src='${item.previewURLThumb}'"/>
<img src="${item.iconURL}" onerror="this.src='/stage/images/icon.png'"/>
</div>
<div class="fn__flex-1 fn__flex-column">
<div class="b3-card__info fn__flex-1">
Expand Down Expand Up @@ -373,7 +373,7 @@ export const bazaar = {
});
}
html += `<div data-obj='${JSON.stringify(dataObj)}' class="b3-card${item.current ? " b3-card--current" : ""}${(window.siyuan.config.bazaar.petalDisabled && bazaarType === "plugins") ? " b3-card--disabled" : ""}">
<div class="b3-card__img"><img src="${item.iconURL}" onerror="this.src='${item.previewURLThumb}'"/></div>
<div class="b3-card__img"><img src="${item.iconURL}" onerror="this.src='/stage/images/icon.png'"/></div>
<div class="fn__flex-1 fn__flex-column">
<div class="b3-card__info b3-card__info--left fn__flex-1">
${item.preferredName} <span class="ft__on-surface ft__smaller">${item.name}</span>
Expand Down Expand Up @@ -462,7 +462,7 @@ export const bazaar = {
</div>
</div>
<div class="fn__flex-1"></div>
<img class="item__img" src="${data.iconURL}" onerror="this.src='${data.previewURLThumb}'">
<img class="item__img" src="${data.iconURL}" onerror="this.src='/stage/images/icon.png'">
<a href="${data.repoURL}" target="_blank" class="item__title" title="GitHub Repo">${data.preferredName}</a>
<br>
<a href="${data.repoURL}" target="_blank" class="ft__on-surface ft__smaller" title="GitHub Repo">${data.name}</a>
Expand Down

0 comments on commit 7ee8ee1

Please sign in to comment.