ci: Fix lint
This commit is contained in:
parent
d48a6d4b43
commit
bf8eb3f459
1 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ impl RenderOnce for SidebarToggleButton {
|
||||||
|
|
||||||
impl<E: Collapsible + IntoElement> RenderOnce for Sidebar<E> {
|
impl<E: Collapsible + IntoElement> RenderOnce for Sidebar<E> {
|
||||||
fn render(mut self, cx: &mut WindowContext) -> impl IntoElement {
|
fn render(mut self, cx: &mut WindowContext) -> impl IntoElement {
|
||||||
let is_collaped = self.is_collapsed;
|
let is_collapsed = self.is_collapsed;
|
||||||
v_flex()
|
v_flex()
|
||||||
.id("sidebar")
|
.id("sidebar")
|
||||||
.w(self.width)
|
.w(self.width)
|
||||||
|
|
@ -200,7 +200,7 @@ impl<E: Collapsible + IntoElement> RenderOnce for Sidebar<E> {
|
||||||
.child(
|
.child(
|
||||||
v_flex().id("content").flex_1().min_h_0().child(
|
v_flex().id("content").flex_1().min_h_0().child(
|
||||||
div()
|
div()
|
||||||
.children(self.content.into_iter().map(|c| c.collapsed(is_collaped)))
|
.children(self.content.into_iter().map(|c| c.collapsed(is_collapsed)))
|
||||||
.gap_2()
|
.gap_2()
|
||||||
.scrollable(self.view_id, ScrollbarAxis::Vertical),
|
.scrollable(self.view_id, ScrollbarAxis::Vertical),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue