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 () { toggleSave: function () {
if (this.inFavoritesPlaylist) { if (this.inFavoritesPlaylist) {
this.removeFromPlaylist() this.removeFromPlaylist()

View File

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

View File

@ -19,21 +19,15 @@
<img <img
:src="channelThumbnail" :src="channelThumbnail"
class="channelThumbnail" class="channelThumbnail"
@click="goToChannel"
> >
</router-link> </router-link>
</div> </div>
<div> <div>
<router-link <router-link
:to="`/channel/${channelId}`" :to="`/channel/${channelId}`"
class="channelLink"
>
<div
class="channelName" class="channelName"
@click="goToChannel"
> >
{{ channelName }} {{ channelName }}
</div>
</router-link> </router-link>
<ft-button <ft-button
v-if="!hideUnsubscribeButton" v-if="!hideUnsubscribeButton"