zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.98k stars 2.7k forks source link

Extensions tab no scroll bar and no keyboard navigation #14052

Open J-Siu opened 2 months ago

J-Siu commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

On MacOS:

  1. Click "Zed" in menu bar, then click "Extensions"
  2. Press Page Up, Page Down, up/down arrow key <-- Extension list does not move
  3. Use scroll wheel on mouse <-- Extension list does move, but no scroll bar

Environment

Zed: v0.142.6 (Zed) OS: macOS 14.5.0 Memory: 24 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Screenshot for step 3 above:

Screenshot 2024-07-10 at 07 40 11

If applicable, attach your Zed.log file to this issue.

Zed.log


nirui commented 1 month ago

Zed version 0.145.1 is still hitting this issue. Through as mentioned above, it is still possible to scroll up/down the list with the mouse wheel/touch pad gesture.

But other widgets/GUI controls are handling scrollbar very well. I wonder how the mechanism was implemented (I'm not good at reading Rust code). Based on #4798, I guess it's a case by case thing?

(Side note: you can also scroll the terminal mentioned in #4798 with mouse wheel etc)

Maybe consider making scrollbar as a part of a standard container component, like how the web browser implemented it (i.e. if the content of inner widget exceeded the size of it's parent container, the container may display a scrollbar based on it's style settings).