Skip to content

Commit

Permalink
Fix sector visualization on small farms (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Jan 25, 2024
1 parent d572337 commit 159297e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/running/farm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl FactoryComponent for FarmWidget {
self.sectors_grid.clone() -> gtk::GridView {
remove_css_class: "view",
set_max_columns: MAX_SECTORS_PER_ROW,
set_min_columns: MIN_SECTORS_PER_ROW.min(self.sectors.len() as u32),
set_min_columns: MIN_SECTORS_PER_ROW.min(self.sectors.len() as u32 - 1),
set_sensitive: false,
},
},
Expand Down

0 comments on commit 159297e

Please sign in to comment.