From 82fd74d101838396fc6462d15106624294b78868 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Thu, 10 Nov 2016 23:21:24 +0100
Subject: Fix modals sizing and add animation to it, fix #140 by only making
 the text of status clickable (this also fixes multiple dropdown being
 openable at the same time)

---
 .../components/features/ui/containers/modal_container.jsx            | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'app/assets/javascripts/components/features/ui/containers/modal_container.jsx')

diff --git a/app/assets/javascripts/components/features/ui/containers/modal_container.jsx b/app/assets/javascripts/components/features/ui/containers/modal_container.jsx
index b6c022736..cd7d63a4a 100644
--- a/app/assets/javascripts/components/features/ui/containers/modal_container.jsx
+++ b/app/assets/javascripts/components/features/ui/containers/modal_container.jsx
@@ -19,9 +19,8 @@ const mapDispatchToProps = dispatch => ({
 
 const imageStyle = {
   display: 'block',
-  maxWidth: '100%',
-  height: 'auto',
-  margin: '0 auto'
+  maxWidth: '80vw',
+  maxHeight: '80vh'
 };
 
 const Modal = React.createClass({
-- 
cgit 

