From efc0fb4f1938a63a5909b27191cf204d7ec80e47 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Tue, 17 Dec 2024 15:12:20 +0100 Subject: [PATCH] feat(ui): make Link with item render similarly to Button with icon --- front/src/components/ui/Link.vue | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/front/src/components/ui/Link.vue b/front/src/components/ui/Link.vue index 64caa704a..be5e2f76a 100644 --- a/front/src/components/ui/Link.vue +++ b/front/src/components/ui/Link.vue @@ -13,6 +13,8 @@ const { to, icon, inline, round, ...otherProps } = defineProps { return typeof to === 'string' && to.startsWith('http') }) + +const isIconOnly = computed(() => !!icon)