diff options
| author | 果物リン <nassii74@gmail.com> | 2025-11-07 11:27:08 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-07 11:27:08 +0900 |
| commit | 0a67d6f1a045c339dcdc0bb632fe359f16784a03 (patch) | |
| tree | 58240e38b3cce1e4db32a975cd06033c54783818 /packages/frontend/src/components/MkNotesTimeline.vue | |
| parent | enhance(frontend): 投稿フォームのヒントを追加 (#16712) (diff) | |
| download | misskey-0a67d6f1a045c339dcdc0bb632fe359f16784a03.tar.gz misskey-0a67d6f1a045c339dcdc0bb632fe359f16784a03.tar.bz2 misskey-0a67d6f1a045c339dcdc0bb632fe359f16784a03.zip | |
fix(frontend): 一部のページでもっと見るが自動で行われないバグの修正 (#16754)
* 一部のページでもっと見るが自動で行われないバグの修正
* fix(frontend): MkPagination で UI アニメーションオフ時に自動ロードが動作しない問題を修正
Transition コンポーネントの mode="out-in" が、アニメーション無効時でも
適用されており、IntersectionObserver の検出に干渉していた問題を修正。
アニメーション有効時のみ mode="out-in" を適用するように変更。
Co-authored-by: 果物リン <fruitriin@users.noreply.github.com>
* enhance: ユーザーの設定値にかかわらず無限スクロールをオフにできるオプションを追加
* Update Changelog
* MkNotesTimeline.vueにforceDisableInfiniteScrollを追加、 note.vueの前方向の読み込みでこれを有効
* fix lint
* refactor
---------
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: 果物リン <fruitriin@users.noreply.github.com>
Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/components/MkNotesTimeline.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNotesTimeline.vue | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/frontend/src/components/MkNotesTimeline.vue b/packages/frontend/src/components/MkNotesTimeline.vue index d94cf3924c..b03bf6d09f 100644 --- a/packages/frontend/src/components/MkNotesTimeline.vue +++ b/packages/frontend/src/components/MkNotesTimeline.vue @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only --> <template> -<MkPagination :paginator="paginator" :direction="direction" :autoLoad="autoLoad" :pullToRefresh="pullToRefresh" :withControl="withControl"> +<MkPagination :paginator="paginator" :direction="direction" :autoLoad="autoLoad" :pullToRefresh="pullToRefresh" :withControl="withControl" :forceDisableInfiniteScroll="forceDisableInfiniteScroll"> <template #empty><MkResult type="empty" :text="i18n.ts.noNotes"/></template> <template #default="{ items: notes }"> @@ -40,26 +40,23 @@ SPDX-License-Identifier: AGPL-3.0-only <script lang="ts" setup generic="T extends IPaginator<Misskey.entities.Note>"> import * as Misskey from 'misskey-js'; +import type { MkPaginationOptions } from '@/components/MkPagination.vue'; import type { IPaginator } from '@/utility/paginator.js'; import MkNote from '@/components/MkNote.vue'; import MkPagination from '@/components/MkPagination.vue'; import { i18n } from '@/i18n.js'; -import { globalEvents, useGlobalEvent } from '@/events.js'; +import { useGlobalEvent } from '@/events.js'; import { isSeparatorNeeded, getSeparatorInfo } from '@/utility/timeline-date-separate.js'; -const props = withDefaults(defineProps<{ +const props = withDefaults(defineProps<MkPaginationOptions & { paginator: T; noGap?: boolean; - - direction?: 'up' | 'down' | 'both'; - autoLoad?: boolean; - pullToRefresh?: boolean; - withControl?: boolean; }>(), { autoLoad: true, direction: 'down', pullToRefresh: true, withControl: true, + forceDisableInfiniteScroll: false, }); useGlobalEvent('noteDeleted', (noteId) => { |