Skip to content

Commit

Permalink
Better profile box when user only has a username
Browse files Browse the repository at this point in the history
Related to Issue #39
  • Loading branch information
BobChao87 committed Oct 28, 2021
1 parent 3349a0f commit 52e95ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/user/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<img :src="userProfileURL" alt="Profile image">
</div>

<WidgetLoading :while="[ user ]" />
<template v-if="user && !user._fetching">
<div class="user-address">
<h3 class="title is-3 username">
Expand All @@ -30,7 +31,6 @@
<span v-for="language of user.languagesSpoken" :key="language" class="language-spoken">{{ $t(`language.${language}`) }}</span>
</div>
</template>
<WidgetLoading :while="[ user ]" />
</div>
</template>

Expand Down Expand Up @@ -85,7 +85,10 @@ export default Vue.extend({
display: flex;
gap: var(--spacing);
align-items: center;
margin-block-end: var(--spacing);
&:not(:last-child) {
margin-block-end: var(--spacing);
}
> .username {
margin: 0;
Expand Down

0 comments on commit 52e95ed

Please sign in to comment.