From 04fe0e6227515a4d726a5d5612ed2a26cc54cc7a Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Wed, 28 Aug 2024 12:38:52 +0900
Subject: [PATCH] =?UTF-8?q?=E3=81=86=E3=81=83=EF=BD=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packages/frontend-embed/src/pages/user-timeline.vue | 13 +------------
packages/frontend-embed/src/ui.vue | 3 +++
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/packages/frontend-embed/src/pages/user-timeline.vue b/packages/frontend-embed/src/pages/user-timeline.vue
index a4f9afb791..b72bdf8157 100644
--- a/packages/frontend-embed/src/pages/user-timeline.vue
+++ b/packages/frontend-embed/src/pages/user-timeline.vue
@@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
@@ -57,8 +57,6 @@ import { misskeyApi } from '@/misskey-api.js';
import { i18n } from '@/i18n.js';
import { instance } from '@/instance.js';
import { url, instanceName } from '@/config.js';
-import { scrollToTop } from '@/to-be-shared/scroll.js';
-import { isLink } from '@/scripts/is-link.js';
import { defaultEmbedParams } from '@/embed-page.js';
const props = defineProps<{
@@ -78,15 +76,6 @@ const loading = ref(true);
const notesEl = shallowRef | null>(null);
-function top(ev: MouseEvent) {
- const target = ev.target as HTMLElement | null;
- if (target && isLink(target)) return;
-
- if (notesEl.value) {
- scrollToTop(notesEl.value.$el as HTMLElement, { behavior: 'smooth' });
- }
-}
-
misskeyApi('users/show', {
username: props.username,
}).then(res => {
diff --git a/packages/frontend-embed/src/ui.vue b/packages/frontend-embed/src/ui.vue
index a9c285973d..3c51468e95 100644
--- a/packages/frontend-embed/src/ui.vue
+++ b/packages/frontend-embed/src/ui.vue
@@ -19,6 +19,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:class="$style.routerViewContainer"
>
+
+
@@ -29,6 +31,7 @@ import type { ParsedEmbedParams } from '@/embed-page.js';
import { postMessageToParentWindow } from '@/post-message.js';
import { defaultEmbedParams } from '@/embed-page.js';
import EmNotePage from '@/pages/note.vue';
+import EmUserTimelinePage from '@/pages/user-timeline.vue';
const page = location.pathname.split('/')[2];
const contentId = location.pathname.split('/')[3];