diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-03-31 17:46:05 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-10 16:02:37 -0300 |
commit | 60b8fd09165e0772869016f72ff2d955f0be0f2a (patch) | |
tree | 269e6fc99a1286cefdd6062afc8d297fc02d7d91 /src/static/js/client/hoverable-tooltip.js | |
parent | ec8c79787ab330986e9da590fd500c7ceda893f2 (diff) |
content, css, client: hoverable-tooltip: isolate z-index bullshit
Diffstat (limited to 'src/static/js/client/hoverable-tooltip.js')
-rw-r--r-- | src/static/js/client/hoverable-tooltip.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/static/js/client/hoverable-tooltip.js b/src/static/js/client/hoverable-tooltip.js index 484f2ab0..395bb51a 100644 --- a/src/static/js/client/hoverable-tooltip.js +++ b/src/static/js/client/hoverable-tooltip.js @@ -576,6 +576,17 @@ export function showTooltipFromHoverable(hoverable) { hoverable.classList.add('has-visible-tooltip'); + const isolator = + hoverable.closest('.isolate-tooltip-z-indexing > *'); + + if (isolator) { + for (const child of isolator.parentElement.children) { + cssProp(child, 'z-index', null); + } + + cssProp(isolator, 'z-index', '1'); + } + positionTooltipFromHoverableWithBrains(hoverable); cssProp(tooltip, 'display', 'block'); |