Skip to content

Commit

Permalink
improv(list_column): match container padding to list spacing
Browse files Browse the repository at this point in the history
This ensures that the vertical space between the top/bottom list items and the edges of the container remains the same as the spacing between items, when the default `list_column` spacing is changed.
  • Loading branch information
git-f0x authored and mmstick committed Sep 3, 2024
1 parent b2ecb41 commit 71cd25c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/list/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl<'a, Message: 'static> ListColumn<'a, Message> {
.spacing(self.spacing)
.padding(self.padding)
.apply(super::container)
.padding([self.spacing, 0])
.style(self.style)
.into()
}
Expand Down

0 comments on commit 71cd25c

Please sign in to comment.