diff options
author | Stas Vovk <stasvovk@gmail.com> | 2015-10-13 14:52:29 +0300 |
---|---|---|
committer | Stas Vovk <stasvovk@gmail.com> | 2015-10-13 14:52:29 +0300 |
commit | a1328fc8b5d03ec73f1bad588d2f0bb688b1c206 (patch) | |
tree | 4d47c0e181ebe961ab2a8a02f2698faeafba9434 /web/react/components/setting_item_max.jsx | |
parent | 822881e51aa2edce1c4d7d2e11bc44c3886daf1e (diff) | |
parent | 0144b6fd8a95c6b65695b07483a528707dce1cfe (diff) | |
download | chat-a1328fc8b5d03ec73f1bad588d2f0bb688b1c206.tar.gz chat-a1328fc8b5d03ec73f1bad588d2f0bb688b1c206.tar.bz2 chat-a1328fc8b5d03ec73f1bad588d2f0bb688b1c206.zip |
Merge branch 'master' into PLT-589
Diffstat (limited to 'web/react/components/setting_item_max.jsx')
-rw-r--r-- | web/react/components/setting_item_max.jsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/web/react/components/setting_item_max.jsx b/web/react/components/setting_item_max.jsx index d2cbc798e..4f0fe3ed0 100644 --- a/web/react/components/setting_item_max.jsx +++ b/web/react/components/setting_item_max.jsx @@ -32,11 +32,17 @@ export default class SettingItemMax extends React.Component { } var inputs = this.props.inputs; + var widthClass; + if (this.props.width === 'full') { + widthClass = 'col-sm-12'; + } else { + widthClass = 'col-sm-9 col-sm-offset-3'; + } return ( <ul className='section-max form-horizontal'> <li className='col-sm-12 section-title'>{this.props.title}</li> - <li className='col-sm-9 col-sm-offset-3'> + <li className={widthClass}> <ul className='setting-list'> <li className='setting-list-item'> {inputs} @@ -69,5 +75,6 @@ SettingItemMax.propTypes = { extraInfo: React.PropTypes.element, updateSection: React.PropTypes.func, submit: React.PropTypes.func, - title: React.PropTypes.string + title: React.PropTypes.string, + width: React.PropTypes.string }; |