mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19:22 -05:00
style: code style
This commit is contained in:
parent
449d927c3a
commit
5a710f724b
5 changed files with 25 additions and 16 deletions
|
@ -39,8 +39,6 @@ pub fn CheckboxItem(
|
|||
</Checkbox>
|
||||
}
|
||||
} else {
|
||||
view! {
|
||||
<Checkbox class value=(is_checked, checked.write_only()) />
|
||||
}
|
||||
view! { <Checkbox class value=(is_checked, checked.write_only())/> }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,16 @@ pub fn Layout(
|
|||
class=class_list![gen_class(position), class.map(| c | move || c.get())]
|
||||
style=move || style.as_ref().map(|s| s.get())
|
||||
>
|
||||
<Scrollbar content_class content_style=Signal::derive(move || format!("{} {}", sider_style.get().unwrap_or_default(), content_style.as_ref().map_or(String::new(), |s| s.get())))>
|
||||
<Scrollbar
|
||||
content_class
|
||||
content_style=Signal::derive(move || {
|
||||
format!(
|
||||
"{} {}",
|
||||
sider_style.get().unwrap_or_default(),
|
||||
content_style.as_ref().map_or(String::new(), |s| s.get()),
|
||||
)
|
||||
})
|
||||
>
|
||||
{children()}
|
||||
</Scrollbar>
|
||||
</div>
|
||||
|
|
|
@ -57,12 +57,7 @@ pub fn MessageProvider(
|
|||
each=move || message_list.get()
|
||||
key=|message| message.0
|
||||
children=move |message| {
|
||||
view! {
|
||||
<Message
|
||||
message
|
||||
on_close=handle_after_leave
|
||||
/>
|
||||
}
|
||||
view! { <Message message on_close=handle_after_leave/> }
|
||||
}
|
||||
/>
|
||||
|
||||
|
|
|
@ -281,8 +281,15 @@ pub fn Scrollbar(
|
|||
|
||||
<div class="thaw-scrollbar__container" ref=container_ref on:scroll=on_scroll>
|
||||
<div
|
||||
class=class_list!["thaw-scrollbar__content", content_class.map(|c| move || c.get())]
|
||||
style=move || format!("width: fit-content; {}", content_style.as_ref().map_or(String::new(), |s| s.get()))
|
||||
class=class_list![
|
||||
"thaw-scrollbar__content", content_class.map(| c | move || c.get())
|
||||
]
|
||||
style=move || {
|
||||
format!(
|
||||
"width: fit-content; {}",
|
||||
content_style.as_ref().map_or(String::new(), |s| s.get()),
|
||||
)
|
||||
}
|
||||
ref=content_ref
|
||||
>
|
||||
{children()}
|
||||
|
|
|
@ -216,7 +216,7 @@ fn Panel(
|
|||
}
|
||||
})
|
||||
.collect_view()}
|
||||
</Scrollbar>
|
||||
</Scrollbar>
|
||||
<div class="thaw-time-picker-panel__time-padding"></div>
|
||||
</div>
|
||||
<div class="thaw-time-picker-panel__time-minute" ref=minute_ref>
|
||||
|
@ -247,8 +247,8 @@ fn Panel(
|
|||
/>
|
||||
}
|
||||
})
|
||||
.collect_view()}
|
||||
</Scrollbar>
|
||||
.collect_view()}
|
||||
</Scrollbar>
|
||||
<div class="thaw-time-picker-panel__time-padding"></div>
|
||||
</div>
|
||||
<div class="thaw-time-picker-panel__time-second" ref=second_ref>
|
||||
|
@ -280,7 +280,7 @@ fn Panel(
|
|||
}
|
||||
})
|
||||
.collect_view()}
|
||||
</Scrollbar>
|
||||
</Scrollbar>
|
||||
<div class="thaw-time-picker-panel__time-padding"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue