Skip to content

Commit fe78589

Browse files
authored
report(tooltip): fix tooltip positioning in devtools (#16844)
1 parent 5667f51 commit fe78589

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

report/assets/styles.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,8 +1883,8 @@ details[open] .lh-clump-toggletext--hide { display: block;}
18831883
*/
18841884
@media screen and (max-width: 535px) {
18851885
.lh-tooltip {
1886-
min-width: 45vw;
1887-
padding: 3vw;
1886+
min-width: 45cqi;
1887+
padding: 3cqi;
18881888
}
18891889
}
18901890

@@ -1893,8 +1893,8 @@ details[open] .lh-clump-toggletext--hide { display: block;}
18931893
*/
18941894
@container lh-container (max-width: 535px) {
18951895
.lh-tooltip {
1896-
min-width: 45vw;
1897-
padding: 3vw;
1896+
min-width: 45cqi;
1897+
padding: 3cqi;
18981898
}
18991899
}
19001900

@@ -2030,6 +2030,10 @@ details[open] .lh-clump-toggletext--hide { display: block;}
20302030
left: 6px;
20312031
}
20322032

2033+
.lh-meta__item:hover .lh-tooltip {
2034+
right: auto;
2035+
left: 6px;
2036+
}
20332037
/**
20342038
* This media query is a temporary fallback for browsers that do not support `@container query`.
20352039
* TODO: remove this media query when `@container query` is fully supported by browsers

report/renderer/components.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)