fix: URL preview popup for local URL appears in the upper left corner (#13555)

This commit is contained in:
anatawa12 2024-03-12 13:50:24 +09:00 committed by GitHub
parent b280faa8e7
commit 6d9c234cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 5 deletions

View file

@ -49,7 +49,7 @@ if (props.showUrlPreview) {
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');
});
}