Show "sign in" prompt when opening the chat panel while signed out

This commit is contained in:
Antonio Scandurra
2021-09-07 12:27:43 +02:00
parent a8011fcde4
commit 09bb42c168
5 changed files with 55 additions and 11 deletions
+2 -4
View File
@@ -37,7 +37,7 @@ impl Sidebar {
side,
items: Default::default(),
active_item_ix: None,
width: Rc::new(RefCell::new(200.)),
width: Rc::new(RefCell::new(220.)),
}
}
@@ -123,9 +123,7 @@ impl Sidebar {
)
.on_after_layout({
let width = self.width.clone();
move |size, _| {
*width.borrow_mut() = size.x();
}
move |size, _| *width.borrow_mut() = size.x()
})
.boxed(),
)