From 5f50ea137f8e2a9ff6ee8800411355f6d2046b70 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 15 May 2020 17:34:40 -0400 Subject: [PATCH] Updated MediaModal height styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fixes: - Overflow of media when media height exceeds window height. Now, it fits within the window bounds as expected. --- app/javascript/gabsocial/components/modal/media_modal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/gabsocial/components/modal/media_modal.js b/app/javascript/gabsocial/components/modal/media_modal.js index efeee330..19a3f97b 100644 --- a/app/javascript/gabsocial/components/modal/media_modal.js +++ b/app/javascript/gabsocial/components/modal/media_modal.js @@ -256,6 +256,10 @@ class MediaModal extends ImmutablePureComponent { containerStyle={{ alignItems: 'center', width: '100%', + height: '100%', + }} + slideStyle={{ + height: '100%', }} onChangeIndex={this.handleSwipe} onSwitching={this.handleSwitching}