Skip to content

Commit

Permalink
Add button should be fixed at the end of the task form se701g2#230 (s…
Browse files Browse the repository at this point in the history
…e701g2#249)

* Add button should be fixed at the end of the task form se701g2#230

* remove the extra div
  • Loading branch information
qibao0722 authored Apr 19, 2020
1 parent eaf48f3 commit bfae994
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 6 additions & 3 deletions doto-frontend/src/components/ModalContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@
}

#add-button {
position: relative;
right: -20px;
text-align: right;
padding-top: 40px;
padding-bottom: 15px;
padding-right: 15px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 10px;
padding-left: 10px;
}

.spacing {
Expand Down
10 changes: 4 additions & 6 deletions doto-frontend/src/components/ModalContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const useStyles = makeStyles(theme => ({
root: {
"& > *": {
margin: theme.spacing(1),
width: '55vw',
width: "55vw",
},
},
taskNameInput: {
Expand Down Expand Up @@ -220,14 +220,12 @@ const ModalContent = props => {
<MenuItem value={5}>5 Minutes Before</MenuItem>
</Select>
</FormControl>
<Button id="add-button" variant="contained" color="default" onClick={handleAdd}>
ADD
</Button>
</div>
</form>
</div>
<div id="add-button">
<Button variant="contained" color="default" onClick={handleAdd}>
ADD
</Button>
</div>
</div>
);
};
Expand Down

0 comments on commit bfae994

Please sign in to comment.