Introduce margin between grid item title(s) and details

This commit is contained in:
Reinout Meliesie 2026-01-22 14:13:34 +01:00
commit 313a492ee7
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
2 changed files with 2 additions and 0 deletions

View file

@ -97,6 +97,7 @@ impl FactoryComponent for FilmGridItem {
set_spacing: 20, set_spacing: 20,
set_halign: Align::Center, set_halign: Align::Center,
set_orientation: Orientation::Horizontal, set_orientation: Orientation::Horizontal,
set_margin_top: 10,
#[name="release_date"] #[name="release_date"]
Label { Label {

View file

@ -94,6 +94,7 @@ impl FactoryComponent for SeriesGridItem {
#[name="release_date"] #[name="release_date"]
Label { Label {
set_margin_top: 10,
set_label: self.series.first_release_date.split('-').next() set_label: self.series.first_release_date.split('-').next()
.expect("series first release date format should be YYYY[-MM[-DD]]"), .expect("series first release date format should be YYYY[-MM[-DD]]"),
}, },