zed/crates/assistant
gcp-cherry-pick-bot[bot] ea02a95cf0
editor: Hide horizontal scrollbar if not visible (cherry-pick #23337) (#23339)
Cherry-picked editor: Hide horizontal scrollbar if not visible (#23337)

This PR fixes two visual issues, that were caused by the fact that we
were always painting the horizontal scrollbar even if there is no
horizontal scrolling possible

Obscuring deleted lines when using the inline assistant:


https://github.com/user-attachments/assets/f8460c3f-403e-40a6-8622-65268ba2d875

Cutting off text even when horizontal scrolling is not possible:


https://github.com/user-attachments/assets/23c909f7-1c23-4693-8edc-40a2f089d4a8

This issue was only present in some themes (e.g. Nord, Catpuccin)


Closes #22716

Release Notes:

- Fixed an issue where horizontal scrollbars of editors would always be
painted (even if there is no horizontal scrolling to be done)

Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
2025-01-20 10:48:36 +01:00
..
src editor: Hide horizontal scrollbar if not visible (cherry-pick #23337) (#23339) 2025-01-20 10:48:36 +01:00
Cargo.toml Migrate more events to telemetry::event (#22178) 2025-01-14 21:00:24 +00:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00