Merge pull request #3922 from astrotim/addon-knobs-radios-horizontal

horizontal display for addon-knobs radios UI
This commit is contained in:
Norbert de Langen 2018-08-02 22:47:52 +02:00 committed by GitHub
commit 9e87a74bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,11 @@ const styles = {
fontSize: 11,
padding: '5px',
},
group: {
display: 'flex',
flexWrap: 'wrap',
alignItems: 'center',
},
};
class RadiosType extends Component {
@ -42,7 +47,7 @@ class RadiosType extends Component {
render() {
const { knob, onChange } = this.props;
return <div>{this.renderRadioButtonList(knob, onChange)}</div>;
return <div style={styles.group}>{this.renderRadioButtonList(knob, onChange)}</div>;
}
}