about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorYuto Tokunaga <yuntan.sub1@gmail.com>2018-03-29 03:40:51 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-28 20:40:51 +0200
commit5021c4e9ca78881f5379a18185a46e580b8f2c34 (patch)
treecea3a77e4ee99efc77cf2e3e8b68edf34df01fd3 /app/javascript/styles
parent4f9136d2d55e1547c84fc394c0e5e1bb259d58d2 (diff)
Add double-tap zoom functionary to `ZoomableImage` (#6944)
add <div.zoomable-image__margin/> to keep margin of the image on zooming
move setting `scrollLeft` and `scrollTop` of container from callback of
`setState` to `componentDidUpdate`
add 'hammerjs' package for touch gesture detection
rewrite `ZoomableImage` using 'hammerjs'
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/mastodon/components.scss3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index 2b13b80a7..447e6bc8e 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -1459,9 +1459,6 @@
   position: relative;
   width: 100%;
   height: 100%;
-  display: flex;
-  align-items: center;
-  justify-content: center;
 
   img {
     max-width: $media-modal-media-max-width;