aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-09-08 21:18:05 +0300
committerHenry Jameson <me@hjkos.com>2019-09-08 21:18:52 +0300
commit9146bee7aa7229f041bcc77814d9fa40809329a6 (patch)
tree79c8595eb57d8ab554085c3b851db0cfd0536bf2 /src/components
parent7360a4d9efe278aef672e96320f7161ad4f0d0f2 (diff)
better hitbox for status emoji
Diffstat (limited to 'src/components')
-rw-r--r--src/components/status/status.vue23
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;
}
}