[gnome-software/1381-category-page-loading-state-doesn-t-match-final-layout: 52/52] gs-category-page: Change number of placeholder cards
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1381-category-page-loading-state-doesn-t-match-final-layout: 52/52] gs-category-page: Change number of placeholder cards
- Date: Fri, 28 Jan 2022 09:56:44 +0000 (UTC)
commit 1f6c5f735eaa7a371df2462e48a216995585b613
Author: Milan Crha <mcrha redhat com>
Date: Fri Jan 28 10:54:28 2022 +0100
gs-category-page: Change number of placeholder cards
Make it divisible by 3 (which is the max of the cards per row) and
make it close to the expected count, thus the view does not change
that much when the content is loaded.
src/gs-category-page.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-category-page.c b/src/gs-category-page.c
index 53ac275a4..44121d836 100644
--- a/src/gs-category-page.c
+++ b/src/gs-category-page.c
@@ -381,12 +381,12 @@ gs_category_page_load_category (GsCategoryPage *self)
gtk_widget_show (self->top_carousel);
gs_category_page_add_placeholders (self, GTK_FLOW_BOX (self->category_detail_box),
MIN (30, gs_category_get_size (self->subcategory)));
- gs_category_page_add_placeholders (self, GTK_FLOW_BOX (self->recently_updated_flow_box), 8);
+ gs_category_page_add_placeholders (self, GTK_FLOW_BOX (self->recently_updated_flow_box),
MAX_RECENTLY_UPDATED_APPS);
if (featured_subcat != NULL) {
/* set up the placeholders as having the featured category is a good
* indicator that there will be featured apps */
- gs_category_page_add_placeholders (self, GTK_FLOW_BOX (self->featured_flow_box), 4);
+ gs_category_page_add_placeholders (self, GTK_FLOW_BOX (self->featured_flow_box), 6);
gtk_widget_show (self->top_carousel);
} else {
gs_widget_remove_all (self->featured_flow_box, (GsRemoveFunc) gtk_flow_box_remove);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]