Commit fc5bdd9
authored
fix(timeline): position tooltip above cursor to prevent overlap (#758)
The timeline tooltip was positioned at/below the cursor, overlapping
and obscuring the timeline bars underneath. Two changes:
1. CSS: Added transform: translateY(-100%) on .vis-tooltip to shift
the tooltip above the cursor instead of below it
2. Changed overflowMethod from 'cap' to 'flip' so the tooltip flips
to the other side when it would overflow the timeline boundary,
rather than being clipped
Fixes ActivityWatch/activitywatch#11811 parent 8d32ea9 commit fc5bdd9
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| |||
83 | 92 | | |
84 | 93 | | |
85 | 94 | | |
86 | | - | |
| 95 | + | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
| |||
0 commit comments