Compare commits

...

2 Commits

Author SHA1 Message Date
48434de1c2 update ui
All checks were successful
deploy / deploy (push) Successful in 56s
2023-10-23 11:06:03 +01:00
7bfae5a407 update time format 2023-10-23 11:05:51 +01:00
2 changed files with 5 additions and 2 deletions

@ -22,7 +22,7 @@ export default function Score({ score, player, leaderboard }: ScoreProps) {
const isFullCombo = score.missedNotes + score.badCuts === 0;
return (
<div className="grid grid-cols-1 pb-2 pt-2 first:pt-0 last:pb-0 md:grid-cols-[1.1fr_6fr_3fr] xl:md:grid-cols-[.95fr_6fr_3fr]">
<div className="grid grid-cols-1 pb-2 pt-2 first:pt-0 last:pb-0 md:grid-cols-[1.2fr_6fr_3fr] xl:grid-cols-[1fr_6fr_3fr]">
<div className="ml-3 flex flex-col items-start justify-center">
<div className="hidden w-fit flex-row items-center justify-start gap-1 md:flex">
<GlobeAsiaAustraliaIcon width={20} height={20} />

@ -18,7 +18,10 @@ export function formatTimeAgo(timestamp: string) {
if (timeDifference === "less than a minute") {
return "just now";
} else {
return `${timeDifference.replace("about", "").replace("almost", "")} ago`;
return `${timeDifference
.replace("about", "")
.replace("almost", "")
.replace("over", "")} ago`;
}
}