mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 05:45:32 +02:00
refactor
This commit is contained in:
@@ -39,10 +39,12 @@ const el = ref<HTMLElement | { $el: HTMLElement }>();
|
||||
|
||||
if (isEnabledUrlPreview.value) {
|
||||
useTooltip(el, (showing) => {
|
||||
const anchorElement = el.value instanceof HTMLElement ? el.value : el.value?.$el;
|
||||
if (anchorElement == null) return;
|
||||
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkUrlPreviewPopup.vue')), {
|
||||
showing,
|
||||
url: props.url,
|
||||
anchorElement: el.value instanceof HTMLElement ? el.value : el.value?.$el,
|
||||
anchorElement: anchorElement,
|
||||
}, {
|
||||
closed: () => dispose(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user