Skip to content

Commit 70ba622

Browse files
committed
fix widget gallery text input
1 parent 91bbac2 commit 70ba622

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/widget-gallery/src/clipboard.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ pub fn clipboard_view() -> impl IntoView {
1616
form_item(
1717
"Copy from input",
1818
h_stack((
19-
text_input(text1),
19+
text_input(text1).style(|s| s.width_full().min_width(150)),
2020
button("Copy").action(move || {
2121
let _ = Clipboard::set_contents(text1.get());
2222
}),
23-
)),
23+
))
24+
.style(|s| s.gap(5)),
2425
),
2526
form_item(
2627
"Get clipboard",

0 commit comments

Comments
 (0)