Limit number of participants shown in channel face piles

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-08-14 17:11:03 -07:00
parent 13982fe2f4
commit 71454ba27c
4 changed files with 43 additions and 13 deletions

View file

@ -68,6 +68,7 @@ impl<V: View> Element<V> for FacePile<V> {
for face in self.faces.iter_mut().rev() {
let size = face.size();
origin_x -= size.x();
let origin_y = origin_y + (bounds.height() - size.y()) / 2.0;
scene.paint_layer(None, |scene| {
face.paint(scene, vec2f(origin_x, origin_y), visible_bounds, view, cx);
});