Introduce margin between grid item title(s) and details
This commit is contained in:
parent
5a615ad3a3
commit
313a492ee7
2 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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]]"),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue