Use new children approach for Toolbar

This commit is contained in:
Marshall Bowers 2023-10-12 15:47:26 -04:00
parent 30979caf25
commit 24bab48043
3 changed files with 68 additions and 77 deletions

View file

@ -29,10 +29,6 @@ impl<S: 'static + Send + Sync + Clone> AssistantPanel<S> {
fn render(&mut self, view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {
let theme = theme(cx);
struct PanelPayload {
pub scroll_state: ScrollState,
}
Panel::new(self.scroll_state.clone())
.children(vec![div()
.flex()