Fixed up notification styling a little

This commit is contained in:
Dan Brown
2018-03-18 11:58:45 +00:00
parent d44e0b7964
commit 8828adfc9c
2 changed files with 7 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class Notification {
show(textToShow = '') {
this.elem.removeEventListener('transitionend', this.hideCleanup);
this.textElem.textContent = textToShow;
this.elem.style.display = 'block';
this.elem.style.display = 'grid';
setTimeout(() => {
this.elem.classList.add('showing');
}, 1);