Skip to content

Commit 0305500

Browse files
authored
fix vertical position of tooltip on HUD (#6436)
regression after dark mode fixes: old version (desired behavior): ![image](https://github.com/user-attachments/assets/2d0f48b0-9d6b-4603-9e74-9ad3bbe109d7) broken version: ![image](https://github.com/user-attachments/assets/d88dea9a-26fd-4865-ba5b-662a053ad43d) after this PR: <img width="405" alt="image" src="https://github.com/user-attachments/assets/2b1f9a3d-da8d-4b5c-a37e-610683b1dbeb" />
1 parent 17536fd commit 0305500

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

torchci/components/TooltipTarget.module.css

+9-14
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,28 @@
1919
pointer-events: none;
2020
}
2121

22-
.content {
23-
background-color: var(--tooltip-bg);
22+
.content,
23+
.contentPinned {
2424
padding: 5px 8px;
2525
border-radius: 6px;
2626
cursor: default;
2727
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
2828
pointer-events: auto;
29-
position: relative;
29+
position: absolute;
3030
z-index: 1;
3131
max-width: 95vw;
32-
min-height: 3em;
3332
margin-bottom: 10px;
3433
width: max-content;
34+
top: 15px;
35+
left: 15px;
36+
}
37+
38+
.content {
39+
background-color: var(--tooltip-bg);
3540
}
3641

3742
.contentPinned {
3843
background-color: var(--tooltip-pinned-bg);
39-
padding: 5px 8px;
40-
border-radius: 6px;
41-
cursor: default;
42-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
43-
pointer-events: auto;
44-
position: relative;
45-
z-index: 1;
46-
max-width: 95vw;
47-
margin-bottom: 10px;
48-
width: max-content;
4944
}
5045

5146
.content pre {

0 commit comments

Comments
 (0)