diff --git a/pages/item/_id/index.vue b/pages/item/_id/index.vue index 489c6244..5892022f 100644 --- a/pages/item/_id/index.vue +++ b/pages/item/_id/index.vue @@ -117,10 +117,10 @@
{{ publishedYear }}
-
+

{{ description }}

-
+
{{ showFullDescription ? 'Read less' : 'Read more' }} {{ showFullDescription ? 'expand_less' : 'expand_more' }}
@@ -722,8 +722,12 @@ export default { } }, checkDescriptionClamped() { - if (!this.$refs.description || this.showFullDescription) return - this.descriptionClamped = this.$refs.description.scrollHeight > this.$refs.description.clientHeight + if (this.showFullDescription) return + if (!this.$refs.description) { + this.descriptionClamped = false + } else { + this.descriptionClamped = this.$refs.description.scrollHeight > this.$refs.description.clientHeight + } }, windowResized() { this.windowWidth = window.innerWidth