From 788d4ede6fedc885bf5b3a1229124c9358aa4555 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:28:34 +0900 Subject: [PATCH] tweak button style --- .../frontend-embed/src/components/EmError.vue | 2 +- .../frontend-embed/src/components/EmNote.vue | 18 +------------ .../src/components/EmNoteDetailed.vue | 2 +- .../src/components/EmNoteSimple.vue | 3 ++- .../src/components/EmNoteSub.vue | 2 +- .../src/components/EmPagination.vue | 10 ++++++- .../src/components/EmSubNoteContent.vue | 3 ++- packages/frontend-embed/src/style.scss | 27 +++++++++++++++---- 8 files changed, 39 insertions(+), 28 deletions(-) diff --git a/packages/frontend-embed/src/components/EmError.vue b/packages/frontend-embed/src/components/EmError.vue index 8588668e47..d376b29a7f 100644 --- a/packages/frontend-embed/src/components/EmError.vue +++ b/packages/frontend-embed/src/components/EmError.vue @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only diff --git a/packages/frontend-embed/src/components/EmNote.vue b/packages/frontend-embed/src/components/EmNote.vue index 1b5d3db4bf..1263175474 100644 --- a/packages/frontend-embed/src/components/EmNote.vue +++ b/packages/frontend-embed/src/components/EmNote.vue @@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- +

@@ -63,13 +63,6 @@ SPDX-License-Identifier: AGPL-3.0-only :enableEmojiMenu="!true" :enableEmojiMenuReaction="true" /> -
- -
- {{ i18n.tsx.translatedFrom({ x: translation.sourceLang }) }}: - -
-
@@ -125,7 +118,6 @@ import EmA from '@/components/EmA.vue'; import EmAvatar from '@/components/EmAvatar.vue'; import EmUserName from '@/components/EmUserName.vue'; import EmTime from '@/components/EmTime.vue'; -import EmLoading from '@/components/EmLoading.vue'; import { userPage } from '@/utils.js'; import { i18n } from '@/i18n.js'; import { shouldCollapsed } from '@/to-be-shared/collapsed.js'; @@ -146,28 +138,20 @@ const emit = defineEmits<{ (ev: 'removeReaction', emoji: string): void; }>(); -const inTimeline = inject('inTimeline', false); const inChannel = inject('inChannel', null); -const currentClip = inject | null>('currentClip', null); const note = ref((props.note)); const isRenote = Misskey.note.isPureRenote(note.value); const rootEl = shallowRef(); -const menuButton = shallowRef(); -const renoteButton = shallowRef(); const renoteTime = shallowRef(); -const reactButton = shallowRef(); -const clipButton = shallowRef(); const appearNote = computed(() => getAppearNote(note.value)); const showContent = ref(false); const parsed = computed(() => appearNote.value.text ? mfm.parse(appearNote.value.text) : null); const isLong = shouldCollapsed(appearNote.value, []); const collapsed = ref(appearNote.value.cw == null && isLong); const isDeleted = ref(false); -const translation = ref(null); -const translating = ref(false);