From 71cd25c06d230a742ebf660297478b732cf1882b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= Date: Mon, 2 Sep 2024 15:54:48 +0200 Subject: [PATCH] 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. --- src/widget/list/column.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widget/list/column.rs b/src/widget/list/column.rs index 69b3db40..6de4517f 100644 --- a/src/widget/list/column.rs +++ b/src/widget/list/column.rs @@ -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() }