From 9a825f449d1fa2eec892c9cc6d6ac31ea0708c79 Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Wed, 28 Feb 2024 23:03:02 +0800 Subject: [PATCH] fix(ui): fix missing discussion link when preview is unavailable (#88) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(ui): fix missing discussion link when preview is unavailable * fix: hide invalid link preview in Editor * Update apps/ui/src/components/Ui/LinkPreview.vue Co-authored-by: Wiktor Tkaczyński * Update apps/ui/src/components/Ui/LinkPreview.vue Co-authored-by: Less * chore: add more typing * fix: prevent default link flashing while fetching preview --------- Co-authored-by: Wiktor Tkaczyński Co-authored-by: Less --- apps/ui/src/components/Ui/LinkPreview.vue | 67 +++++++++++++++++------ apps/ui/src/views/Proposal/Overview.vue | 2 +- 2 files changed, 50 insertions(+), 19 deletions(-) diff --git a/apps/ui/src/components/Ui/LinkPreview.vue b/apps/ui/src/components/Ui/LinkPreview.vue index 163868454..83e9cf413 100644 --- a/apps/ui/src/components/Ui/LinkPreview.vue +++ b/apps/ui/src/components/Ui/LinkPreview.vue @@ -1,13 +1,28 @@ - diff --git a/apps/ui/src/views/Proposal/Overview.vue b/apps/ui/src/views/Proposal/Overview.vue index 98f153cbc..118952a91 100644 --- a/apps/ui/src/views/Proposal/Overview.vue +++ b/apps/ui/src/views/Proposal/Overview.vue @@ -185,7 +185,7 @@ async function handleCancelClick() { Discussion - +