Reduce column size

This commit is contained in:
Jeremy Soller 2024-02-13 12:49:37 -07:00
parent db485798da
commit 81dcd6c3eb
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -920,7 +920,8 @@ impl Tab {
let cosmic_theme::Spacing { space_xxs, .. } = core.system_theme().cosmic().spacing;
//TODO: make adaptive?
let column_width = Length::Fixed(200.0);
let modified_width = Length::Fixed(200.0);
let size_width = Length::Fixed(100.0);
let mut children: Vec<Element<_>> = Vec::new();
@ -931,10 +932,10 @@ impl Tab {
.into(),
//TODO: do not show modified column when in the trash
widget::text::heading(fl!("modified"))
.width(column_width)
.width(modified_width)
.into(),
widget::text::heading(fl!("size"))
.width(column_width)
.width(size_width)
.into(),
])
.align_items(Alignment::Center)
@ -1003,8 +1004,8 @@ impl Tab {
.into()
},
widget::text(item.name.clone()).width(Length::Fill).into(),
widget::text(modified_text).width(column_width).into(),
widget::text(size_text).width(column_width).into(),
widget::text(modified_text).width(modified_width).into(),
widget::text(size_text).width(size_width).into(),
])
.align_items(Alignment::Center)
.spacing(space_xxs),