aboutsummaryrefslogtreecommitdiff
path: root/src/components/InputCopyable.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-05-14 21:26:18 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-05-14 22:30:23 +0200
commit77f2efc0b92847c3b1198446f4b520ecb2263164 (patch)
tree942ea5ffd922dbe7a9913e235a4fae17b117c925 /src/components/InputCopyable.vue
parentaad8d84e13ce31c1b7c1cbb930fb8bd4c0abe13a (diff)
downloadit-tools-77f2efc0b92847c3b1198446f4b520ecb2263164.tar.gz
it-tools-77f2efc0b92847c3b1198446f4b520ecb2263164.tar.zst
it-tools-77f2efc0b92847c3b1198446f4b520ecb2263164.zip
refactor(ui): replaced some n-input with c-input-text
Diffstat (limited to 'src/components/InputCopyable.vue')
-rw-r--r--src/components/InputCopyable.vue15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/components/InputCopyable.vue b/src/components/InputCopyable.vue
index eaf29c8..cf7a42a 100644
--- a/src/components/InputCopyable.vue
+++ b/src/components/InputCopyable.vue
@@ -1,21 +1,20 @@
<template>
- <n-input v-model:value="value">
+ <c-input-text v-model:value="value">
<template #suffix>
<n-tooltip trigger="hover">
<template #trigger>
- <c-button circle variant="text" @click="onCopyClicked">
- <n-icon :component="ContentCopyFilled" />
+ <c-button circle variant="text" size="small" @click="onCopyClicked">
+ <icon-mdi-content-copy />
</c-button>
</template>
{{ tooltipText }}
</n-tooltip>
</template>
- </n-input>
+ </c-input-text>
</template>
<script setup lang="ts">
import { useVModel, useClipboard } from '@vueuse/core';
-import { ContentCopyFilled } from '@vicons/material';
import { ref } from 'vue';
const props = defineProps<{ value: string }>();
@@ -35,9 +34,3 @@ function onCopyClicked() {
}, 2000);
}
</script>
-
-<style scoped>
-::v-deep(.n-input-wrapper) {
- padding-right: 5px;
-}
-</style>