Skip to content

Commit

Permalink
responsive table data entry
Browse files Browse the repository at this point in the history
  • Loading branch information
bbailey27 committed Dec 30, 2019
1 parent b33dd3f commit ca6e69b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,23 @@
.table-list {
padding-left: 0;
margin: 0;
width: 100%;
display: flex;
flex-direction: column;
}

.table-row {
display: flex;
flex-direction: row;
}

@media (max-width: 800px) {
.table-row {
flex-direction: column;
padding: 1.5rem 0;
}
}

.result-list-item {
list-style: none;
}
Expand All @@ -96,8 +106,14 @@
margin: 1.5rem;
}

.remove-button {
background-color: #eb4034;
color: white;
font-weight: bolder;
}

.run-button {
background-color: lightblue;
background-color: rgb(140, 185, 253);
height: 3rem;
width: 7rem;
font-size: medium;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/DataEntry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class DataEntry extends Component {
this.setState({firstRun: false});
}
}

// TODO change to across the top to have more room for table data entry
render() {
const {
options,
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Tables.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Tables extends Component {

render() {
return (
<div className='tables'>
<div className='tables data-entry-section'>
<h3>Tables</h3>
<p style={{padding:'0 1rem', marginTop: 0}}>(Optional) Please enter a comma-separated list of games for each round</p>
{this.renderTableRows()}
Expand Down

0 comments on commit ca6e69b

Please sign in to comment.