oipuifopgdj

This commit is contained in:
2026-09-10 18:32:04 +02:00
parent e2e4feeea0
commit 4fbabace79
2 changed files with 13 additions and 1 deletions
+5
View File
@@ -18662,6 +18662,9 @@ body.onara-modal-open nav.navbar {
filter: none !important; filter: none !important;
pointer-events: auto !important; pointer-events: auto !important;
z-index: 10060 !important; z-index: 10060 !important;
position: sticky !important;
top: 0 !important;
width: 100% !important;
} }
body.onara-modal-open .global-sidebar-right { body.onara-modal-open .global-sidebar-right {
@@ -18694,6 +18697,8 @@ body.onara-modal-open #sidebar-drag-zone {
-webkit-backdrop-filter: blur(5px) saturate(130%) !important; -webkit-backdrop-filter: blur(5px) saturate(130%) !important;
overflow-y: auto !important; overflow-y: auto !important;
overflow-x: hidden !important; overflow-x: hidden !important;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain !important;
box-sizing: border-box !important; box-sizing: border-box !important;
animation: onaraFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation: onaraFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
transition: right 0.3s ease-in-out !important; transition: right 0.3s ease-in-out !important;
+8 -1
View File
@@ -1098,7 +1098,12 @@ window.cancelAnimFrame = (function () {
if (targetThumb) { if (targetThumb) {
targetThumb.classList.add('onara-active'); targetThumb.classList.add('onara-active');
targetThumb.scrollIntoView({ block: 'center', inline: 'nearest', behavior: 'instant' }); const rect = targetThumb.getBoundingClientRect();
const navbarH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--navbar-h')) || 50;
const isInView = rect.top >= navbarH && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight);
if (!isInView) {
targetThumb.scrollIntoView({ block: 'center', inline: 'nearest', behavior: 'instant' });
}
} }
}; };
window.updateOnaraActiveItem = updateOnaraActiveItem; window.updateOnaraActiveItem = updateOnaraActiveItem;
@@ -5545,6 +5550,8 @@ window.cancelAnimFrame = (function () {
requestAnimationFrame(() => { requestAnimationFrame(() => {
_scrollTicking = false; _scrollTicking = false;
if (document.body.classList.contains('onara-modal-open')) return;
const currentContainer = postsContainer; const currentContainer = postsContainer;
// Only run if THIS container is the active one and still in DOM // Only run if THIS container is the active one and still in DOM
if (!currentContainer || !document.body.contains(currentContainer)) { if (!currentContainer || !document.body.contains(currentContainer)) {