aboutsummaryrefslogtreecommitdiff
path: root/src/components/InputCopyable.vue
diff options
context:
space:
mode:
authorGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-10-14 18:24:54 +0200
committerGravatar GitHub <noreply@github.com> 2023-10-14 16:24:54 +0000
commit025f556023c29f8f31dc00870c80a9d790bbb2f4 (patch)
tree2886353373cc17b24f97c31f6e8880fd335c443c /src/components/InputCopyable.vue
parent2d2dffb14a2b51f931934055b5a59e51a070ff93 (diff)
downloadit-tools-025f556023c29f8f31dc00870c80a9d790bbb2f4.tar.gz
it-tools-025f556023c29f8f31dc00870c80a9d790bbb2f4.tar.zst
it-tools-025f556023c29f8f31dc00870c80a9d790bbb2f4.zip
refactor(ui): switched naive tooltip components to custom ones (#661)
Diffstat (limited to 'src/components/InputCopyable.vue')
-rw-r--r--src/components/InputCopyable.vue13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/components/InputCopyable.vue b/src/components/InputCopyable.vue
index ed67895..a69a039 100644
--- a/src/components/InputCopyable.vue
+++ b/src/components/InputCopyable.vue
@@ -13,14 +13,11 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to cli
<template>
<c-input-text v-model:value="value">
<template #suffix>
- <n-tooltip trigger="hover">
- <template #trigger>
- <c-button circle variant="text" size="small" @click="copy()">
- <icon-mdi-content-copy />
- </c-button>
- </template>
- {{ tooltipText }}
- </n-tooltip>
+ <c-tooltip :tooltip="tooltipText">
+ <c-button circle variant="text" size="small" @click="copy()">
+ <icon-mdi-content-copy />
+ </c-button>
+ </c-tooltip>
</template>
</c-input-text>
</template>