mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
break for big numbers
This commit is contained in:
parent
b34a5d61e5
commit
94cf83881f
|
@ -115,7 +115,7 @@ nav {
|
|||
position: absolute;
|
||||
color: var(--text-color);
|
||||
display: grid;
|
||||
grid-template-columns: auto 2.5em;
|
||||
grid-template-columns: auto minmax(5ch, max-content);
|
||||
gap: 0.5em;
|
||||
//justify-items: center;
|
||||
width: 100%;
|
||||
|
|
|
@ -191,7 +191,7 @@ export function update(snapshot: MonkeyTypes.Snapshot | undefined): void {
|
|||
export async function updateXpBar(
|
||||
currentXp: number,
|
||||
addedXp: number,
|
||||
breakdown?: Record<string, number>
|
||||
breakdown?: XpBreakdown
|
||||
): Promise<void> {
|
||||
skipBreakdown = false;
|
||||
const startingXp = Levels.getXpDetails(currentXp);
|
||||
|
|
|
@ -98,10 +98,11 @@ export function appendButton(): void {
|
|||
console.log("click");
|
||||
await updateXpBar(1000, 5000, {
|
||||
base: 100,
|
||||
"100%": 200,
|
||||
fullAccuracy: 200,
|
||||
accPenalty: 300,
|
||||
quote: 400,
|
||||
punctuation: 500,
|
||||
streak: 10_000,
|
||||
configMultiplier: 2,
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue