assistant2: Add ChatNotice component (#11262)

This PR adds a new `ChatNotice` component for displaying notices within
the assistant.

We will be able to use this for allowing the user to confirm a project
index request.

<img width="518" alt="Screenshot 2024-05-01 at 2 41 31 PM"
src="https://github.com/zed-industries/zed/assets/1486634/3beaeeaf-6046-4284-ac0a-4248e1f9ac20">

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-05-01 14:51:28 -04:00 committed by GitHub
parent 0858e3f0e2
commit 3dc5d48e0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 102 additions and 3 deletions

View file

@ -118,7 +118,7 @@ impl RenderOnce for ChatMessageHeader {
h_flex()
.gap_3()
.map(|this| {
let avatar_size = rems(20.0 / 16.0);
let avatar_size = rems_from_px(20.);
if let Some(avatar_uri) = avatar_uri {
this.child(Avatar::new(avatar_uri).size(avatar_size))
} else {