Limit number of participants shown in channel face piles
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
13982fe2f4
commit
71454ba27c
4 changed files with 43 additions and 13 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue