Skip to content
Snippets Groups Projects
Commit 99978322 authored by vimal1083's avatar vimal1083
Browse files

Fix Width issue in Filters

parent b2e9899c
No related branches found
No related tags found
No related merge requests found
......@@ -50,9 +50,8 @@ class SwitcherApp extends React.Component {
componentDidUpdate(prevProps) {
if (prevProps.searchParam !== this.props.searchParam) {
if (prevProps.searchParam !== this.props.searchParam && !document.body.classList.contains('app-open')){
const success = this.props.processParams(this.props.searchParam)
if (!success) {
this.closeDetail()
} else {
......
......@@ -11,13 +11,12 @@ import ListItemText from '@material-ui/core/ListItemText';
import Input from '@material-ui/core/Input';
const styles = {
formControl:{
minWidth: 200 ,
maxWidth: 200,
formControl: {
width: '100%',
marginRight: 10,
height: 40
},
};
height: 40,
}
}
class FilterDropDown extends React.PureComponent {
......
.filter-container {
margin: 0 auto ;
padding: 15px;
display: flex;
justify-content: space-evenly;
align-content: center;
align-items: center;
justify-content: space-between;
}
.delete-button {
......
......@@ -160,7 +160,6 @@ export const loadSubmissionFromURL = (params) => (dispatch, getState) => {
if (urlParams.has('submission')) {
const activeId = Number(urlParams.get('submission'));
const submissionID = getCurrentSubmissionID(getState());
if (activeId !== null && submissionID !== activeId) {
dispatch(setCurrentSubmission(activeId));
}
......@@ -188,7 +187,6 @@ const setSubmissionParam = (id) => (dispatch, getState) => {
const shouldSet = !urlID && !!id;
const shouldUpdate = id !== null && submissionID !== id && urlID !== id;
if (shouldSet || shouldUpdate) {
dispatch(push({search: `?submission=${id}`}));
} else if (id === null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment