diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.js b/src/renderer/components/ft-icon-button/ft-icon-button.js index 88cc6b95..d26ffede 100644 --- a/src/renderer/components/ft-icon-button/ft-icon-button.js +++ b/src/renderer/components/ft-icon-button/ft-icon-button.js @@ -65,7 +65,7 @@ export default Vue.extend({ const regex = /\/(\w*)/i return this.dropdownNames.slice().map((el) => { const group = el.match(regex) - if (group.length === 0) { + if (group === null || group.length === 0) { return '' } return group[1] @@ -128,12 +128,16 @@ export default Vue.extend({ }, handleDropdownClick: function (index) { - this.$emit('click', { - url: this.dropdownValues[index], - title: this.relatedVideoTitle, - extension: this.filesExtensions[index], - folderPath: this.$store.getters.getDownloadFolderPath - }) + if (this.relatedVideoTitle !== '') { + this.$emit('click', { + url: this.dropdownValues[index], + title: this.relatedVideoTitle, + extension: this.filesExtensions[index], + folderPath: this.$store.getters.getDownloadFolderPath + }) + } else { + this.$emit('click', this.dropdownValues[index]) + } this.focusOut() } } diff --git a/src/renderer/components/watch-video-info/watch-video-info.sass b/src/renderer/components/watch-video-info/watch-video-info.sass index a6e466d1..fd9bc797 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.sass +++ b/src/renderer/components/watch-video-info/watch-video-info.sass @@ -52,7 +52,7 @@ .likeSection margin-top: 4px - font-size: 12px + font-size: 16px color: var(--tertiary-text-color) display: flex flex-direction: column @@ -70,7 +70,7 @@ margin-bottom: 4px .likeCount - margin-right: 6px + margin-right: 0px .videoOptions margin-top: 16px diff --git a/src/renderer/components/watch-video-info/watch-video-info.vue b/src/renderer/components/watch-video-info/watch-video-info.vue index 2db55689..673fe808 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.vue +++ b/src/renderer/components/watch-video-info/watch-video-info.vue @@ -44,6 +44,20 @@
{{ parsedViewCount }}
+
+
+
+ {{ parsedLikeCount }} +
+
+
+