Skip to content

Commit

Permalink
Hero gallery clamp per row value
Browse files Browse the repository at this point in the history
  • Loading branch information
makscee committed May 4, 2024
1 parent dbb18f2 commit 49d527b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/hero_gallery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl HeroGallery {
TopBottomPanel::bottom("gallery controls").show(ctx, |ui| {
ui.horizontal(|ui| {
ui.label("per row:");
DragValue::new(&mut data.per_row).ui(ui);
DragValue::new(&mut data.per_row).clamp_range(1..=50).ui(ui);
});
});
if !data.eq(&pd.hero_gallery_data) {
Expand Down

0 comments on commit 49d527b

Please sign in to comment.