add app layout shell to the layout crate
This commit is contained in:
@@ -175,6 +175,8 @@ impl RenderOnce for Sidebar {
|
||||
.clone()
|
||||
.unwrap_or_else(|| SharedString::from(self.id.to_string()));
|
||||
|
||||
let id_text = self.id.to_string();
|
||||
|
||||
// Entry paint reads the theme through this borrow.
|
||||
let children: Vec<AnyElement> = entries
|
||||
.iter()
|
||||
@@ -194,6 +196,7 @@ impl RenderOnce for Sidebar {
|
||||
|
||||
div()
|
||||
.id(self.id)
|
||||
.debug_selector(move || format!("sidebar-{id_text}"))
|
||||
.flex()
|
||||
.flex_col()
|
||||
.gap_0p5()
|
||||
|
||||
Reference in New Issue
Block a user