summaryrefslogtreecommitdiff
path: root/packages/client/src/components
diff options
context:
space:
mode:
authornenohi <kimutipartylove@gmail.com>2022-09-18 04:07:59 +0900
committerGitHub <noreply@github.com>2022-09-18 04:07:59 +0900
commitc1667dc43cfa495fd9499c00ee4b49d97d64a345 (patch)
treee9d512bd7eb8ed34fec9be5a618746cecf6e6839 /packages/client/src/components
parentなんかもうめっちゃ変えた (diff)
downloadsharkey-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/components')
-rw-r--r--packages/client/src/components/MkUserInfo.vue14
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;