mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
reset content scroll position
This commit is contained in:
parent
e61fcdbe49
commit
44b5a6a67f
@ -219,6 +219,7 @@
|
||||
</b-popover>
|
||||
</div>
|
||||
<div v-if="itemSelected"
|
||||
ref="content"
|
||||
class="content px-4 pt-3 pb-5 border-top overflow-auto"
|
||||
:style="{'font-family': theme.font, 'font-size': theme.size + 'rem'}">
|
||||
<h3>{{itemSelectedDetails.title}}</h3>
|
||||
|
@ -243,6 +243,9 @@ var vm = new Vue({
|
||||
this.itemSelectedDetails = null
|
||||
return
|
||||
}
|
||||
if (this.$refs.content) {
|
||||
this.$refs.content.scrollTop = 0
|
||||
}
|
||||
this.itemSelectedDetails = this.itemsById[newVal]
|
||||
if (this.itemSelectedDetails.status == 'unread') {
|
||||
this.itemSelectedDetails.status = 'read'
|
||||
|
Loading…
x
Reference in New Issue
Block a user