Skip to content

Commit

Permalink
refactor(header): show Username text on larger screens (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Mar 16, 2024
1 parent a224a67 commit 9e00e8b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
<template v-else v-slot:append>
<v-menu>
<template v-slot:activator="{ props }">
<v-btn v-bind="props" icon="mdi-account-circle"></v-btn>
</template>
<v-btn class="d-sm-none" v-bind="props" icon="mdi-account-circle"></v-btn>
<v-btn class="d-none d-sm-flex text-none" v-bind="props" prepend-icon="mdi-account-circle">{{ username }}</v-btn>
</template>
<v-list>
<v-list-item class="" :slim="true" prepend-icon="mdi-account" disabled>{{ username }}</v-list-item>
<v-divider></v-divider>
<v-list-item class="d-sm-none" :slim="true" prepend-icon="mdi-account" disabled>{{ username }}</v-list-item>
<v-divider class="d-sm-none"></v-divider>
<v-list-item :slim="true" prepend-icon="mdi-view-dashboard-outline" to="/dashboard" :aria-label="$t('Header.Dashboard')">{{ $t('Header.Dashboard') }}</v-list-item>
<v-list-item :slim="true" prepend-icon="mdi-cog-outline" to="/settings" :aria-label="$t('Header.Settings')">{{ $t('Header.Settings') }}</v-list-item>
<v-list-item :slim="true" prepend-icon="mdi-logout" @click="signOut" :aria-label="$t('Header.SignOut')">{{ $t('Header.SignOut') }}</v-list-item>
Expand Down

0 comments on commit 9e00e8b

Please sign in to comment.