From 1368f58b96436fe3dbf045c7f98b392483316f86 Mon Sep 17 00:00:00 2001 From: MattyaDaihuku <87429435+MattyaDaihuku@users.noreply.github.com> Date: Sun, 17 Nov 2024 05:21:58 +0000 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20MkAvatar=E5=86=85=E3=81=ABMkIn?= =?UTF-8?q?stanceIcon=E3=81=AE=E5=86=85=E5=AE=B9=E3=82=92=E5=90=AB?= =?UTF-8?q?=E3=82=81=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/MkInstanceIcon.vue | 54 ------------------- packages/frontend/src/components/MkNote.vue | 2 +- .../src/components/MkNoteDetailed.vue | 3 +- .../src/components/global/MkAvatar.vue | 42 ++++++++++----- 4 files changed, 32 insertions(+), 69 deletions(-) delete mode 100644 packages/frontend/src/components/MkInstanceIcon.vue diff --git a/packages/frontend/src/components/MkInstanceIcon.vue b/packages/frontend/src/components/MkInstanceIcon.vue deleted file mode 100644 index 791f8ffa00..0000000000 --- a/packages/frontend/src/components/MkInstanceIcon.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 0f6a23cadc..10fd98f15e 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index e0473dce5e..19ce5405f6 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -63,7 +63,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
@@ -295,6 +295,7 @@ const translating = ref(false); const parsed = appearNote.value.text ? mfm.parse(appearNote.value.text) : null; const urls = parsed ? extractUrlFromMfm(parsed).filter((url) => appearNote.value.renote?.url !== url && appearNote.value.renote?.uri !== url) : null; const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance); +const showInstanceIcon = (defaultStore.state.instanceTicker === 'alwaysIcon') || (defaultStore.state.instanceTicker === 'remoteIcon' && appearNote.value.user.instance); const conversation = ref([]); const replies = ref([]); const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || appearNote.value.userId === $i?.id); diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index b4aba8fa7f..ea0f1fe9ec 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -23,6 +23,9 @@ SPDX-License-Identifier: AGPL-3.0-only
+
+ +
-