fix(list_column): set 32px minimum height for each list item
This commit is contained in:
parent
9bfb159977
commit
701638009d
4 changed files with 7 additions and 6 deletions
|
|
@ -40,7 +40,12 @@ impl<'a, Message: 'static> ListColumn<'a, Message> {
|
|||
self.children.push(divider::horizontal::light().into());
|
||||
}
|
||||
|
||||
self.children.push(item.into());
|
||||
// Ensure a minimum height of 32.
|
||||
let container = crate::widget::container(item)
|
||||
.min_height(32)
|
||||
.align_y(iced::alignment::Vertical::Center);
|
||||
|
||||
self.children.push(container.into());
|
||||
self
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue