diff options
| author | nenohi <kimutipartylove@gmail.com> | 2022-09-18 04:07:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-18 04:07:59 +0900 |
| commit | c1667dc43cfa495fd9499c00ee4b49d97d64a345 (patch) | |
| tree | e9d512bd7eb8ed34fec9be5a618746cecf6e6839 /packages/client/src | |
| parent | なんかもうめっちゃ変えた (diff) | |
| download | sharkey-c1667dc43cfa495fd9499c00ee4b49d97d64a345.tar.gz sharkey-c1667dc43cfa495fd9499c00ee4b49d97d64a345.tar.bz2 sharkey-c1667dc43cfa495fd9499c00ee4b49d97d64a345.zip | |
フォロー、フォロワーのページでフォローされていることを表示 (#9093)
* followed-view
* Update MkUserInfo.vue
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/components/MkUserInfo.vue | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/client/src/components/MkUserInfo.vue b/packages/client/src/components/MkUserInfo.vue index 4670def564..036cbea304 100644 --- a/packages/client/src/components/MkUserInfo.vue +++ b/packages/client/src/components/MkUserInfo.vue @@ -6,6 +6,7 @@ <MkA class="name" :to="userPage(user)"><MkUserName :user="user" :nowrap="false"/></MkA> <p class="username"><MkAcct :user="user"/></p> </div> + <span v-if="$i && $i.id !== user.id && user.isFollowed" class="followed">{{ $ts.followsYou }}</span> <div class="description"> <div v-if="user.description" class="mfm"> <Mfm :text="user.description" :author="user" :i="$i" :custom-emojis="user.emojis"/> @@ -81,7 +82,18 @@ defineProps<{ opacity: 0.7; } } - + + > .followed { + position: absolute; + top: 12px; + left: 12px; + padding: 4px 8px; + color: #fff; + background: rgba(0, 0, 0, 0.7); + font-size: 0.7em; + border-radius: 6px; + } + > .description { padding: 16px; font-size: 0.8em; |