Fix overlapping buttons in Theme settings

This commit is contained in:
Tusooa Zhu 2022-03-24 18:01:20 -04:00
parent aa0b2e0723
commit e58422889b
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
6 changed files with 57 additions and 30 deletions

View file

@ -47,6 +47,12 @@ export default Vue.component('tab-switcher', {
return this.active
}
},
isActive () {
return tabName => {
const isWanted = slot => slot.data && slot.data.attrs['data-tab-name'] === tabName
return this.$slots.default.findIndex(isWanted) === this.activeIndex
}
},
settingsModalVisible () {
return this.settingsModalState === 'visible'
},