From d40900be40f6109f86da3538faddba60ae661864 Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Fri, 10 Jun 2016 12:35:34 +0100 Subject: [PATCH] fix style preview --- .../ng2-alfresco-viewer/src/viewer.component.css | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ng2-components/ng2-alfresco-viewer/src/viewer.component.css b/ng2-components/ng2-alfresco-viewer/src/viewer.component.css index a3e23b8595..b471772553 100644 --- a/ng2-components/ng2-alfresco-viewer/src/viewer.component.css +++ b/ng2-components/ng2-alfresco-viewer/src/viewer.component.css @@ -53,16 +53,17 @@ } .viewer-image { - width: 100%; - height: 100%; + max-height: 100%; + margin: auto; } .center-element { - display: flex; - align-items: center; - justify-content: center; - } + display: flex; + align-items: center; + justify-content: center; +} .viewer-content-container { width: 100%; + margin: auto; }