diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-21 14:57:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-21 14:57:27 +0900 |
| commit | 2fa82bde1602502a7649241882c7fadab1aae086 (patch) | |
| tree | de1afcf365dc6129bac406edb34eabd992ad8147 /src/client/app/mobile/views/components/note.sub.vue | |
| parent | Display isAdmin badge (diff) | |
| download | misskey-2fa82bde1602502a7649241882c7fadab1aae086.tar.gz misskey-2fa82bde1602502a7649241882c7fadab1aae086.tar.bz2 misskey-2fa82bde1602502a7649241882c7fadab1aae086.zip | |
:art:
Diffstat (limited to 'src/client/app/mobile/views/components/note.sub.vue')
| -rw-r--r-- | src/client/app/mobile/views/components/note.sub.vue | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/src/client/app/mobile/views/components/note.sub.vue b/src/client/app/mobile/views/components/note.sub.vue index 2fb3b2ffcc..149a78ecde 100644 --- a/src/client/app/mobile/views/components/note.sub.vue +++ b/src/client/app/mobile/views/components/note.sub.vue @@ -1,9 +1,13 @@ <template> -<div class="sub"> - <mk-avatar class="avatar" :user="note.user"/> +<div class="sub" :class="{ smart: $store.state.device.postStyle == 'smart' }"> + <mk-avatar class="avatar" :user="note.user" v-if="$store.state.device.postStyle != 'smart'"/> <div class="main"> <header> + <mk-avatar class="avatar" :user="note.user" v-if="$store.state.device.postStyle == 'smart'"/> <router-link class="name" :to="note.user | userPage">{{ note.user | userName }}</router-link> + <span class="is-admin" v-if="note.user.isAdmin">admin</span> + <span class="is-bot" v-if="note.user.isBot">bot</span> + <span class="is-cat" v-if="note.user.isCat">cat</span> <span class="username"><mk-acct :user="note.user"/></span> <div class="info"> <span class="mobile" v-if="note.viaMobile">%fa:mobile-alt%</span> @@ -42,6 +46,13 @@ root(isDark) @media (min-width 600px) padding 24px 32px + &.smart + > .main + width 100% + + > header + align-items center + &:after content "" display block @@ -73,6 +84,13 @@ root(isDark) margin-bottom 2px white-space nowrap + > .avatar + flex-shrink 0 + margin-right 8px + width 18px + height 18px + border-radius 100% + > .name display block margin 0 0.5em 0 0 @@ -88,6 +106,20 @@ root(isDark) &:hover text-decoration underline + > .is-admin + > .is-bot + > .is-cat + margin 0 0.5em 0 0 + padding 1px 5px + font-size 10px + color isDark ? #758188 : #aaa + border solid 1px isDark ? #57616f : #ddd + border-radius 3px + + &.is-admin + border-color isDark ? #d42c41 : #f56a7b + color isDark ? #d42c41 : #f56a7b + > .username text-align left margin 0 |