Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluscream committed Apr 6, 2024
1 parent fdb5b31 commit 1a4a999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function generateCard(data) {
<svg class="bd-placeholder-img card-img-top" width="100%" height="75" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Source Icon" preserveAspectRatio="xMidYMid slice" focusable="false">
<title>${data.name} Source Icon</title>`;
if (data.iconUrl) {
html += `<img src="${data.iconUrl}" width="100%" height="100%"></img>`;
html += `<img src="${data.iconUrl}" width="auto" height="auto"></img>`;
} else {
html += '<rect width="100%" height="100%" fill="#55595c"></rect>';
html += '<rect width="auto" height="auto" fill="#55595c"></rect>';
}
html +=`<text x="50%" y="50%" fill="#eceeef" dy=".3em">${data.name}</text>
</svg>
Expand Down

0 comments on commit 1a4a999

Please sign in to comment.