mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-04-11 16:28:17 +02:00
Merge branch 'keyboard-navigation' of https://github.com/mikiher/audiobookshelf into keyboard-navigation
This commit is contained in:
commit
8ec18e8d7b
@ -110,15 +110,6 @@ export default {
|
|||||||
this.typingTimeout = setTimeout(() => {
|
this.typingTimeout = setTimeout(() => {
|
||||||
this.currentSearch = this.textInput
|
this.currentSearch = this.textInput
|
||||||
}, 100)
|
}, 100)
|
||||||
this.setInputWidth()
|
|
||||||
},
|
|
||||||
setInputWidth() {
|
|
||||||
setTimeout(() => {
|
|
||||||
var value = this.$refs.input.value
|
|
||||||
var len = value.length * 7 + 24
|
|
||||||
this.$refs.input.style.width = len + 'px'
|
|
||||||
this.recalcMenuPos()
|
|
||||||
}, 50)
|
|
||||||
},
|
},
|
||||||
recalcMenuPos() {
|
recalcMenuPos() {
|
||||||
if (!this.menu || !this.$refs.inputWrapper) return
|
if (!this.menu || !this.$refs.inputWrapper) return
|
||||||
|
@ -127,15 +127,6 @@ export default {
|
|||||||
this.typingTimeout = setTimeout(() => {
|
this.typingTimeout = setTimeout(() => {
|
||||||
this.search()
|
this.search()
|
||||||
}, 250)
|
}, 250)
|
||||||
this.setInputWidth()
|
|
||||||
},
|
|
||||||
setInputWidth() {
|
|
||||||
setTimeout(() => {
|
|
||||||
var value = this.$refs.input.value
|
|
||||||
var len = value.length * 7 + 24
|
|
||||||
this.$refs.input.style.width = len + 'px'
|
|
||||||
this.recalcMenuPos()
|
|
||||||
}, 50)
|
|
||||||
},
|
},
|
||||||
recalcMenuPos() {
|
recalcMenuPos() {
|
||||||
if (!this.menu || !this.$refs.inputWrapper) return
|
if (!this.menu || !this.$refs.inputWrapper) return
|
||||||
|
Loading…
Reference in New Issue
Block a user