diff options
| author | Henry Jameson <me@hjkos.com> | 2019-09-08 21:18:05 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-09-08 21:18:52 +0300 |
| commit | 9146bee7aa7229f041bcc77814d9fa40809329a6 (patch) | |
| tree | 79c8595eb57d8ab554085c3b851db0cfd0536bf2 /src/components/status | |
| parent | 7360a4d9efe278aef672e96320f7161ad4f0d0f2 (diff) | |
better hitbox for status emoji
Diffstat (limited to 'src/components/status')
| -rw-r--r-- | src/components/status/status.vue | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 5e849dd7..a0756ae4 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -696,6 +696,22 @@ $status-margin: 0.75em; line-height: 1.4em; white-space: pre-wrap; + .emoji-container { + display: inline-block; + width: 32px; + height: 32px; + z-index: 1; + + &:hover { + z-index: 2; + + .emoji { + transform: scale(3); + z-index: 2; + } + } + } + img, video { max-width: 100%; max-height: 400px; @@ -707,12 +723,7 @@ $status-margin: 0.75em; height: 32px; transition: transform 200ms; transform: scale(1); - z-index: 1; - - &:hover { - transform: scale(3); - z-index: 2; - } + pointer-events: none; } } |
