Move channels panel into collab and rename to collab panel

remove contacts popover and add to collab panel
This commit is contained in:
Mikayla Maki 2023-07-24 14:39:16 -07:00
parent fe5db3035f
commit 7f9df6dd24
No known key found for this signature in database
18 changed files with 95 additions and 292 deletions

View file

@ -47,6 +47,10 @@ pub trait Element<V: View>: 'static {
type LayoutState;
type PaintState;
fn view_name(&self) -> &'static str {
V::ui_name()
}
fn layout(
&mut self,
constraint: SizeConstraint,
@ -267,8 +271,8 @@ impl<V: View, E: Element<V>> AnyElementState<V> for ElementState<V, E> {
| ElementState::PostLayout { mut element, .. }
| ElementState::PostPaint { mut element, .. } => {
let (size, layout) = element.layout(constraint, view, cx);
debug_assert!(size.x().is_finite());
debug_assert!(size.y().is_finite());
debug_assert!(size.x().is_finite(), "Element for {:?} had infinite x size after layout", element.view_name());
debug_assert!(size.y().is_finite(), "Element for {:?} had infinite x size after layout", element.view_name());
result = size;
ElementState::PostLayout {