Added Favorites to user menu.

This commit is contained in:
DebaucheryLibrarian 2024-03-19 02:39:04 +01:00
parent 5642185dc1
commit f6e670860a
1 changed files with 22 additions and 4 deletions

View File

@ -105,6 +105,19 @@
</a> </a>
</li> </li>
<li
v-if="user.primaryStash"
class="menu-item"
>
<a
:href="`/stash/${user.username}/${user.primaryStash.slug}`"
class="menu-button nolink favorites"
>
<Icon icon="heart7" />
Favorites
</a>
</li>
<li <li
class="menu-button menu-item logout" class="menu-button menu-item logout"
@click="logout" @click="logout"
@ -315,6 +328,7 @@ async function logout() {
display: flex; display: flex;
align-items: center; align-items: center;
padding: .5rem .5rem .5rem .75rem; padding: .5rem .5rem .5rem .75rem;
font-size: 1.1rem;
.icon { .icon {
fill: var(--shadow); fill: var(--shadow);
@ -328,10 +342,14 @@ async function logout() {
} }
} }
.logout { /*
.icon { .favorites .icon {
fill: var(--error); fill: var(--primary);
} }
*/
.logout .icon {
fill: var(--error);
} }
@media(--small) { @media(--small) {