assistant: Show regenerate button only on hover (#15972)

https://github.com/user-attachments/assets/92006a45-5b4e-4ec4-a056-9ef7dd76394d



Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>
This commit is contained in:
Bennet Bo Fenner 2024-08-08 13:08:57 +02:00 committed by GitHub
parent 76d58ac295
commit fea8f16df0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View file

@ -96,6 +96,7 @@ impl Render for Toolbar {
let has_right_items = self.right_items().count() > 0;
v_flex()
.group("toolbar")
.p(Spacing::Large.rems(cx))
.when(has_left_items || has_right_items, |this| {
this.gap(Spacing::Large.rems(cx))