From 484e4604bdf97a8eeb23d17c9d054699ad7697a0 Mon Sep 17 00:00:00 2001 From: JuLi0n21 Date: Thu, 12 Mar 2026 22:57:40 +0100 Subject: [PATCH] reformat, add data refresh button --- frontend/src/components/ActiveSearchList.vue | 20 ++++--- .../src/components/ActiveSearchSkeleton.vue | 25 +++++--- frontend/src/components/CollectionItem.vue | 14 +++-- .../src/components/CollectionListItem.vue | 5 +- frontend/src/components/SongItem.vue | 18 +++--- frontend/src/views/CollectionView.vue | 21 +++---- frontend/src/views/MeView.vue | 26 ++++---- frontend/src/views/RecentView.vue | 6 +- frontend/src/views/SearchView.vue | 60 ++++++++----------- 9 files changed, 101 insertions(+), 94 deletions(-) diff --git a/frontend/src/components/ActiveSearchList.vue b/frontend/src/components/ActiveSearchList.vue index 33ed99e..c10343d 100644 --- a/frontend/src/components/ActiveSearchList.vue +++ b/frontend/src/components/ActiveSearchList.vue @@ -28,12 +28,11 @@ function highlightText(text: string, searchterm: string) { @@ -98,7 +100,7 @@ onBeforeUnmount(() => { \ No newline at end of file + diff --git a/frontend/src/components/CollectionListItem.vue b/frontend/src/components/CollectionListItem.vue index dfb3f40..70f79ee 100644 --- a/frontend/src/components/CollectionListItem.vue +++ b/frontend/src/components/CollectionListItem.vue @@ -8,12 +8,13 @@ const props = defineProps<{ collection: CollectionPreview }>(); diff --git a/frontend/src/views/CollectionView.vue b/frontend/src/views/CollectionView.vue index d3ebafb..f6fc610 100644 --- a/frontend/src/views/CollectionView.vue +++ b/frontend/src/views/CollectionView.vue @@ -33,12 +33,12 @@ const fetchCollections = async () => { const container = containerRef.value; if (container) { const noScrollbarYet = container.scrollHeight <= container.clientHeight + 0; - + const mightBeMoreData = newItems.length === limit.value; if (noScrollbarYet && mightBeMoreData) { - isLoading.value = false; - return await fetchCollections(); + isLoading.value = false; + return await fetchCollections(); } } } @@ -66,17 +66,12 @@ onMounted(async () => {