Use Nexus mod name when available #159
1 changed files with 1 additions and 5 deletions
|
@ -307,13 +307,11 @@ fn build_mod_details_info() -> impl Widget<State> {
|
||||||
// Force the label to take up the entire details' pane width,
|
// Force the label to take up the entire details' pane width,
|
||||||
// so that we can center-align it.
|
// so that we can center-align it.
|
||||||
.expand_width()
|
.expand_width()
|
||||||
.lens(ModInfo::name.in_arc());
|
.lens(NexusInfoLens::new(NexusInfo::name, ModInfo::name).in_arc());
|
||||||
let summary = Label::raw()
|
let summary = Label::raw()
|
||||||
.with_line_break_mode(LineBreaking::WordWrap)
|
.with_line_break_mode(LineBreaking::WordWrap)
|
||||||
.lens(NexusInfoLens::new(NexusInfo::summary, ModInfo::summary).in_arc());
|
.lens(NexusInfoLens::new(NexusInfo::summary, ModInfo::summary).in_arc());
|
||||||
|
|
||||||
// TODO: Image/icon?
|
|
||||||
|
|
||||||
let version_line = Label::dynamic(|info: &Arc<ModInfo>, _| {
|
let version_line = Label::dynamic(|info: &Arc<ModInfo>, _| {
|
||||||
let author = info
|
let author = info
|
||||||
.nexus
|
.nexus
|
||||||
|
@ -366,8 +364,6 @@ fn build_mod_details_info() -> impl Widget<State> {
|
||||||
.must_fill_main_axis(true)
|
.must_fill_main_axis(true)
|
||||||
.cross_axis_alignment(CrossAxisAlignment::Start)
|
.cross_axis_alignment(CrossAxisAlignment::Start)
|
||||||
.with_child(image)
|
.with_child(image)
|
||||||
// .with_spacer(4.)
|
|
||||||
// .with_flex_child(details, 1.)
|
|
||||||
.with_child(details)
|
.with_child(details)
|
||||||
},
|
},
|
||||||
Flex::column,
|
Flex::column,
|
||||||
|
|
Loading…
Add table
Reference in a new issue