Skip to content

Commit

Permalink
fix: portions for snapshot view
Browse files Browse the repository at this point in the history
  • Loading branch information
edfloreshz authored and Eduardo Flores committed Nov 6, 2024
1 parent 8562df5 commit ebde502
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/pages/snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ impl Snapshots {
.iter()
.map(|snapshot| {
widget::settings::item_row(vec![
widget::text(&snapshot.name).width(Length::Fill).into(),
widget::text(snapshot.kind()).width(Length::Fill).into(),
widget::text(snapshot.created()).width(Length::Fill).into(),
widget::text(&snapshot.name)
.width(Length::FillPortion(2))
.into(),
widget::text(snapshot.kind())
.width(Length::FillPortion(1))
.into(),
widget::text(snapshot.created())
.width(Length::FillPortion(1))
.into(),
widget::row()
.push(widget::tooltip(
widget::button::icon(icons::get_handle(
Expand All @@ -61,7 +67,7 @@ impl Snapshots {
))
.align_y(cosmic::iced::Alignment::Center)
.spacing(spacing.space_xxs)
.width(Length::Fill)
.width(Length::FillPortion(1))
.into(),
])
.align_y(cosmic::iced::Alignment::Center)
Expand All @@ -84,10 +90,10 @@ impl Snapshots {
} else {
Some(
widget::row()
.push(heading_item(fl!("name"), Length::Fill))
.push(heading_item(fl!("type"), Length::Fill))
.push(heading_item(fl!("created"), Length::Fill))
.push(heading_item(fl!("actions"), Length::Fill))
.push(heading_item(fl!("name"), Length::FillPortion(2)))
.push(heading_item(fl!("type"), Length::FillPortion(1)))
.push(heading_item(fl!("created"), Length::FillPortion(1)))
.push(heading_item(fl!("actions"), Length::FillPortion(1)))
.padding([0, spacing.space_m]),
)
};
Expand Down

0 comments on commit ebde502

Please sign in to comment.