@naniteninja/dashboard-components-lib 2.1.43 → 2.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6588,7 +6588,8 @@ class LibDashboardSwipeableTabsComponent {
|
|
|
6588
6588
|
portalEl.style.pointerEvents = prevPointerEvents;
|
|
6589
6589
|
if (!el)
|
|
6590
6590
|
return false;
|
|
6591
|
-
|
|
6591
|
+
// If we hit our own or related component tree, it's not occlusion
|
|
6592
|
+
if (el.closest('.settings-trigger-wrapper-portal, .settings-trigger-wrapper, .global-menu, .tab-bar-container, lib-client-home, lib-matcher-viewport, lib-client-viewport'))
|
|
6592
6593
|
return false;
|
|
6593
6594
|
const explicitOverlay = el.closest('ion-modal, ion-alert, ion-loading, ion-action-sheet, ion-popover, .cdk-overlay-container, .cdk-overlay-backdrop, .p-dialog-mask, .pref-match-manager-backdrop, [aria-modal="true"], [role="dialog"]');
|
|
6594
6595
|
if (explicitOverlay)
|
|
@@ -6599,8 +6600,9 @@ class LibDashboardSwipeableTabsComponent {
|
|
|
6599
6600
|
if (st.position === 'fixed') {
|
|
6600
6601
|
const rr = cur.getBoundingClientRect();
|
|
6601
6602
|
const z = Number.parseInt(st.zIndex || '0', 10);
|
|
6603
|
+
// Only consider it blocking if it covers a large part of the screen AND has a z-index high enough to actually cover our portal (300)
|
|
6602
6604
|
const covers = rr.width >= window.innerWidth * 0.7 && rr.height >= window.innerHeight * 0.35;
|
|
6603
|
-
if (covers && Number.isFinite(z) && z >=
|
|
6605
|
+
if (covers && Number.isFinite(z) && z >= 300)
|
|
6604
6606
|
return true;
|
|
6605
6607
|
}
|
|
6606
6608
|
cur = cur.parentElement;
|