mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
hightlight the current tab
This commit is contained in:
parent
94def0723d
commit
349b04834e
1 changed files with 13 additions and 1 deletions
|
@ -36,7 +36,13 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="flex mt-4 mb-2">
|
<div class="flex mt-4 mb-2">
|
||||||
<button v-for="(tab, index) in tabs" :key="tab.name" class="btn mr-2" @click="loadTab(index)">
|
<button
|
||||||
|
v-for="(tab, index) in tabs"
|
||||||
|
:key="tab.name"
|
||||||
|
class="btn mr-2"
|
||||||
|
@click="loadTab(index)"
|
||||||
|
:class="{ active: selectedTab == index }"
|
||||||
|
>
|
||||||
<span v-text="tab.translatedName"></span>
|
<span v-text="tab.translatedName"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -217,3 +223,9 @@ export default {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.active {
|
||||||
|
border: 0.1rem outset red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue