Fix hints lingering forever

This commit is contained in:
Eevee (Evelyn Woods) 2021-01-22 08:46:23 -07:00
parent 54823f62bf
commit 69a344595c
2 changed files with 3 additions and 5 deletions

View File

@ -1287,6 +1287,7 @@ class Player extends PrimaryView {
this.time_el.classList.remove('--frozen');
this.time_el.classList.remove('--danger');
this.time_el.classList.remove('--warning');
this.hint_el.parentNode.classList.remove('--visible');
this.root.classList.remove('--replay-playback');
this.root.classList.remove('--replay-recording');
this.root.classList.remove('--bonus-visible');
@ -1557,9 +1558,7 @@ class Player extends PrimaryView {
// TODO can we do this only if they actually changed?
this.chips_el.textContent = this.level.chips_remaining;
if (this.level.chips_remaining === 0) {
this.chips_el.classList.add('--done');
}
this.chips_el.classList.toggle('--done', this.level.chips_remaining === 0);
this.time_el.classList.toggle('--frozen', this.level.time_remaining === null || this.level.timer_paused);
if (this.level.time_remaining === null) {

View File

@ -1346,10 +1346,9 @@ dl.score-chart .-star {
display: none;
font-size: calc(var(--tile-height) * var(--scale) / 3);
font-family: serif;
font-style: italic;
color: hsl(45, 100%, 60%);
background: #080808;
border: 1px inset #202020;
border: 2px inset #202020;
}
#player-game-area > .player-hint-wrapper > .player-hint {
overflow: auto;