about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorEmelia Smith <ThisIsMissEm@users.noreply.github.com>2018-04-04 11:58:15 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-04-04 11:58:15 +0200
commit7a810827040f31fb3936047f444efb77b743ed85 (patch)
treefe50e088fb50cdebf7fce11fe4d21b4f44bb1631 /app/javascript/styles
parent07176fed374b0ef94aacd1f3ea95b6dec2eb79dd (diff)
Revert "Add double-tap zoom functionary to `ZoomableImage` (#6944)" (#7035)
Unfortunately the new hammer.js functionality wasn't correctly tested and didn't work across devices and browsers, as such, it's best to revert PR #6944 until we can revisit this functionality and make it work across all devices and browsers that are supported by Mastodon.

This reverts commit 5021c4e9ca78881f5379a18185a46e580b8f2c34.
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/mastodon/components.scss3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index 6a83be452..d76dc10f1 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -1483,6 +1483,9 @@
   position: relative;
   width: 100%;
   height: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: center;
 
   img {
     max-width: $media-modal-media-max-width;