[gnome-software: 1/2] gs-overview-page: Change number of tiles from 9 to 12




commit eea474ac819aa0312c172ed949ab4ab12c6f8602
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Aug 17 12:07:25 2021 +0100

    gs-overview-page: Change number of tiles from 9 to 12
    
    12 is divisible by 2 and 3, so forms even 2-column and 3-column layouts.
    9 didn’t form even 2-column layouts when the page was narrow.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Fixes: #1389

 src/gs-overview-page.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index 4f0ead523..7b8bad9f2 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -21,7 +21,9 @@
 #include "gs-common.h"
 #include "gs-summary-tile.h"
 
-#define N_TILES                                        9
+/* Chosen as it has 2 and 3 as factors, so will form an even 2-column and
+ * 3-column layout. */
+#define N_TILES 12
 
 struct _GsOverviewPage
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]