Use browser-native tooltips (#2189)

Replace the `floating-vue` library with the browser-native tooltips.
Reduces `dist` size by 45KB.
This commit is contained in:
qwerty287
2023-08-20 15:07:27 +02:00
committed by GitHub
parent d00932bedd
commit 35baaa8224
7 changed files with 6 additions and 62 deletions

View File

@@ -54,14 +54,9 @@
<span class="truncate">{{ duration }}</span>
</div>
<div class="flex space-x-2 items-center min-w-0">
<div class="flex space-x-2 items-center min-w-0" :title="created">
<Icon name="since" />
<Tooltip>
<span>{{ since }}</span>
<template #popper>
<span class="font-bold">{{ $t('repo.pipeline.created') }}</span> {{ created }}
</template>
</Tooltip>
<span>{{ since }}</span>
</div>
</div>
</div>
@@ -69,7 +64,6 @@
</template>
<script lang="ts" setup>
import { Tooltip } from 'floating-vue';
import { toRef } from 'vue';
import Icon from '~/components/atomic/Icon.vue';