Skip to content

Commit fecdea5

Browse files
committed
fix(spotlight): tooltip on column score
1 parent 2365e97 commit fecdea5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/spotlight/SpotlightTable.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,15 @@
7777
<b-table-column
7878
field="rank"
7979
:label="$t('spotlight.score')"
80-
v-slot="props"
8180
sortable
81+
numeric
8282
>
83-
<template v-if="!isLoading">{{ Math.ceil(props.row.rank * 100) / 100 }}</template>
83+
<template v-slot:header="{column}">
84+
<b-tooltip label="sold * (unique / total)" append-to-body dashed>
85+
{{column.label}}
86+
</b-tooltip>
87+
</template>
88+
<template v-slot="props" v-if="!isLoading">{{ Math.ceil(props.row.rank * 100) / 100 }}</template>
8489
<b-skeleton :active="isLoading"> </b-skeleton>
8590
</b-table-column>
8691

0 commit comments

Comments
 (0)