Skip to content

Commit 086701c

Browse files
committed
Improve spike blinking performance
1 parent 91e46a6 commit 086701c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/topscore/topscore.component.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@
8282
"
8383
[@spike]
8484
>
85-
<img
86-
class="spike-icon"
87-
src="../../assets/misc/Spike_top_{{ blinkState ? 'light' : 'dark' }}.svg"
88-
/>
85+
<img class="spike-icon" src="../../assets/misc/Spike_top_light.svg" [hidden]="!blinkState" />
86+
<img class="spike-icon" src="../../assets/misc/Spike_top_dark.svg" [hidden]="blinkState" />
8987
</div>
9088
</div>
9189
<div class="round-number">{{ "topscore.round" | translate: { rounds: match.roundNumber } }}</div>

0 commit comments

Comments
 (0)