diff options
Diffstat (limited to 'src/components/status')
| -rw-r--r-- | src/components/status/status.js | 6 | ||||
| -rw-r--r-- | src/components/status/status.vue | 28 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 4fbd5ac3..8268e615 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -278,6 +278,12 @@ const Status = { hidePostStats () { return this.mergedConfig.hidePostStats }, + emojiReactions () { + return { + '🤔': [{ 'id': 'xyz..' }, { 'id': 'zyx...' }], + '🐻': [{ 'id': 'abc...' }] + } + }, ...mapGetters(['mergedConfig']) }, components: { diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 65778b2e..aae58a5e 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -354,6 +354,17 @@ </div> </transition> + <div class="emoji-reactions"> + <button + class="emoji-reaction btn btn-default" + v-for="(users, emoji) in emojiReactions" + :key="emoji" + > + <span>{{users.length}}</span> + <span>{{emoji}}</span> + </button> + </div> + <div v-if="!noHeading && !isPreview" class="status-actions media-body" @@ -771,6 +782,23 @@ $status-margin: 0.75em; } } +.emoji-reactions { + display: flex; + margin-top: 0.75em; +} + +.emoji-reaction { + padding: 0 0.5em; + margin-right: 0.5em; + display: flex; + align-items: center; + justify-content: center; + + :first-child { + margin-right: 0.25em; + } +} + .button-icon.icon-reply { &:not(.button-icon-disabled):hover, &.button-icon-active { |
