This commit is contained in:
syuilo 2018-02-23 01:11:09 +09:00
parent b5068aae05
commit 1fdc805713
2 changed files with 6 additions and 5 deletions

View file

@ -234,7 +234,7 @@ export default Vue.extend({
p p
margin 0 margin 0
i, mk-reaction-icon i, .mk-reaction-icon
margin-right 4px margin-right 4px
.post-preview .post-preview

View file

@ -2,11 +2,11 @@
<div class="mk-user-preview"> <div class="mk-user-preview">
<template v-if="u != null"> <template v-if="u != null">
<div class="banner" :style="u.banner_url ? `background-image: url(${u.banner_url}?thumbnail&size=512)` : ''"></div> <div class="banner" :style="u.banner_url ? `background-image: url(${u.banner_url}?thumbnail&size=512)` : ''"></div>
<a class="avatar" :href="`/${u.username}`" target="_blank"> <router-link class="avatar" :to="`/${u.username}`">
<img :src="`${u.avatar_url}?thumbnail&size=64`" alt="avatar"/> <img :src="`${u.avatar_url}?thumbnail&size=64`" alt="avatar"/>
</a> </router-link>
<div class="title"> <div class="title">
<p class="name">{{ u.name }}</p> <router-link class="name" :to="`/${u.username}`">{{ u.name }}</router-link>
<p class="username">@{{ u.username }}</p> <p class="username">@{{ u.username }}</p>
</div> </div>
<div class="description">{{ u.description }}</div> <div class="description">{{ u.description }}</div>
@ -106,6 +106,7 @@ export default Vue.extend({
position absolute position absolute
top 62px top 62px
left 13px left 13px
z-index 2
> img > img
display block display block
@ -120,7 +121,7 @@ export default Vue.extend({
padding 8px 0 8px 82px padding 8px 0 8px 82px
> .name > .name
display block display inline-block
margin 0 margin 0
font-weight bold font-weight bold
line-height 16px line-height 16px