From dda19697d6f036c2c6e8a053cd987fb50069fb69 Mon Sep 17 00:00:00 2001 From: QuentinHsu Date: Sun, 2 Jun 2024 22:18:18 +0800 Subject: [PATCH 1/2] fix: the links data loading on the mobile page did not trigger --- components/dashboard/links/Index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index a1c076a..a9f5b5a 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -22,7 +22,7 @@ async function getLinks() { const { isLoading } = useInfiniteScroll( document, getLinks, - { distance: 10, interval: 1000, canLoadMore: () => !listComplete }, + { distance: 150, interval: 1000, canLoadMore: () => !listComplete }, ) function updateLinkList(link, type) { @@ -59,5 +59,11 @@ function updateLinkList(link, type) { > +
+ No more +
From 3ff84f61cb41e0b0d1ce0cfc69907867a15ccc57 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Tue, 4 Jun 2024 18:59:18 +0800 Subject: [PATCH 2/2] feat: Add Laptop icon to theme switcher and improve style --- components/SwitchTheme.vue | 24 ++++++++++++++++++------ components/layouts/Header.vue | 2 +- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/components/SwitchTheme.vue b/components/SwitchTheme.vue index ab7f968..d473016 100644 --- a/components/SwitchTheme.vue +++ b/components/SwitchTheme.vue @@ -1,5 +1,5 @@ @@ -9,10 +9,10 @@ const colorMode = useColorMode() @@ -21,13 +21,25 @@ const colorMode = useColorMode() align="end" class="min-w-min" > - + + Light - + + Dark - + + System diff --git a/components/layouts/Header.vue b/components/layouts/Header.vue index 7997e32..04c56fb 100644 --- a/components/layouts/Header.vue +++ b/components/layouts/Header.vue @@ -71,7 +71,7 @@ const showMenu = ref(false) class="w-5 h-5 mr-1" /> GitHub - +