Fix CTRL+clicking on the channel name on the watch page (#2713)

This commit is contained in:
absidue 2022-10-14 08:00:41 +02:00 committed by GitHub
parent ad01d2b37d
commit 077fde70f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 16 deletions

View File

@ -331,10 +331,6 @@ export default Vue.extend({
})
},
goToChannel: function () {
this.$router.push({ path: `/channel/${this.channelId}` })
},
toggleSave: function () {
if (this.inFavoritesPlaylist) {
this.removeFromPlaylist()

View File

@ -26,6 +26,9 @@
cursor: pointer
position: relative
top: -2px
display: block
color: inherit
text-decoration: inherit
.subscribeButton
margin-top: 6px
@ -86,7 +89,3 @@
:deep(.iconDropdown)
left: calc(50% - 20px)
right: auto
.channelLink
color: inherit
text-decoration: inherit

View File

@ -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"