minor: update how "Time Played:" looks

This commit is contained in:
Index 2024-08-06 17:17:41 -05:00
parent ae060b6e93
commit eaf161e9f0

View file

@ -80,9 +80,9 @@ const Gamepasses = Array.from(GamepassesTab.getElementsByClassName('card')) || [
const TimePlayedValueRow = document.createElement('li')
if (TimePlayed[PlaceID]) {
TimePlayedValueRow.innerText = new Date(TimePlayed[PlaceID] * 1000).toISOString().slice(11, 19)
TimePlayedValueRow.innerHTML = '<i class="text-center text-muted fa-duotone fa-solid fa-watch me-1" style="width: 1.3em;"></i> ' + new Date(TimePlayed[PlaceID] * 1000).toISOString().slice(11, 19) + ' <small style="font-size: 0.7rem;" class="text-muted">(poly+)</small>'
} else {
TimePlayedValueRow.innerText = '-'
TimePlayedValueRow.innerHTML = '<i class="text-center text-muted fa-duotone fa-solid fa-watch me-1" style="width: 1.3em;"></i> - <small style="font-size: 0.7rem;" class="text-muted">(poly+)</small>'
}
InfoColumns[0].appendChild(TimePlayedNameRow);