improv(preview_view): set max height for previews

This sets the max height of the previews to THUMBNAIL_SIZE, to match text previews.
Prevents the previews from becoming too large when the desktop details window is resized horizontally.
This commit is contained in:
Vukašin Vojinović 2025-02-07 01:44:01 +01:00
parent 9ca5bfaf19
commit 51f41ac9ee
2 changed files with 16 additions and 15 deletions

View file

@ -1274,7 +1274,9 @@ impl App {
}
fn desktop_view_options(&self) -> Element<Message> {
let cosmic_theme::Spacing { space_l, .. } = theme::active().cosmic().spacing;
let cosmic_theme::Spacing {
space_m, space_l, ..
} = theme::active().cosmic().spacing;
let config = self.config.desktop;
let mut children = Vec::new();
@ -1349,6 +1351,7 @@ impl App {
widget::column::with_children(children)
.padding([0, space_l, space_l, space_l])
.spacing(space_m)
.into()
}