Merge remote-tracking branch 'misskey/develop' into future-2024-03-14

This commit is contained in:
dakkar 2024-03-14 16:28:56 +00:00
commit 9478fc0095
57 changed files with 1082 additions and 81 deletions

View file

@ -30,13 +30,13 @@ const self = props.url.startsWith(local);
const attr = self ? 'to' : 'href';
const target = self ? null : '_blank';
const el = ref<HTMLElement>();
const el = ref<HTMLElement | { $el: HTMLElement }>();
useTooltip(el, (showing) => {
os.popup(defineAsyncComponent(() => import('@/components/MkUrlPreviewPopup.vue')), {
showing,
url: props.url,
source: el.value,
source: el.value instanceof HTMLElement ? el.value : el.value?.$el,
}, {}, 'closed');
});
</script>