Skip to content

Commit

Permalink
Use wrapping for scan result filter controls
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Sep 22, 2024
1 parent b6eb84c commit 0067872
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* GUI: Updated to the latest version of [Iced](https://github.com/iced-rs/iced).
If the GUI fails to load, Ludusavi will log the error info.
* GUI: Modals now display on top of the app with a transparent background.
* GUI: On the backup and restore screens,
the filter controls now wrap depending on the window size.

## v0.25.0 (2024-08-18)

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 11 additions & 14 deletions src/gui/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,21 +188,18 @@ impl FilterComponent {
manifests.clone(),
Message::EditedSearchFilterManifest,
)
}),
})
.push_if(manifests.len() > 2, || {
template_with_label(
&self.manifest,
TRANSLATOR.source_field(),
FilterKind::Manifest,
manifests,
Message::EditedSearchFilterManifest,
)
})
.wrap(),
)
.push_if(manifests.len() > 2, || {
Row::new()
.padding(padding::left(20).right(0))
.spacing(15)
.align_y(Alignment::Center)
.push(template_with_label(
&self.manifest,
TRANSLATOR.source_field(),
FilterKind::Manifest,
manifests,
Message::EditedSearchFilterManifest,
))
})
.into(),
)
}
Expand Down

0 comments on commit 0067872

Please sign in to comment.