Fix double focus on the sidebar channels (#2749)

This commit is contained in:
absidue 2022-10-20 08:04:49 +02:00 committed by GitHub
parent 2c5c654b66
commit f33ad2e5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 27 deletions

View File

@ -69,7 +69,6 @@
.navOption .navLabel { .navOption .navLabel {
margin-left: 40px; margin-left: 40px;
overflow: hidden; overflow: hidden;
margin-left: 40px;
word-break: break-word; word-break: break-word;
} }
@ -90,6 +89,7 @@
} }
.channelLink { .channelLink {
display: block;
color: inherit; color: inherit;
text-decoration: inherit; text-decoration: inherit;
} }
@ -97,6 +97,7 @@
.channelThumbnail { .channelThumbnail {
border-radius: 50%; border-radius: 50%;
width: 35px; width: 35px;
vertical-align: middle;
} }
.closed { .closed {

View File

@ -76,9 +76,6 @@ export default Vue.extend({
methods: { methods: {
navigate: function (route) { navigate: function (route) {
this.$router.push('/' + route) this.$router.push('/' + route)
},
goToChannel: function (id) {
this.$router.push({ path: `/channel/${id}` })
} }
} }
}) })

View File

@ -218,19 +218,13 @@
<div <div
v-if="!hideActiveSubscriptions" v-if="!hideActiveSubscriptions"
> >
<div <router-link
v-for="(channel, index) in activeSubscriptions" v-for="(channel, index) in activeSubscriptions"
:key="index" :key="index"
class="navChannel mobileHidden" :to="`/channel/${channel.id}`"
class="navChannel channelLink mobileHidden"
:title="channel.name" :title="channel.name"
role="button" role="button"
tabindex="0"
@keydown.enter.prevent="goToChannel(channel.id)"
@click="goToChannel(channel.id)"
>
<router-link
:to="`/channel/${channel.id}`"
class="channelLink"
> >
<div <div
class="thumbnailContainer" class="thumbnailContainer"
@ -249,7 +243,6 @@
</router-link> </router-link>
</div> </div>
</div> </div>
</div>
</ft-flex-box> </ft-flex-box>
</template> </template>