diff --git a/src/plugins/vuetify/defaults.ts b/src/plugins/vuetify/defaults.ts index 452427e2..ddf2eb21 100644 --- a/src/plugins/vuetify/defaults.ts +++ b/src/plugins/vuetify/defaults.ts @@ -31,7 +31,7 @@ export default { elevation: 0, }, VList: { - activeColor: 'primary', + color: 'primary', }, VPagination: { activeColor: 'primary', diff --git a/src/styles/styles.scss b/src/styles/styles.scss index ac9c7bfd..8d65e53d 100644 --- a/src/styles/styles.scss +++ b/src/styles/styles.scss @@ -3,6 +3,10 @@ @tailwind components; @tailwind utilities; +:root{ + font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; +} + #nprogress .bar { background: rgb(var(--v-theme-primary)) !important; top: env(safe-area-inset-top) !important; diff --git a/src/util/dom.ts b/src/util/dom.ts index d113007b..ad5504ce 100644 --- a/src/util/dom.ts +++ b/src/util/dom.ts @@ -4,3 +4,18 @@ export function removeEl(selector: string) { el?.parentNode?.removeChild(el) } } + +export function useDefer(maxFrameCount = 1) { + const frameCount = ref(0) + const refreshFrameCount = () => { + requestAnimationFrame(() => { + frameCount.value++ + if (frameCount.value < maxFrameCount) + refreshFrameCount() + }) + } + refreshFrameCount() + return function (showInFrameCount: number) { + return frameCount.value >= showInFrameCount + } +} diff --git a/src/views/discover/TorrentCardListView.vue b/src/views/discover/TorrentCardListView.vue index 73f24b22..156b0508 100644 --- a/src/views/discover/TorrentCardListView.vue +++ b/src/views/discover/TorrentCardListView.vue @@ -1,6 +1,8 @@ @@ -216,12 +222,9 @@ watchEffect(() => {
- +
+ +
diff --git a/src/views/discover/TorrentRowListView.vue b/src/views/discover/TorrentRowListView.vue index 50e0910e..aaa51a0a 100644 --- a/src/views/discover/TorrentRowListView.vue +++ b/src/views/discover/TorrentRowListView.vue @@ -1,4 +1,5 @@