Commit d1a93fc
Gutter Hover tooltip (#5872)
* WIP: gutter hover tooltip based on hover tooltip
* Refactor gutter tooltip to reuse hover tooltip functionality and align position logic.
* Adjust gutter tooltip offsets and ensure absolute positioning.
* refactor gutter tooltip handling: unify hide method, remove unused code, and improve positioning logic.
* remove tooltipFollowsMouse option in default gutter handler (for now)
* remove `tooltipFollowsMouse` option and refactor gutter tooltip logic to improve handling and positioning.
* fix tests
* refactor gutter tooltip constructor and positioning logic for improved alignment and consistency.
* fix tooltip positioning logic
* refactor gutter tooltip positioning logic to enhance alignment, reuse anchor metrics, and improve code clarity.
* fix more tests
* refactor gutter tooltip: improve type definitions, remove unused constants, replace `const` with `var` for consistency, and adjust destroy logic.
* refactor tooltip logic: improve $setPosition method, update handling of markers, and enhance code readability.
* refactor tooltip references: rename `tooltip` to `$tooltip`, update type definitions, and adjust related logic for consistency and clarity.
* cleanup
* Use position fixed to prevent tooltip being cropped to parent node
reverts #5853
---------
Co-authored-by: nightwing <[email protected]>1 parent 0e72f76 commit d1a93fc
File tree
16 files changed
+390
-352
lines changed- src
- autocomplete
- css
- ext
- keyboard
- lib
- mouse
- test
- types
16 files changed
+390
-352
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | 383 | | |
385 | 384 | | |
386 | 385 | | |
| |||
1629 | 1628 | | |
1630 | 1629 | | |
1631 | 1630 | | |
1632 | | - | |
1633 | 1631 | | |
1634 | 1632 | | |
1635 | 1633 | | |
| |||
1638 | 1636 | | |
1639 | 1637 | | |
1640 | 1638 | | |
| 1639 | + | |
1641 | 1640 | | |
1642 | 1641 | | |
1643 | 1642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | 284 | | |
286 | 285 | | |
287 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | 373 | | |
377 | 374 | | |
378 | 375 | | |
379 | | - | |
380 | | - | |
| 376 | + | |
381 | 377 | | |
382 | 378 | | |
383 | | - | |
| 379 | + | |
384 | 380 | | |
385 | 381 | | |
386 | 382 | | |
387 | 383 | | |
| 384 | + | |
388 | 385 | | |
389 | 386 | | |
390 | 387 | | |
391 | 388 | | |
392 | 389 | | |
393 | | - | |
| 390 | + | |
394 | 391 | | |
395 | 392 | | |
396 | 393 | | |
| |||
401 | 398 | | |
402 | 399 | | |
403 | 400 | | |
| 401 | + | |
| 402 | + | |
404 | 403 | | |
405 | 404 | | |
406 | 405 | | |
| |||
472 | 471 | | |
473 | 472 | | |
474 | 473 | | |
475 | | - | |
| 474 | + | |
476 | 475 | | |
477 | 476 | | |
478 | 477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3121 | 3121 | | |
3122 | 3122 | | |
3123 | 3123 | | |
3124 | | - | |
3125 | 3124 | | |
3126 | 3125 | | |
3127 | 3126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | 234 | | |
239 | 235 | | |
240 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 188 | + | |
| 189 | + | |
195 | 190 | | |
196 | 191 | | |
197 | 192 | | |
| |||
213 | 208 | | |
214 | 209 | | |
215 | 210 | | |
216 | | - | |
| 211 | + | |
217 | 212 | | |
218 | 213 | | |
219 | 214 | | |
| |||
0 commit comments