aboutsummaryrefslogtreecommitdiff
path: root/src/components/InputCopyable.vue
diff options
context:
space:
mode:
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>