From 7add3e4b1cfc31e63e55a8198d1406f678933aef Mon Sep 17 00:00:00 2001 From: Jason <84899178+jasonhenriquez@users.noreply.github.com> Date: Fri, 20 Aug 2021 19:51:46 +0000 Subject: [PATCH] Hides video description when it is empty (#1585) Co-authored-by: Preston --- .../watch-video-description/watch-video-description.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/components/watch-video-description/watch-video-description.js b/src/renderer/components/watch-video-description/watch-video-description.js index e7a2eccb..f028e8c2 100644 --- a/src/renderer/components/watch-video-description/watch-video-description.js +++ b/src/renderer/components/watch-video-description/watch-video-description.js @@ -2,6 +2,7 @@ import Vue from 'vue' import FtCard from '../ft-card/ft-card.vue' import FtTimestampCatcher from '../ft-timestamp-catcher/ft-timestamp-catcher.vue' import autolinker from 'autolinker' +import $ from 'jquery' export default Vue.extend({ name: 'WatchVideoDescription', @@ -34,6 +35,10 @@ export default Vue.extend({ } else { this.shownDescription = autolinker.link(this.description) } + + if (/^\s*$/.test(this.shownDescription)) { + $('.videoDescription')[0].style.display = 'none' + } }, methods: { onTimestamp: function(timestamp) {