From 372a0a2c3f346bdf4c960b64090f8bc63290272e Mon Sep 17 00:00:00 2001 From: mx03 Date: Tue, 25 Jan 2022 12:10:51 +0100 Subject: [PATCH 1/2] Fix: Group cover does not use full width --- client/components/covers/GroupCover.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/components/covers/GroupCover.vue b/client/components/covers/GroupCover.vue index 541d72f1..40a858f2 100644 --- a/client/components/covers/GroupCover.vue +++ b/client/components/covers/GroupCover.vue @@ -302,6 +302,8 @@ export default { } this.noValidCovers = false + validCovers = validCovers.slice(0, 30); + var coverWidth = this.width var widthPer = this.width if (validCovers.length > 1) { @@ -324,10 +326,6 @@ export default { var img = await this.buildCoverImg(validCovers[i], coverWidth, offsetLeft, zIndex, validCovers.length === 1) outerdiv.appendChild(img) coverImageEls.push(img) - - if(coverImageEls.length >= 30) { - break; - } } if (this.showCoverFan) { From 6b476b84b2e465cb688e42d0e4367fa00eaa49ec Mon Sep 17 00:00:00 2001 From: mx03 Date: Thu, 27 Jan 2022 23:27:18 +0100 Subject: [PATCH 2/2] Update GroupCover.vue Groupcover limit 10 --- client/components/covers/GroupCover.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/covers/GroupCover.vue b/client/components/covers/GroupCover.vue index 40a858f2..a4c43eab 100644 --- a/client/components/covers/GroupCover.vue +++ b/client/components/covers/GroupCover.vue @@ -302,7 +302,7 @@ export default { } this.noValidCovers = false - validCovers = validCovers.slice(0, 30); + validCovers = validCovers.slice(0, 10); var coverWidth = this.width var widthPer = this.width @@ -353,4 +353,4 @@ export default { if (this.coverDiv) this.coverDiv.remove() } } - \ No newline at end of file +