auto refresh

This commit is contained in:
Sirttas
2026-06-21 12:41:32 +02:00
parent 9edb0e6ce8
commit 9f6cc616ad
4 changed files with 48 additions and 10 deletions
@@ -47,9 +47,9 @@ watchEffect(async () => {
<template>
<Tooltip v-model:open="open" class="tooltip">
<template #header>
<LoadingSpinner v-if="history.length < trendingScale" class="w-6 h-6" />
<ArrowTrendingUpIcon v-else-if="history[0].average > history[trendingScale - 1].average" class="w-6 h-6" />
<ArrowTrendingDownIcon v-else class="w-6 h-6" />
<LoadingSpinner v-if="history.length < trendingScale" />
<ArrowTrendingUpIcon v-else-if="history[0].average > history[trendingScale - 1].average" />
<ArrowTrendingDownIcon v-else />
</template>
<template #default>
<div class="bg-slate-500 -left-1/2 relative tooltip-content" v-if="history.length > 0">
@@ -79,9 +79,6 @@ watchEffect(async () => {
.tooltip {
@apply ms-auto;
>:deep(div.header) {
@apply btn-icon px-2;
}
&.open {
&.tooltip-top>:deep(div.header) {
@apply rounded-t-md bg-slate-600;
@@ -94,4 +91,8 @@ watchEffect(async () => {
}
}
}
.tooltip>:deep(div.header) {
@apply btn-icon px-2;
}
</style>