fix(hibp): put the progress pill in the toast stack, bottom right
Free-floating it either covered the cards or the sidebar navigation. Inside .toast-container it shares the corner with the toasts, and column-reverse keeps it above them.
This commit is contained in:
@@ -969,7 +969,10 @@ function hibpProgress(done, total) {
|
||||
pill = el('div', { class: 'hibp-progress', id: 'hibpProgress' });
|
||||
pill.appendChild(el('div', { class: 'hibp-progress-spinner' }));
|
||||
pill.appendChild(el('span', { class: 'hibp-progress-text' }));
|
||||
document.body.appendChild(pill);
|
||||
// Inside the toast stack rather than free-floating: it then sits in the
|
||||
// same corner as the toasts and can never overlap them or the cards.
|
||||
const host = document.querySelector('.toast-container');
|
||||
(host || document.body).appendChild(pill);
|
||||
}
|
||||
const t = pill.querySelector('.hibp-progress-text');
|
||||
if (t) t.textContent = 'Checking breaches… ' + done + '/' + total;
|
||||
|
||||
Reference in New Issue
Block a user