]> cat aescling's git repositories - mastodon.git/commitdiff
Fix for Drawer growing horizontally
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 5 Sep 2016 23:45:17 +0000 (01:45 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 5 Sep 2016 23:45:17 +0000 (01:45 +0200)
app/assets/javascripts/components/components/drawer.jsx

index cd43440f54edea0bba4859f445b347e7ae119efc..dfba11ad2f0675afe12d9a29ad54fd0a811c1116 100644 (file)
@@ -6,7 +6,7 @@ const Drawer = React.createClass({
 
   render () {
     return (
-      <div style={{ width: '280px', flex: '0', boxSizing: 'border-box', background: '#454b5e', margin: '10px', marginRight: '0', padding: '0', display: 'flex', flexDirection: 'column' }}>
+      <div style={{ width: '280px', flex: '0 0 auto', boxSizing: 'border-box', background: '#454b5e', margin: '10px', marginRight: '0', padding: '0', display: 'flex', flexDirection: 'column' }}>
         {this.props.children}
       </div>
     );