From f0d9f68061c71a36504e21d7411562802623fa55 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 24 Mar 2023 13:54:59 -0700 Subject: [PATCH] facelist: use clustergrid Signed-off-by: Varun Patil --- src/components/ClusterGrid.vue | 6 +++++- src/components/modal/FaceList.vue | 35 ++++++++++++------------------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/src/components/ClusterGrid.vue b/src/components/ClusterGrid.vue index cd6e0dad..6af03a31 100644 --- a/src/components/ClusterGrid.vue +++ b/src/components/ClusterGrid.vue @@ -37,6 +37,10 @@ export default defineComponent({ type: Array, required: true, }, + maxSize: { + type: Number, + default: 200, + }, link: { type: Boolean, default: true, @@ -59,7 +63,7 @@ export default defineComponent({ resize() { const w = (this.$refs.recycler).$el.clientWidth; - this.gridItems = Math.max(Math.floor(w / 200), 3); + this.gridItems = Math.max(Math.floor(w / this.maxSize), 3); this.itemSize = Math.floor(w / this.gridItems); }, }, diff --git a/src/components/modal/FaceList.vue b/src/components/modal/FaceList.vue index 4e3f0165..1068e568 100644 --- a/src/components/modal/FaceList.vue +++ b/src/components/modal/FaceList.vue @@ -11,11 +11,13 @@ -
-
- -
-
+
{{ t("memories", "Loading …") }}
@@ -25,7 +27,7 @@