improv(list_column): match container padding to list spacing
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.
This commit is contained in:
parent
b2ecb41098
commit
71cd25c06d
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ impl<'a, Message: 'static> ListColumn<'a, Message> {
|
||||||
.spacing(self.spacing)
|
.spacing(self.spacing)
|
||||||
.padding(self.padding)
|
.padding(self.padding)
|
||||||
.apply(super::container)
|
.apply(super::container)
|
||||||
|
.padding([self.spacing, 0])
|
||||||
.style(self.style)
|
.style(self.style)
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue