Skip to content

Commit

Permalink
chore: Simplify clock.rs example
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 11, 2025
1 parent f3312ea commit 6e25342
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions examples/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ fn app() -> Element {
cross_align: "center",
rect {
position: "absolute",
position_left: "0",
position_top: "0",
Dropdown {
value: time_zone(),
ScrollView {
Expand All @@ -71,23 +69,23 @@ fn app() -> Element {
DropdownItem {
value: i,
onpress: move |_| time_zone.set(i),
label {"UTC {negative_add_zero(i as i64)}:00"}
label { "UTC {negative_add_zero(i as i64)}:00" }
}
}
}
}
}
rect {
corner_radius: "10",
main_align: "center",
corner_radius: "16",
padding: "12",
background: "rgb(10, 90, 255)",
min_width: "500",
width: "90%",
height: "200",
main_align: "center",
cross_align: "center",
label {
font_family: "Consolas",
text_align: "center",
font_size: "100",
color: "white",
"{time}"
}
}
Expand Down

0 comments on commit 6e25342

Please sign in to comment.