1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 21:35:38 +02:00
This commit is contained in:
syuilo
2025-08-28 11:15:17 +09:00
parent 25c2007f59
commit 3e24419981
8 changed files with 21 additions and 19 deletions

View File

@@ -57,6 +57,7 @@ import { i18n } from '@/i18n.js';
import { prefer } from '@/preferences.js';
import { openAccountMenu as openAccountMenu_ } from '@/accounts.js';
import { $i } from '@/i.js';
import { getHTMLElementOrNull } from '@/utility/get-dom-node-or-null.js';
const WINDOW_THRESHOLD = 1400;
@@ -72,8 +73,11 @@ const otherNavItemIndicated = computed<boolean>(() => {
});
async function more(ev: MouseEvent) {
const target = getHTMLElementOrNull(ev.currentTarget ?? ev.target);
if (!target) return;
const { dispose } = await os.popupAsyncWithDialog(import('@/components/MkLaunchPad.vue').then(x => x.default), {
anchorElement: ev.currentTarget ?? ev.target,
anchorElement: target,
anchor: { x: 'center', y: 'bottom' },
}, {
closed: () => dispose(),