From b27314b6e8c47aaae5635ef9578f75a70495f06d Mon Sep 17 00:00:00 2001 From: Ramon Souza Date: Fri, 14 May 2021 09:47:37 -0300 Subject: [PATCH] fix options button appearing in save chat --- .../ui/components/nav-bar/settings-dropdown/component.jsx | 3 ++- .../ui/components/nav-bar/settings-dropdown/container.jsx | 1 + .../imports/ui/components/nav-bar/styles.scss | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx index 0b6416b89b..bfadcafcbf 100755 --- a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx @@ -278,6 +278,7 @@ class SettingsDropdown extends PureComponent { const { intl, shortcuts: OPEN_OPTIONS_AK, + isDropdownOpen, } = this.props; const { isSettingOpen } = this.state; @@ -297,7 +298,7 @@ class SettingsDropdown extends PureComponent { ghost circle hideLabel - className={styles.btn} + className={isDropdownOpen ? styles.hideDropdownButton : styles.btn} // FIXME: Without onClick react proptypes keep warning // even after the DropdownTrigger inject an onClick handler diff --git a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx index 6c7b282fad..cd6fda6829 100755 --- a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx @@ -23,5 +23,6 @@ export default withTracker((props) => { noIOSFullscreen, isMeteorConnected: Meteor.status().connected, isBreakoutRoom: meetingIsBreakout(), + isDropdownOpen: Session.get('dropdownOpen'), }; })(SettingsDropdownContainer); diff --git a/bigbluebutton-html5/imports/ui/components/nav-bar/styles.scss b/bigbluebutton-html5/imports/ui/components/nav-bar/styles.scss index 906589f39c..42bff493e0 100755 --- a/bigbluebutton-html5/imports/ui/components/nav-bar/styles.scss +++ b/bigbluebutton-html5/imports/ui/components/nav-bar/styles.scss @@ -123,3 +123,9 @@ .dropdown{ z-index: 5; } + +.hideDropdownButton { + @include mq($small-only) { + display: none; + } +}