about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-09 00:21:59 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-08 17:21:59 +0200
commit76318f88306656a4a74f190375a78713327bc4e4 (patch)
tree2a15a22f78ebb218c5b903f8231bb4a5e436d4c9 /app/javascript/styles
parent852bda3d320563400eaa74f02ef0c6c73cd8180d (diff)
Don't use preview when image size is unknown (#4113)
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/components.scss14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss
index 9b500c7ad..66d2715da 100644
--- a/app/javascript/styles/components.scss
+++ b/app/javascript/styles/components.scss
@@ -1117,6 +1117,20 @@
     height: 100%;
     background-image: none;
   }
+
+  &.image-loader--amorphous {
+    position: static;
+
+    .image-loader__preview-canvas {
+      display: none;
+    }
+
+    .image-loader__img {
+      position: static;
+      width: auto;
+      height: auto;
+    }
+  }
 }
 
 .navigation-bar {