fix: added tooltip

This commit is contained in:
Shariq Ansari 2024-10-31 14:29:23 +05:30
parent 8371262336
commit 5ee2717f45
2 changed files with 10 additions and 5 deletions

View File

@ -39,7 +39,7 @@
<div v-if="data[field.name]" class="truncate">
{{ data[field.name] }}
</div>
<div v-else class="text-base leading-5 text-gray-500">
<div v-else class="text-base leading-5 text-gray-500 truncate">
{{ field.placeholder }}
</div>
<template #suffix>
@ -110,7 +110,7 @@
/>
<FormControl
v-else-if="field.type === 'select'"
class="form-control cursor-pointer [&_select]:cursor-pointer"
class="form-control cursor-pointer [&_select]:cursor-pointer truncate"
type="select"
v-model="data[field.name]"
:options="field.options"

View File

@ -89,9 +89,13 @@
<FeatherIcon name="trash-2" class="h-4 w-4" />
</template>
</Button>
<Button size="sm" @click="openWebsite">
<FeatherIcon name="link" class="h-4 w-4" />
</Button>
<Tooltip :text="__('Open website')">
<div>
<Button @click="openWebsite">
<FeatherIcon name="link" class="h-4 w-4" />
</Button>
</div>
</Tooltip>
</div>
</div>
</template>
@ -219,6 +223,7 @@ import {
createToast,
} from '@/utils'
import {
Tooltip,
Breadcrumbs,
Avatar,
FileUploader,