fix(chan): remove onara card highlight when closing onara modal

This commit is contained in:
2026-09-26 15:45:18 +02:00
parent 62f0fbde63
commit 875bc9fef2
2 changed files with 28 additions and 6 deletions
+2 -2
View File
@@ -2550,7 +2550,7 @@ window.cancelAnimFrame = (function () {
modal.setAttribute('aria-hidden', 'true');
modal.classList.remove('onara-fade-out', 'onara-fade-in');
document.body.classList.remove('onara-modal-open', 'onara-modal-closing');
document.querySelectorAll('.onara-active').forEach(el => el.classList.remove('onara-active'));
document.querySelectorAll('.onara-active, .active-thread-post').forEach(el => el.classList.remove('onara-active', 'active-thread-post'));
if (typeof window.applyBackgroundOpacitySettings === 'function') {
window.applyBackgroundOpacitySettings(null, false);
}
@@ -2584,7 +2584,7 @@ window.cancelAnimFrame = (function () {
// Now that modal is completely invisible, smoothly restore background state
document.body.classList.remove('onara-modal-open', 'onara-modal-closing');
document.querySelectorAll('.onara-active').forEach(el => el.classList.remove('onara-active'));
document.querySelectorAll('.onara-active, .active-thread-post').forEach(el => el.classList.remove('onara-active', 'active-thread-post'));
if (typeof window.applyBackgroundOpacitySettings === 'function') {
window.applyBackgroundOpacitySettings(null, false);
}