Skip to content

Commit

Permalink
Fix CTRL+clicking on the channel name on the watch page (FreeTubeApp#…
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Oct 14, 2022
1 parent ad01d2b commit 077fde7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/renderer/components/watch-video-info/watch-video-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ export default Vue.extend({
})
},

goToChannel: function () {
this.$router.push({ path: `/channel/${this.channelId}` })
},

toggleSave: function () {
if (this.inFavoritesPlaylist) {
this.removeFromPlaylist()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
cursor: pointer
position: relative
top: -2px
display: block
color: inherit
text-decoration: inherit

.subscribeButton
margin-top: 6px
Expand Down Expand Up @@ -86,7 +89,3 @@
:deep(.iconDropdown)
left: calc(50% - 20px)
right: auto

.channelLink
color: inherit
text-decoration: inherit
10 changes: 2 additions & 8 deletions src/renderer/components/watch-video-info/watch-video-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,15 @@
<img
:src="channelThumbnail"
class="channelThumbnail"
@click="goToChannel"
>
</router-link>
</div>
<div>
<router-link
:to="`/channel/${channelId}`"
class="channelLink"
class="channelName"
>
<div
class="channelName"
@click="goToChannel"
>
{{ channelName }}
</div>
{{ channelName }}
</router-link>
<ft-button
v-if="!hideUnsubscribeButton"
Expand Down

0 comments on commit 077fde7

Please sign in to comment.