diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index eefc31050..d4f29ca74 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -1115,22 +1115,20 @@ export default { // Truncate the description if it exceeds the maximum length const truncatedDescription = this.description.length > maxLength ? this.description.substring(0, maxLength) + '...' : this.description + // Get the duration of the media const duration = this.media.duration ? this.$elapsedPrettyExtended(this.media.duration, false) : '' - - // Determine the vertical alignment of the duration based on the length of the description - const durationVerticalAlign = this.description.length < 200 ? 'top' : 'middle' + // Get user progress + const elapsedPretty = this.userProgress ? this.$elapsedPrettyExtended(this.userProgress.currentTime, true) : '' // Build the tooltip text using a table format - let tooltipText = '
| ${this.$strings.LabelDuration} | ` - tooltipText += `${this.$strings.LabelDescription} | ` - tooltipText += '
|---|---|
| ${duration} | ` - tooltipText += `${truncatedDescription} | ` - tooltipText += '