From d5205d7328be91aefa3e692c127c586b4445dbad Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Thu, 7 Feb 2019 02:05:49 +0900 Subject: [PATCH] Refactor reaction-viewer (#4171) * Refactor reaction-viewer * code style * fix --- .../components/reactions-viewer.reaction.vue | 147 +++++++++++++++++ .../views/components/reactions-viewer.vue | 152 +----------------- 2 files changed, 155 insertions(+), 144 deletions(-) create mode 100644 src/client/app/common/views/components/reactions-viewer.reaction.vue diff --git a/src/client/app/common/views/components/reactions-viewer.reaction.vue b/src/client/app/common/views/components/reactions-viewer.reaction.vue new file mode 100644 index 0000000000..b7c321fc9f --- /dev/null +++ b/src/client/app/common/views/components/reactions-viewer.reaction.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/client/app/common/views/components/reactions-viewer.vue b/src/client/app/common/views/components/reactions-viewer.vue index 32a27cbb69..cf7f88b2f5 100644 --- a/src/client/app/common/views/components/reactions-viewer.vue +++ b/src/client/app/common/views/components/reactions-viewer.vue @@ -1,133 +1,31 @@ @@ -144,38 +42,4 @@ export default Vue.extend({ &:hover background var(--reactionViewerButtonBg) !important - - > span - display inline-block - height 32px - margin 2px - padding 0 6px - border-radius 4px - cursor pointer - - * - user-select none - pointer-events none - - &.reacted - background var(--primary) - - > span - color var(--primaryForeground) - - &:not(.reacted) - background var(--reactionViewerButtonBg) - - &:hover - background var(--reactionViewerButtonHoverBg) - - > .mk-reaction-icon - font-size 1.4em - - > span - font-size 1.1em - line-height 32px - vertical-align middle - color var(--text) -