Skip to content

Commit 5ede7bc

Browse files
committed
style: leptosfmt
1 parent bafa1f9 commit 5ede7bc

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

thaw/src/drawer/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ pub fn Drawer(
113113
>
114114
<div
115115
class=class_list![
116-
"thaw-drawer", move || format!("thaw-drawer--placement-{}", placement
117-
.get()), class.map(| c | move || c.get())
116+
"thaw-drawer", move || format!("thaw-drawer--placement-{}",
117+
placement.get()), class.map(| c | move || c.get())
118118
]
119119

120120
style=move || display.get()

thaw/src/layout/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pub fn Layout(
5858
)
5959
})
6060
>
61+
6162
{children()}
6263
</Scrollbar>
6364
</div>

thaw/src/modal/mod.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn Modal(
6464
});
6565

6666
view! {
67-
<Teleport immediate=show.signal()>
67+
<Teleport immediate=show.signal()>
6868
<FocusTrap disabled=!close_on_esc active=show.signal() on_esc>
6969
<div
7070
class="thaw-modal-container"
@@ -73,7 +73,13 @@ pub fn Modal(
7373
>
7474
<Scrollbar
7575
content_style="min-height: 100%; display: flex;"
76-
style=Signal::derive(move || if displayed.get() { String::new() } else { String::from("display: none") })
76+
style=Signal::derive(move || {
77+
if displayed.get() {
78+
String::new()
79+
} else {
80+
String::from("display: none")
81+
}
82+
})
7783
comp_ref=scrollbar_ref
7884
>
7985
<CSSTransition

thaw/src/scrollbar/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,14 @@ pub fn Scrollbar(
291291
class=class_list![
292292
"thaw-scrollbar__content", content_class.map(| c | move || c.get())
293293
]
294+
294295
style=move || {
295296
format!(
296297
"width: fit-content; {}",
297298
content_style.as_ref().map_or(String::new(), |s| s.get()),
298299
)
299300
}
301+
300302
ref=content_ref
301303
>
302304
{children()}

0 commit comments

Comments
 (0)