Skip to content

Commit

Permalink
fix: Use flex in infinite_list example
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 9, 2025
1 parent 9cb0f1f commit 8f5db55
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/infinite_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ fn app() -> Element {
rsx!(
ScrollView {
scroll_controller,
spacing: "8",
padding: "8",
spacing: "12",
padding: "12",
for i in 0..cards() {
rect {
key: "{i}",
width: "100%",
spacing: "8",
width: "fill",
spacing: "12",
content: "flex",
direction: "horizontal",
RandomImage {}
RandomImage {}
Expand All @@ -65,7 +66,7 @@ fn RandomImage() -> Element {

rsx!(
rect {
width: "50%",
width: "flex",
height: "300",
overflow: "clip",
corner_radius: "8",
Expand Down

0 comments on commit 8f5db55

Please sign in to comment.