From 62d67a0ccf6a5a3eb81bbcc43fa90488d42f4d33 Mon Sep 17 00:00:00 2001 From: MMaker Date: Thu, 2 Feb 2023 23:08:56 -0500 Subject: [PATCH] Switch from display to visibility Helps with the preview snapping into view --- javascript/addnet-api.js | 4 ++-- style.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/addnet-api.js b/javascript/addnet-api.js index 4c5b05b..75a92ca 100644 --- a/javascript/addnet-api.js +++ b/javascript/addnet-api.js @@ -113,11 +113,11 @@ const addNetAPI = async () => { } show() { - this.tooltip.style.display = 'block'; + this.tooltip.style.visibility = 'visible'; } hide() { - this.tooltip.style.display = 'none'; + this.tooltip.style.visibility = 'hidden'; } } diff --git a/style.css b/style.css index d35780c..8d9faf1 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ #addnet_api_tooltip { font-family: Source Sans Pro,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"; position: fixed; - display: none; + visibility: hidden; background: rgba(0,0,0,0.9); border: 1px solid white; padding: 0.5em;