fix(ui): [WIP] tabs that have :to prop are displayed the same as button tabs

This commit is contained in:
upsiflu 2025-02-16 21:53:08 +01:00
parent 6baee019e1
commit ea873d4438
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ watch(() => tabs.length, (_, from) => {
<div class="funkwhale tabs">
<div class="tabs-header">
<component ghost :is="tab.to ? Link : Button"
v-for="(tab, _) in tabs" :class="{ 'is-active': currentTitle === tab.title }"
v-for="(tab, _) in tabs" :class="{ 'is-active': actualCurrentTitle === tab.title }"
v-bind="tab"
:onClick="() => { currentTitle = tab.title }"
@keydown.left="currentTitle = tabs[(currentIndex - 1 + tabs.length) % tabs.length].title"

View File

@ -22,7 +22,7 @@
outline:1px dotted currentColor;
}
> button.tabs-item {
> .tabs-item {
font-size: 1rem;
padding: 8px;
min-width: 96px;