From ab74cd497205d5964db38d56f6f70fb727c60d78 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 24 May 2020 02:06:55 +0300 Subject: Multiple fixes for CSS, added proper auth checking --- src/components/tab_switcher/tab_switcher.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/components/tab_switcher/tab_switcher.js') diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js index 97791de3..a54b474f 100644 --- a/src/components/tab_switcher/tab_switcher.js +++ b/src/components/tab_switcher/tab_switcher.js @@ -69,7 +69,6 @@ export default Vue.component('tab-switcher', { if (!slot.tag) return const classesTab = ['tab'] const classesWrapper = ['tab-wrapper'] - if (this.activeIndex === index) { classesTab.push('active') classesWrapper.push('active') @@ -101,12 +100,17 @@ export default Vue.component('tab-switcher', { const contents = this.$slots.default.map((slot, index) => { if (!slot.tag) return const active = this.activeIndex === index + const classes = [ active ? 'active' : 'hidden' ] + if (slot.data.attrs.fullHeight) { + classes.push('full-height') + } + if (this.renderOnlyFocused) { return active - ?
{slot}
- : + ?
{slot}
+ :
} - return
{slot}
+ return
{slot}
}) return ( -- cgit v1.2.3-70-g09d2