diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-11-26 18:16:34 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-11-26 18:16:34 -0400 |
commit | 15bc6d580ec2b3a754ff3dc17e9eb24bc90e052a (patch) | |
tree | 7769457a1f784a3746a22cc49720d979bc1dc866 /src/static/client3.js | |
parent | f03ea65a10124d8962609f03d4df84be1531db17 (diff) |
client, css: style hovered/active tooltip links wavy
Diffstat (limited to 'src/static/client3.js')
-rw-r--r-- | src/static/client3.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/static/client3.js b/src/static/client3.js index 866b9ba..390d020 100644 --- a/src/static/client3.js +++ b/src/static/client3.js @@ -754,6 +754,8 @@ function hideCurrentlyShownTooltip() { // Never hide the tooltip if it's focused. if (currentlyShownTooltipHasFocus()) return false; + state.currentlyActiveHoverable.classList.remove('has-visible-tooltip'); + state.currentlyShownTooltip = null; state.currentlyActiveHoverable = null; @@ -774,6 +776,8 @@ function showTooltipFromHoverable(hoverable) { if (!hideCurrentlyShownTooltip()) return false; + hoverable.classList.add('has-visible-tooltip'); + state.currentlyShownTooltip = tooltip; state.currentlyActiveHoverable = hoverable; |