Skip to content

Commit

Permalink
Style input to be beside the table and add label
Browse files Browse the repository at this point in the history
  • Loading branch information
moeezm committed Dec 28, 2019
1 parent bb72a20 commit 1ff9c52
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 7 additions & 5 deletions client/src/Matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ class Matches extends React.Component {

render() {
return(
<div>
<div className="matchesContainer">
<h2>Matches</h2>
{this.props.event_code ? [

<form className="searchTeam">
<label>Search Team: </label>
<input type="text" id="team_to_search" name="team_to_search" onChangeCapture={this.onTeamChange} />
</form>,

<table className='matches'>
<thead>
<tr><th className='matchNumber rightDivider'>Number</th>
Expand All @@ -46,10 +52,6 @@ class Matches extends React.Component {
</tbody>
</table>,

<form>
<input type="text" id="team_to_search" name="team_to_search" onChangeCapture={this.onTeamChange} />
</form>,

] :<span>Select an event</span>}
</div>
);
Expand Down
9 changes: 9 additions & 0 deletions client/src/Strategy.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ text-align: left;
padding-right: 1em;
}

.matchesContainer {
display: inline-block;
}

.searchTeam {
float: right;
margin-left: 1vw;
}

th.rightDivider, td.rightDivider {
border-right: var(--divider);
}
Expand Down

0 comments on commit 1ff9c52

Please sign in to comment.