From 159297e9e68cb6b6f95d9602993d6773777d96e3 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Thu, 25 Jan 2024 23:37:24 +0200 Subject: [PATCH] Fix sector visualization on small farms (again) --- src/frontend/running/farm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/running/farm.rs b/src/frontend/running/farm.rs index d91e3662..f86bb8bd 100644 --- a/src/frontend/running/farm.rs +++ b/src/frontend/running/farm.rs @@ -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, }, },