Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit 165830d

Browse files
committed
コミット忘れ
1 parent ee29f31 commit 165830d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/frontend/src/components/MkNotes.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ SPDX-License-Identifier: AGPL-3.0-only
2323
tag="div"
2424
>
2525
<template v-for="(note, i) in notes" :key="note.id">
26-
<div v-if="note._shouldInsertAd_" :class="[$style.noteWithAd, { '_gaps': !noGap }]">
26+
<div v-if="note._shouldInsertAd_" :class="[$style.noteWithAd, { '_gaps': !noGap }]" :data-scroll-anchor="note.id">
2727
<MkNote :class="$style.note" :note="note" :withHardMute="true"/>
2828
<div :class="$style.ad">
2929
<MkAd :preferForms="['horizontal', 'horizontal-big']"/>
3030
</div>
3131
</div>
32-
<MkNote v-else :class="$style.note" :note="note" :withHardMute="true"/>
32+
<MkNote :class="$style.note" :note="note" :withHardMute="true" :data-scroll-anchor="note.id"/>
3333
</template>
3434
</component>
3535
</template>

packages/frontend/src/pages/timeline.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,15 @@ import { miLocalStorage } from '@/local-storage.js';
5252
import { availableBasicTimelines, hasWithReplies, isAvailableBasicTimeline, isBasicTimeline, basicTimelineIconClass } from '@/timelines.js';
5353
import { prefer } from '@/preferences.js';
5454
import { useRouter } from '@/router.js';
55+
import { useScrollPositionKeeper } from '@/use/use-scroll-position-keeper.js';
5556
5657
provide('shouldOmitHeaderTitle', true);
5758
5859
const tlComponent = useTemplateRef('tlComponent');
5960
const rootEl = useTemplateRef('rootEl');
6061
62+
useScrollPositionKeeper(rootEl);
63+
6164
const router = useRouter();
6265
router.useListener('same', () => {
6366
top();

0 commit comments

Comments
 (0)