From dec7c4f722f2ac766b367fa5f1442a41f5e408b6 Mon Sep 17 00:00:00 2001 From: "Richard \"EpicKitty\" Bowey" Date: Fri, 26 Nov 2021 04:39:57 +0000 Subject: Implemented a rotate MFM (#8016) Co-authored-by: Richard Bowey --- packages/client/src/scripts/mfm-tags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/client/src/scripts') diff --git a/packages/client/src/scripts/mfm-tags.ts b/packages/client/src/scripts/mfm-tags.ts index 1b18210aa9..18e8d7038a 100644 --- a/packages/client/src/scripts/mfm-tags.ts +++ b/packages/client/src/scripts/mfm-tags.ts @@ -1 +1 @@ -export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'font', 'blur', 'rainbow', 'sparkle']; +export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'font', 'blur', 'rainbow', 'sparkle', 'rotate']; -- cgit v1.2.3-freya From 698e0d08a121a9a00e5c5f71ee44a276d4995f08 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 27 Nov 2021 18:29:23 +0900 Subject: fix(client): モバイルでタップしたときにツールチップが表示される問題を修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/client/src/os.ts | 10 ++++++++++ packages/client/src/scripts/use-tooltip.ts | 5 +++++ 2 files changed, 15 insertions(+) (limited to 'packages/client/src/scripts') diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 9eac06a5e3..48a558a363 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -12,6 +12,16 @@ import { resolve } from '@/router'; import { $i } from '@/account'; import { defaultStore } from '@/store'; +export let isScreenTouching = false; + +window.addEventListener('touchstart', () => { + isScreenTouching = true; +}, { passive: true }); + +window.addEventListener('touchend', () => { + isScreenTouching = false; +}, { passive: true }); + export const stream = markRaw(new Misskey.Stream(url, $i)); export const pendingApiRequestsCount = ref(0); diff --git a/packages/client/src/scripts/use-tooltip.ts b/packages/client/src/scripts/use-tooltip.ts index 2c0c36400d..89e6b1be9d 100644 --- a/packages/client/src/scripts/use-tooltip.ts +++ b/packages/client/src/scripts/use-tooltip.ts @@ -1,3 +1,4 @@ +import { isScreenTouching } from '@/os'; import { Ref, ref } from 'vue'; export function useTooltip(onShow: (showing: Ref) => void) { @@ -10,6 +11,10 @@ export function useTooltip(onShow: (showing: Ref) => void) { close(); if (!isHovering) return; + // iOS(Androidも?)では、要素をタップした直後に(おせっかいで)mouseoverイベントを発火させたりするため、その対策 + // これが無いと、画面に触れてないのにツールチップが出たりしてしまう + if (!isScreenTouching) return; + const showing = ref(true); onShow(showing); changeShowingState = () => { -- cgit v1.2.3-freya From f38b6a1806cce7760dafb8d3635ec9654f123df3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 2 Dec 2021 20:09:12 +0900 Subject: client: tweak ui --- packages/client/src/components/form-dialog.vue | 91 +++++++++++----------- .../client/src/components/reaction-tooltip.vue | 1 + .../src/components/reactions-viewer.details.vue | 1 + packages/client/src/components/ui/super-menu.vue | 2 +- packages/client/src/pages/admin/abuses.vue | 2 +- packages/client/src/pages/admin/emojis.vue | 4 +- packages/client/src/pages/admin/files.vue | 2 +- packages/client/src/pages/admin/users.vue | 2 +- packages/client/src/pages/announcements.vue | 2 +- packages/client/src/pages/channels.vue | 6 +- packages/client/src/pages/federation.vue | 2 +- packages/client/src/pages/follow-requests.vue | 2 +- packages/client/src/pages/gallery/index.vue | 8 +- packages/client/src/pages/gallery/post.vue | 2 +- packages/client/src/pages/my-antennas/index.vue | 22 +++--- packages/client/src/pages/my-clips/index.vue | 29 ++++--- packages/client/src/pages/my-groups/index.vue | 6 +- packages/client/src/pages/my-lists/index.vue | 22 +++--- packages/client/src/pages/my-lists/list.vue | 55 ++++++------- packages/client/src/pages/page.vue | 2 +- packages/client/src/pages/pages.vue | 66 +++++++++------- packages/client/src/pages/settings/apps.vue | 2 +- packages/client/src/pages/settings/index.vue | 2 +- packages/client/src/pages/settings/mute-block.vue | 4 +- packages/client/src/pages/settings/security.vue | 2 +- .../client/src/pages/settings/theme.manage.vue | 32 ++++---- packages/client/src/pages/user/clips.vue | 2 +- packages/client/src/pages/user/follow-list.vue | 2 +- packages/client/src/pages/user/gallery.vue | 2 +- packages/client/src/pages/user/pages.vue | 2 +- packages/client/src/pages/user/reactions.vue | 2 +- packages/client/src/scripts/use-tooltip.ts | 3 +- packages/client/src/ui/visitor/kanban.vue | 2 +- 33 files changed, 200 insertions(+), 186 deletions(-) (limited to 'packages/client/src/scripts') diff --git a/packages/client/src/components/form-dialog.vue b/packages/client/src/components/form-dialog.vue index 27810d315a..fbf49af5d2 100644 --- a/packages/client/src/components/form-dialog.vue +++ b/packages/client/src/components/form-dialog.vue @@ -12,66 +12,67 @@ - - - + + +
+ +
+