Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
v0.1.8 リアクションの数を表示するようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
mohno007 committed Jan 11, 2019
1 parent 9c141ec commit 64945e9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typetalk-emoreact",
"version": "0.1.7",
"version": "0.1.8",
"description": "",
"scripts": {
"build": "rollup --config",
Expand Down
20 changes: 15 additions & 5 deletions src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ export const style = html`
border: 1px solid #ddd;
border-radius: 5px;
margin-left: 5px;
cursor: pointer;
display: flex;
flex-direction: row;
align-items: center;
transition: box-shadow 0.2s linear 0s;
}
Expand All @@ -108,11 +113,13 @@ export const style = html`
}
.typetalk_emoreact_reaction--emoji__emoji {
display: inline-block;
font-size: 4em;
transform: scale(0.25) translateY(1.1em);
margin: -1em -0.333em;
cursor: pointer;
margin-left: 0.125em;
}
.typetalk_emoreact_reaction--emoji__count {
margin-right: 0.125em;
font-size: 0.9em;
color: #777;
}
.typetalk_emoreact_reaction--users {
Expand Down Expand Up @@ -289,6 +296,9 @@ const reaction = ({ me, message, reaction }, actions, reduce) => {
<span class="typetalk_emoreact_reaction--emoji__emoji">
${reaction.emoji}
</span>
<span class="typetalk_emoreact_reaction--emoji__count">
${reaction.count()}
</span>
</button>
<div class="typetalk_emoreact_reaction--users">
${
Expand Down

0 comments on commit 64945e9

Please sign in to comment.