mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-18 23:04:30 +08:00
fixed burst heatmap legend positioning
This commit is contained in:
parent
06ee7ee67c
commit
bfd3be177e
2 changed files with 5 additions and 1 deletions
|
|
@ -562,6 +562,8 @@
|
|||
padding: 0.1rem 0.5rem;
|
||||
white-space: nowrap;
|
||||
line-height: 0.75rem;
|
||||
display: grid;
|
||||
place-content: center center;
|
||||
}
|
||||
.box:nth-child(1) {
|
||||
background: var(--colorful-error-color);
|
||||
|
|
|
|||
|
|
@ -891,7 +891,9 @@ export function applyBurstHeatmap(): void {
|
|||
}`;
|
||||
}
|
||||
|
||||
$("#resultWordsHistory .heatmapLegend .box" + index).text(string);
|
||||
$("#resultWordsHistory .heatmapLegend .box" + index).html(
|
||||
`<div>${string}</div>`
|
||||
);
|
||||
});
|
||||
|
||||
$("#resultWordsHistory .words .word").each((_, word) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue