fixed burst heatmap legend positioning

This commit is contained in:
Miodec 2022-07-20 12:23:48 +02:00
parent 06ee7ee67c
commit bfd3be177e
2 changed files with 5 additions and 1 deletions

View file

@ -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);

View file

@ -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) => {