We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d457217 commit b5d6870Copy full SHA for b5d6870
1 file changed
modules/gui.py
@@ -2235,7 +2235,7 @@ def draw_games_grid(self):
2235
padding = self.scaled(8)
2236
avail = imgui.get_content_region_available_width()
2237
column_count = globals.settings.grid_columns
2238
- while column_count > 1 and (cell_width := (avail - padding * 2 * column_count) / column_count) < min_cell_width:
+ while (cell_width := (avail - padding * 2 * column_count) / column_count) < min_cell_width and column_count > 1:
2239
column_count -= 1
2240
img_height = cell_width / globals.settings.cell_image_ratio
2241
imgui.push_style_var(imgui.STYLE_CELL_PADDING, (padding, padding))
0 commit comments