mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Multiple UI improvements (#3317)
Removing break all Replacing jquery selectors and some other UI improvements Removing jquery selector
This commit is contained in:
committed by
Joram Wilander
parent
af4110b2ed
commit
f6b4a611d0
@@ -10,6 +10,7 @@ import Constants from 'utils/constants.jsx';
|
||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
|
||||
const Preferences = Constants.Preferences;
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import {Overlay} from 'react-bootstrap';
|
||||
|
||||
@@ -47,8 +48,17 @@ export default class TutorialTip extends React.Component {
|
||||
return;
|
||||
}
|
||||
|
||||
this.closeRightSidebar();
|
||||
this.toggle();
|
||||
}
|
||||
closeRightSidebar() {
|
||||
if (Utils.isMobile()) {
|
||||
setTimeout(() => {
|
||||
document.querySelector('.app__body .inner-wrap').classList.remove('move--left-small');
|
||||
document.querySelector('.app__body .sidebar--menu').classList.remove('move--left');
|
||||
});
|
||||
}
|
||||
}
|
||||
skipTutorial(e) {
|
||||
e.preventDefault();
|
||||
|
||||
@@ -94,7 +104,7 @@ export default class TutorialTip extends React.Component {
|
||||
}
|
||||
|
||||
var tutorialGifImage = tutorialGif;
|
||||
if (this.props.overlayClass === 'tip-overlay--header' || this.props.overlayClass === 'tip-overlay--sidebar') {
|
||||
if (this.props.overlayClass === 'tip-overlay--header' || this.props.overlayClass === 'tip-overlay--sidebar' || this.props.overlayClass === 'tip-overlay--header--up') {
|
||||
tutorialGifImage = tutorialGifWhite;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user