fix(list_column): set 32px minimum height for each list item

This commit is contained in:
Michael Aaron Murphy 2024-09-23 20:46:55 +02:00
parent 9bfb159977
commit 701638009d
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
4 changed files with 7 additions and 6 deletions

2
iced

@ -1 +1 @@
Subproject commit 74e9a62b391e93fec8aeb67200df493c103bf3c5
Subproject commit 90f904fe28fba26805aaac2c2c5dd1514607242e

View file

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

View file

@ -1,2 +0,0 @@
// Copyright 2022 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0

View file

@ -2,10 +2,8 @@
// SPDX-License-Identifier: MPL-2.0
pub mod column;
// mod item;
pub use self::column::{list_column, ListColumn};
// pub use self::item::{ListItem, list_item};
use crate::widget::Container;
use crate::Element;