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:
Vukašin Vojinović 2024-09-02 15:54:48 +02:00 committed by Michael Murphy
parent b2ecb41098
commit 71cd25c06d

View file

@ -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()
}