1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 00:45:50 +02:00
This commit is contained in:
syuilo
2025-08-25 13:46:22 +09:00
parent 2b9706a68b
commit 7924daf7f8
17 changed files with 31 additions and 31 deletions

View File

@@ -31,7 +31,7 @@ import { prefer } from '@/preferences.js';
const props = withDefaults(defineProps<{
showing: boolean;
targetElement?: HTMLElement;
anchorElement?: HTMLElement;
x?: number;
y?: number;
text?: string;
@@ -58,7 +58,7 @@ const zIndex = os.claimZIndex('high');
function setPosition() {
if (el.value == null) return;
const data = calcPopupPosition(el.value, {
anchorElement: props.targetElement,
anchorElement: props.anchorElement,
direction: props.direction,
align: 'center',
innerMargin: props.innerMargin,