fix: support new Steam cover layout
This commit is contained in:
1 parent
e433ca3842
commit
0784d4c143
12 files changed
+212
-88
No files matched your search
@@ -545,6 +545,7 @@ function renderModal(g) {
|
||||
$("#modalBody").innerHTML = `
|
||||
<div class="modal-grid">
|
||||
<div class="modal-cover" id="modalCover">
|
||||
<div class="cover-blur" id="modalCoverBlur"></div>
|
||||
<img data-appid="${g.appid}" src="${coverUrl(g.appid)}" alt="">
|
||||
<div class="fallback">${esc(g.name)}</div>
|
||||
</div>
|
||||
@@ -575,6 +576,7 @@ function renderModal(g) {
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
$("#modalCoverBlur").style.backgroundImage = `url("${coverUrl(g.appid)}")`;
|
||||
attachCoverFallback($("#modalCover img"));
|
||||
|
||||
$("#modalClose").addEventListener("click", () => $("#modal").close());
|
||||
|
||||
Reference in new issue
Block a user