Fix canvas resolution on high-DPI screens

This commit is contained in:
Mononaut
2022-06-12 18:15:30 +00:00
parent 5314eb2d45
commit 1f6b59f2f5
3 changed files with 21 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
<div class="mempool-block-overview">
<canvas class="block-overview" #blockCanvas></canvas>
<canvas class="block-overview" [style.width]="cssWidth + 'px'" [style.height]="cssHeight + 'px'" #blockCanvas></canvas>
<div class="loader-wrapper" [class.hidden]="!(isLoading$ | async)">
<div class="spinner-border ml-3 loading" role="status"></div>
</div>