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
2
iced
2
iced
|
|
@ -1 +1 @@
|
||||||
Subproject commit 74e9a62b391e93fec8aeb67200df493c103bf3c5
|
Subproject commit 90f904fe28fba26805aaac2c2c5dd1514607242e
|
||||||
|
|
@ -40,7 +40,12 @@ impl<'a, Message: 'static> ListColumn<'a, Message> {
|
||||||
self.children.push(divider::horizontal::light().into());
|
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
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
// Copyright 2022 System76 <info@system76.com>
|
|
||||||
// SPDX-License-Identifier: MPL-2.0
|
|
||||||
|
|
@ -2,10 +2,8 @@
|
||||||
// SPDX-License-Identifier: MPL-2.0
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
pub mod column;
|
pub mod column;
|
||||||
// mod item;
|
|
||||||
|
|
||||||
pub use self::column::{list_column, ListColumn};
|
pub use self::column::{list_column, ListColumn};
|
||||||
// pub use self::item::{ListItem, list_item};
|
|
||||||
|
|
||||||
use crate::widget::Container;
|
use crate::widget::Container;
|
||||||
use crate::Element;
|
use crate::Element;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue