Skip to content

Commit

Permalink
#38: fix config container width bug which occurred when closing and r…
Browse files Browse the repository at this point in the history
…eopening sidebar
  • Loading branch information
m4nv3ru committed Apr 11, 2022
1 parent 9fbeb2b commit 66f3529
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
25 changes: 13 additions & 12 deletions ui/src/visualizations/team-awareness/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as d3 from 'd3';
import { getState } from './util/util';
import _ from 'lodash';
import ActivityTimeline from './components/Timeline/ActivityTimeline';
import styles from './config.scss';

const mapStateToProps = (appState /*, ownProps*/) => {
const { config, data } = getState(appState);
Expand Down Expand Up @@ -36,7 +37,18 @@ class ConfigComponent extends React.Component {
const { onActivityDimensionsRestricted, onSelectActivityScale } = this.props;
const { activityTimeline, yDims } = this.props.data;
return (
<div>
<div className={styles.configContainer}>
<div>
<div>Activity:</div>
<div>
<select value={this.props.config.selectedActivityScale} onChange={value => onSelectActivityScale(value)}>
<option value="commits">Commits</option>
<option value="activity">Additions & Deletions</option>
<option value="additions">Additions</option>
<option value="deletions">Deletions</option>
</select>
</div>
</div>
<div>
<div>Timeline</div>
<ActivityTimeline
Expand All @@ -50,17 +62,6 @@ class ConfigComponent extends React.Component {
onDimensionsRestricted={dims => onActivityDimensionsRestricted(dims)}
/>
</div>
<div>
<div>Activity:</div>
<div>
<select value={this.props.config.selectedActivityScale} onChange={value => onSelectActivityScale(value)}>
<option value="commits">Commits</option>
<option value="activity">Additions & Deletions</option>
<option value="additions">Additions</option>
<option value="deletions">Deletions</option>
</select>
</div>
</div>
</div>
);
}
Expand Down
3 changes: 3 additions & 0 deletions ui/src/visualizations/team-awareness/config.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.configContainer {
width: 100%;
}

0 comments on commit 66f3529

Please sign in to comment.