Skip to content

Commit 7d2fe49

Browse files
committed
Fix popup tooltips and sizing for Firefox
1 parent 5ec3006 commit 7d2fe49

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

platform/firefox/vapi-background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ vAPI.toolbarButton.onBeforeCreated = function(doc) {
12241224
return;
12251225
}
12261226

1227-
new win.MutationObserver(delayedResize).observe(win.body, {
1227+
new win.MutationObserver(delayedResize).observe(win.document.body, {
12281228
attributes: true,
12291229
characterData: true,
12301230
subtree: true

src/css/common.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ body:not(.advancedUser) [data-tip]:hover:after {
3636
white-space: pre-line;
3737
z-index: 20;
3838
pointer-events: none;
39-
opacity: 0;
39+
animation: tooltip 0.8s;
40+
-webkit-animation: tooltip 0.8s;
4041
}
4142
[data-tip]:hover::after {
4243
opacity: 1;
@@ -60,6 +61,17 @@ body[dir=rtl] [data-tip][data-tip-anchor="top"]:hover:after {
6061
right: -500%;
6162
}
6263

64+
@keyframes tooltip {
65+
0% { opacity: 0; }
66+
85% { opacity: 0; }
67+
100% { opacity: 1; }
68+
}
69+
@-webkit-keyframes tooltip {
70+
0% { opacity: 0; }
71+
85% { opacity: 0; }
72+
100% { opacity: 1; }
73+
}
74+
6375
.hiddenFileInput {
6476
visibility: hidden;
6577
width: 0;

src/css/popup.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ body.dirty #refresh {
162162
body.dirty #refresh:hover {
163163
color: black;
164164
}
165-
165+
166166
#dynamicFilteringContainer {
167167
border: 0;
168168
font-size: 12px;

0 commit comments

Comments
 (0)