Compare commits
2 Commits
77d6d8b60a
...
48434de1c2
Author | SHA1 | Date | |
---|---|---|---|
48434de1c2 | |||
7bfae5a407 |
@ -22,7 +22,7 @@ export default function Score({ score, player, leaderboard }: ScoreProps) {
|
|||||||
const isFullCombo = score.missedNotes + score.badCuts === 0;
|
const isFullCombo = score.missedNotes + score.badCuts === 0;
|
||||||
|
|
||||||
return (
|
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="ml-3 flex flex-col items-start justify-center">
|
||||||
<div className="hidden w-fit flex-row items-center justify-start gap-1 md:flex">
|
<div className="hidden w-fit flex-row items-center justify-start gap-1 md:flex">
|
||||||
<GlobeAsiaAustraliaIcon width={20} height={20} />
|
<GlobeAsiaAustraliaIcon width={20} height={20} />
|
||||||
|
@ -18,7 +18,10 @@ export function formatTimeAgo(timestamp: string) {
|
|||||||
if (timeDifference === "less than a minute") {
|
if (timeDifference === "less than a minute") {
|
||||||
return "just now";
|
return "just now";
|
||||||
} else {
|
} else {
|
||||||
return `${timeDifference.replace("about", "").replace("almost", "")} ago`;
|
return `${timeDifference
|
||||||
|
.replace("about", "")
|
||||||
|
.replace("almost", "")
|
||||||
|
.replace("over", "")} ago`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user