Skip to content

Commit

Permalink
portal user avatar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Jan 7, 2024
1 parent 484894c commit e9d89e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ export default defineAppConfig({
},
},
},
avatar: {
default: {
},
rounded: 'rounded-button'
},
pagination: {
rounded: 'first:rounded-l-button last:rounded-r-button',
default: {
Expand Down
12 changes: 6 additions & 6 deletions layers/portal/pages/portal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ definePageMeta({
middleware: ['auth'],
});
const { logout } = useDirectusAuth();
const { logout, user } = useDirectusAuth();
const NuxtLink = resolveComponent('NuxtLink');
Expand Down Expand Up @@ -109,13 +109,13 @@ const mobileMenuOpen = ref(false);
<!-- Profile dropdown -->
<UDropdown class="relative" :items="userNavigation">
<button
class="inline-flex text-sm bg-white rounded-card focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2"

>
<span class="sr-only">Open user menu</span>
<img
class="w-12 h-12 mx-auto rounded-card"
src="https://images.unsplash.com/photo-1517365830460-955ce3ccd263?ixlib=rb-=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=256&h=256&q=80"
alt=""
<UAvatar
class="w-12 h-12 mx-auto"
:src="user.avatar"
:alt="userName(user)"
/>
</button>
</UDropdown>
Expand Down

0 comments on commit e9d89e6

Please sign in to comment.