mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-27 00:08:42 +00:00
This has been something we've wanted to do for a long time since docs aside thus far have been hard-anchored either at the top or bottom of the container that their trigger is sitting in. This PR introduces the change so that they're centered with their trigger, regardless of whether it's on a context menu or picker, by including a canvas element in both the container and the trigger to calculate where the docs aside should precisely sit on. Here's the result: https://github.com/user-attachments/assets/8147ad05-1927-4353-991d-405631de67d0 Note that at the moment, docs aside are only visible through _hovering_, and ideally, they should be available on both hover and selection (keyboard nav). But I'll leave that for later. Release Notes: - N/A |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE-GPL | ||