This commit is contained in:
Bingus_Violet 2023-11-30 20:42:41 -06:00
parent 33a3a9ced2
commit fd63a5c1e1
2 changed files with 2 additions and 4 deletions

View file

@ -139,14 +139,13 @@ function pageUpdate() {
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}"> <img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
<p> <p>
Playing <span style="color: rgb(255, 100, 150);">${activity.name}</span> Playing <span style="color: rgb(255, 100, 150);">${activity.name}</span>
<br> ${activity.state || activity.assets.small_text}
<br> ${activity.details || activity.assets.large_text} <br> ${activity.details || activity.assets.large_text}
<br> ${activity.state || activity.assets.small_text}
</p> </p>
</div> </div>
` `
} else { } else {
console.log(get_img())
addedHTML += ` addedHTML += `
<div class="chip activity col-md-6 testing"> <div class="chip activity col-md-6 testing">
<p> <p>
@ -203,7 +202,5 @@ lanyard.addEventListener("message", (res) => {
} else if (data.op == 0) { } else if (data.op == 0) {
lanyardData = data.d lanyardData = data.d
pageUpdate() pageUpdate()
} else {
console.log(data.d)
} }
}) })

View file

@ -83,6 +83,7 @@ a {
.activity > img { .activity > img {
width: 128px; width: 128px;
height: 128px; height: 128px;
min-height: 100%;
aspect-ratio: 1/1; aspect-ratio: 1/1;
object-fit: cover; object-fit: cover;
} }