From 77ea5551e9bd423d29d4f4214576a0570a9c3f0c Mon Sep 17 00:00:00 2001 From: Martin Schoeler Date: Thu, 17 Aug 2017 16:13:39 -0300 Subject: [PATCH] Fix flex tab not opening and getting off screen --- packages/rocketchat-theme/client/imports/base.css | 1 + packages/rocketchat-ui/client/views/app/room.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rocketchat-theme/client/imports/base.css b/packages/rocketchat-theme/client/imports/base.css index 0773828c2aa1..89def19ecb05 100644 --- a/packages/rocketchat-theme/client/imports/base.css +++ b/packages/rocketchat-theme/client/imports/base.css @@ -2130,6 +2130,7 @@ label.required::after { flex: 1; display: flex; flex-direction: column; + max-width: 100%; &-wrapper { height: 100%; diff --git a/packages/rocketchat-ui/client/views/app/room.js b/packages/rocketchat-ui/client/views/app/room.js index cca77b686a86..1ff1b9320b04 100644 --- a/packages/rocketchat-ui/client/views/app/room.js +++ b/packages/rocketchat-ui/client/views/app/room.js @@ -320,7 +320,7 @@ Template.room.events({ return Meteor.setTimeout(() => t.sendToBottomIfNecessaryDebounced(), 100); }, - 'click .messages-container'() { + 'click .messages-container-main'() { const user = Meteor.user(); if ((Template.instance().tabBar.getState() === 'opened') && user && user.settings && user.settings.preferences && user.settings.preferences.hideFlexTab) {