Update NextPingTimer.vue

This commit is contained in:
mohit-nagaraj 2024-10-12 13:16:30 +05:30
parent a4ab9caa43
commit f65e5e5848
No known key found for this signature in database

View file

@ -28,13 +28,13 @@ export default {
formattedTime = seconds > 1 ? `${seconds}secs` : `${seconds}sec`; formattedTime = seconds > 1 ? `${seconds}secs` : `${seconds}sec`;
} }
if (minutes > 0) { if (minutes > 0) {
formattedTime = minutes > 1 ? `${minutes}mins` : `${minutes}min`; formattedTime = minutes > 1 ? `~ ${minutes}mins` : `~ ${minutes}min`;
} }
if (hours > 0) { if (hours > 0) {
formattedTime = hours > 1 ? `${hours}hrs` : `${hours}hr`; formattedTime = hours > 1 ? `~ ${hours}hrs` : `~ ${hours}hr`;
} }
if (days > 0) { if (days > 0) {
formattedTime = days > 1 ? `${days}days` : `${days}day`; formattedTime = days > 1 ? `~ ${days}days` : `~ ${days}day`;
} }
return formattedTime.trim(); return formattedTime.trim();
@ -45,8 +45,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../assets/vars.scss"; @import "../assets/vars.scss";
.word { .word {
color: $secondary-text; color: $secondary-text;
font-size: 12px; font-size: 12px;
} }
</style> </style>