summaryrefslogtreecommitdiffstats
path: root/webapp/components/tutorial/tutorial_intro_screens.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmoodspin@users.noreply.github.com>2016-06-16 22:20:43 +0500
committerCorey Hulen <corey@hulen.com>2016-06-16 09:20:43 -0800
commitb130a32eaccb6f46ad90eb252291b8376435fb60 (patch)
treea1e466c7799e220adb828ec2e3d748056d2c7be4 /webapp/components/tutorial/tutorial_intro_screens.jsx
parentca138883ab5416706ee3eea866640add338c11f9 (diff)
downloadchat-b130a32eaccb6f46ad90eb252291b8376435fb60.tar.gz
chat-b130a32eaccb6f46ad90eb252291b8376435fb60.tar.bz2
chat-b130a32eaccb6f46ad90eb252291b8376435fb60.zip
Multiple UI fixes (#3357)
* Multiple UI fixes * Removing utils from tutorial file
Diffstat (limited to 'webapp/components/tutorial/tutorial_intro_screens.jsx')
-rw-r--r--webapp/components/tutorial/tutorial_intro_screens.jsx57
1 files changed, 25 insertions, 32 deletions
diff --git a/webapp/components/tutorial/tutorial_intro_screens.jsx b/webapp/components/tutorial/tutorial_intro_screens.jsx
index 277ff967f..af1ac4760 100644
--- a/webapp/components/tutorial/tutorial_intro_screens.jsx
+++ b/webapp/components/tutorial/tutorial_intro_screens.jsx
@@ -4,7 +4,6 @@
import UserStore from 'stores/user_store.jsx';
import TeamStore from 'stores/team_store.jsx';
import PreferenceStore from 'stores/preference_store.jsx';
-import * as Utils from 'utils/utils.jsx';
import * as AsyncClient from 'utils/async_client.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
@@ -218,40 +217,34 @@ export default class TutorialIntroScreens extends React.Component {
);
}
render() {
- const height = Utils.windowHeight() - 100;
const screen = this.createScreen();
return (
- <div
- className='tutorials__scroll'
- style={{height}}
- >
- <div className='tutorial-steps__container'>
- <div className='tutorial__content'>
- <div className='tutorial__steps'>
- {screen}
- <div className='tutorial__footer'>
- <button
- className='btn btn-primary'
- tabIndex='1'
- onClick={this.handleNext}
- >
- <FormattedMessage
- id='tutorial_intro.next'
- defaultMessage='Next'
- />
- </button>
- <a
- className='tutorial-skip'
- href='#'
- onClick={this.skipTutorial}
- >
- <FormattedMessage
- id='tutorial_intro.skip'
- defaultMessage='Skip tutorial'
- />
- </a>
- </div>
+ <div className='tutorial-steps__container'>
+ <div className='tutorial__content'>
+ <div className='tutorial__steps'>
+ {screen}
+ <div className='tutorial__footer'>
+ <button
+ className='btn btn-primary'
+ tabIndex='1'
+ onClick={this.handleNext}
+ >
+ <FormattedMessage
+ id='tutorial_intro.next'
+ defaultMessage='Next'
+ />
+ </button>
+ <a
+ className='tutorial-skip'
+ href='#'
+ onClick={this.skipTutorial}
+ >
+ <FormattedMessage
+ id='tutorial_intro.skip'
+ defaultMessage='Skip tutorial'
+ />
+ </a>
</div>
</div>
</div>