diff options
| author | taehoon <th.dev91@gmail.com> | 2019-07-22 16:58:20 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-28 21:05:13 -0400 |
| commit | 7c2982064e6faf60c95e909e7722d6110310055a (patch) | |
| tree | 4bf523fb926c37133a98742aabf601d61c64b119 /src/components/user_card/user_card.vue | |
| parent | 8aa3e7d52ea067c12dd12c711121fda190b5979d (diff) | |
enlarge avatar in profile page
Diffstat (limited to 'src/components/user_card/user_card.vue')
| -rw-r--r-- | src/components/user_card/user_card.vue | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 9e142480..3c0bf0d4 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -7,7 +7,20 @@ <div class="panel-heading"> <div class="user-info"> <div class="container"> - <router-link :to="userProfileLink(user)"> + <a + v-if="isActiveRoute" + class="user-info-avatar-link" + @click="enlargeAvatar" + > + <UserAvatar + :better-shadow="betterShadow" + :user="user" + /> + </a> + <router-link + v-else + :to="userProfileLink(user)" + > <UserAvatar :better-shadow="betterShadow" :user="user" @@ -372,6 +385,10 @@ } } + &-avatar-link { + cursor: pointer; + } + .usersettings { color: $fallback--lightText; color: var(--lightText, $fallback--lightText); |
