Skip to content

Commit

Permalink
Merge pull request #92 from nazar-pc/fix-sector-visualization-small-f…
Browse files Browse the repository at this point in the history
…arms

Fix sector visualization on small farms (again)
  • Loading branch information
nazar-pc authored Jan 26, 2024
2 parents d572337 + 159297e commit 31f0247
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 31f0247

Please sign in to comment.