Make follower avatars smaller (#6724)
This PR makes the avatars of followers in a facepile smaller than the leader's avatar. <img width="227" alt="Screenshot 2024-01-25 at 1 42 14 PM" src="https://github.com/zed-industries/zed/assets/1486634/defc22b4-4ae1-4d63-a0d8-53e3ca8cce04"> Release Notes: - Adjusted the size of follower avatars to be smaller than the leader. Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
e9edad1d51
commit
6103f67875
3 changed files with 13 additions and 9 deletions
|
@ -343,9 +343,11 @@ impl ChatPanel {
|
|||
this.pt_3().child(
|
||||
h_flex()
|
||||
.text_ui_sm()
|
||||
.child(div().absolute().child(
|
||||
Avatar::new(message.sender.avatar_uri.clone()).size(cx.rem_size()),
|
||||
))
|
||||
.child(
|
||||
div().absolute().child(
|
||||
Avatar::new(message.sender.avatar_uri.clone()).size(rems(1.)),
|
||||
),
|
||||
)
|
||||
.child(
|
||||
div()
|
||||
.pl(cx.rem_size() + px(6.0))
|
||||
|
|
|
@ -542,7 +542,9 @@ impl CollabTitlebarItem {
|
|||
})?
|
||||
.clone();
|
||||
|
||||
Some(Avatar::new(follower.avatar_uri.clone()))
|
||||
Some(div().mt(-px(4.)).child(
|
||||
Avatar::new(follower.avatar_uri.clone()).size(rems(0.75)),
|
||||
))
|
||||
},
|
||||
))
|
||||
.children(if extra_count > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue