Fix double focus on the sidebar channels (#2749)
This commit is contained in:
parent
2c5c654b66
commit
f33ad2e5f0
|
@ -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 {
|
||||||
|
|
|
@ -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}` })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -218,36 +218,29 @@
|
||||||
<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
|
<div
|
||||||
:to="`/channel/${channel.id}`"
|
class="thumbnailContainer"
|
||||||
class="channelLink"
|
|
||||||
>
|
>
|
||||||
<div
|
<img
|
||||||
class="thumbnailContainer"
|
class="channelThumbnail"
|
||||||
|
:src="channel.thumbnail"
|
||||||
>
|
>
|
||||||
<img
|
</div>
|
||||||
class="channelThumbnail"
|
<p
|
||||||
:src="channel.thumbnail"
|
v-if="isOpen"
|
||||||
>
|
class="navLabel"
|
||||||
</div>
|
>
|
||||||
<p
|
{{ channel.name }}
|
||||||
v-if="isOpen"
|
</p>
|
||||||
class="navLabel"
|
</router-link>
|
||||||
>
|
|
||||||
{{ channel.name }}
|
|
||||||
</p>
|
|
||||||
</router-link>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ft-flex-box>
|
</ft-flex-box>
|
||||||
|
|
Loading…
Reference in New Issue