diff options
| author | DW <36347199+chocological00@users.noreply.github.com> | 2020-05-16 09:06:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-16 22:06:39 +0900 |
| commit | ea80d5eac2412ff46c6771743f2b8a8c3c9d45e1 (patch) | |
| tree | d03f7cc3743b122e3549c5823bbb21224c5372dc /src/client/components/note.vue | |
| parent | feat(client): ローカルのみボタンを公開範囲ボタンの横に移動 (diff) | |
| download | sharkey-ea80d5eac2412ff46c6771743f2b8a8c3c9d45e1.tar.gz sharkey-ea80d5eac2412ff46c6771743f2b8a8c3c9d45e1.tar.bz2 sharkey-ea80d5eac2412ff46c6771743f2b8a8c3c9d45e1.zip | |
Local only indicator (#6291)
* Add Local only & public indicator
* Add local only & public indicator on renotes
remove visibility conditional
* Cleaner Style
* :v:
* Update note-header.vue
* Update note.vue
Co-authored-by: DW <chocological00@gitlab.com>
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/client/components/note.vue')
| -rw-r--r-- | src/client/components/note.vue | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index ab9d60e3ac..fd895ad5ae 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -30,6 +30,7 @@ <fa v-if="note.visibility === 'followers'" :icon="faUnlock"/> <fa v-if="note.visibility === 'specified'" :icon="faEnvelope"/> </span> + <span class="localOnly" v-if="note.localOnly"><fa :icon="faBiohazard"/></span> </div> </div> <article class="article"> @@ -88,7 +89,7 @@ <script lang="ts"> import Vue from 'vue'; -import { faBolt, faTimes, faBullhorn, faStar, faLink, faExternalLinkSquareAlt, faPlus, faMinus, faRetweet, faReply, faReplyAll, faEllipsisH, faHome, faUnlock, faEnvelope, faThumbtack, faBan, faQuoteRight, faInfoCircle, faEllipsisH } from '@fortawesome/free-solid-svg-icons'; +import { faBolt, faTimes, faBullhorn, faStar, faLink, faExternalLinkSquareAlt, faPlus, faMinus, faRetweet, faReply, faReplyAll, faEllipsisH, faHome, faUnlock, faEnvelope, faThumbtack, faBan, faQuoteRight, faInfoCircle, faBiohazard, faEllipsisH } from '@fortawesome/free-solid-svg-icons'; import { faCopy, faTrashAlt, faEdit, faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons'; import { parse } from '../../mfm/parse'; import { sum, unique } from '../../prelude/array'; @@ -146,7 +147,7 @@ export default Vue.extend({ showContent: false, hideThisNote: false, noteBody: this.$refs.noteBody, - faEdit, faBolt, faTimes, faBullhorn, faPlus, faMinus, faRetweet, faReply, faReplyAll, faEllipsisH, faHome, faUnlock, faEnvelope, faThumbtack, faBan, faEllipsisH + faEdit, faBolt, faTimes, faBullhorn, faPlus, faMinus, faRetweet, faReply, faReplyAll, faEllipsisH, faHome, faUnlock, faEnvelope, faThumbtack, faBan, faBiohazard, faEllipsisH }; }, @@ -872,10 +873,10 @@ export default Vue.extend({ > .visibility { margin-left: 8px; + } - [data-icon] { - margin-right: 0; - } + > .localOnly { + margin-left: 8px; } } } |