More right padding, less code

This commit is contained in:
bingus_violet 2024-11-22 17:09:58 -06:00
parent 44d62c54e9
commit 253ab2a9ff
2 changed files with 3 additions and 3 deletions

View file

@ -74,11 +74,11 @@ module.exports = {
var totalTime = Math.round((activity.timestamps.end - activity.timestamps.start) / 1000) var totalTime = Math.round((activity.timestamps.end - activity.timestamps.start) / 1000)
return ` return `
<div class="durationBarStuff"> <div class="durationBarStuff">
<p style="padding-right: 4px;" class="playTimeStart scriptEnabled" data-start="${activity.timestamps.start}" data-end="${activity.timestamps.end}">${timeFormatter((Date.now() - activity.timestamps.start))}</p> <p style="padding-left: 0;" class="playTimeStart scriptEnabled" data-start="${activity.timestamps.start}" data-end="${activity.timestamps.end}">${timeFormatter((Date.now() - activity.timestamps.start))}</p>
<div class="lengthBar lengthBar${index}"> <div class="lengthBar lengthBar${index}">
<div></div> <div></div>
</div> </div>
<p style="padding-left: 4px;" class="playTimeEnd" data-start="${activity.timestamps.start}" data-end="${activity.timestamps.end}">${timeFormatter((activity.timestamps.end - activity.timestamps.start))}</p> <p class="playTimeEnd" data-start="${activity.timestamps.start}" data-end="${activity.timestamps.end}">${timeFormatter((activity.timestamps.end - activity.timestamps.start))}</p>
</div> </div>
<style> <style>
.lengthBar${index} > div { .lengthBar${index} > div {

View file

@ -362,5 +362,5 @@ underline {
.durationBarStuff > p { .durationBarStuff > p {
font-size: 1.15rem; font-size: 1.15rem;
padding: 0; padding: 0 4px;
} }