mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
35 lines
690 B
Vue
35 lines
690 B
Vue
<template>
|
|
<a
|
|
v-if="currentUser"
|
|
v-koel-tooltip.left
|
|
class="view-profile"
|
|
data-testid="view-profile-link"
|
|
href="/#/profile"
|
|
title="Profile and preferences"
|
|
>
|
|
<UserAvatar :user="currentUser" width="40"/>
|
|
</a>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { useAuthorization } from '@/composables'
|
|
import UserAvatar from '@/components/user/UserAvatar.vue'
|
|
|
|
const { currentUser } = useAuthorization()
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
img {
|
|
padding: 2px;
|
|
border: 1px solid rgba(255, 255, 255, .1);
|
|
transition: border .2s ease-in-out;
|
|
|
|
&:hover {
|
|
border-color: rgba(255, 255, 255, .3);
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(.95);
|
|
}
|
|
}
|
|
</style>
|