more menu
This commit is contained in:
parent
95e5d493af
commit
2889e388e4
@ -289,16 +289,31 @@ header {
|
||||
}
|
||||
|
||||
.menu-instance-btn {
|
||||
box-sizing: border-box;
|
||||
flex: 1 1 100%;
|
||||
font-size: 1.5em;
|
||||
border-width: 2px;
|
||||
padding: 0.5em;
|
||||
margin-right: 0.5em;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.create-form {
|
||||
flex: 1;
|
||||
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
border: 1px solid whitesmoke;
|
||||
padding: 1em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.create-form select, .create-form input, .create-form label {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.create-form button {
|
||||
flex: 0 1 25%;
|
||||
font-size: 1.5em;
|
||||
display: block;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -415,6 +430,7 @@ header {
|
||||
table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
table td {
|
||||
|
||||
@ -51,34 +51,30 @@ class InstanceCreateForm extends Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div
|
||||
className="">
|
||||
<div className="create-form">
|
||||
<div>+</div>
|
||||
<label>instance name</label>
|
||||
<input
|
||||
className="login-input"
|
||||
type="text"
|
||||
value={this.state.name}
|
||||
placeholder="name"
|
||||
onChange={this.nameChange}
|
||||
/>
|
||||
<label htmlFor="playerSelect">players</label>
|
||||
<select id="playerSelect"
|
||||
onChange={this.playersChange}
|
||||
>
|
||||
<option value={1}>pve</option>
|
||||
<option selected value={2}>2</option>
|
||||
<option value={4}>4</option>
|
||||
<option value={8}>8</option>
|
||||
<option value={16}>16</option>
|
||||
</select>
|
||||
<button
|
||||
onClick={this.handleSubmit}
|
||||
type="submit">
|
||||
create
|
||||
</button>
|
||||
</div>
|
||||
<div className="create-form">
|
||||
<label>instance name</label>
|
||||
<input
|
||||
className="login-input"
|
||||
type="text"
|
||||
value={this.state.name}
|
||||
placeholder="name"
|
||||
onChange={this.nameChange}
|
||||
/>
|
||||
<label htmlFor="playerSelect">players</label>
|
||||
<select id="playerSelect"
|
||||
onChange={this.playersChange}
|
||||
>
|
||||
<option value={1}>pve</option>
|
||||
<option selected value={2}>2</option>
|
||||
<option value={4}>4</option>
|
||||
<option value={8}>8</option>
|
||||
<option value={16}>16</option>
|
||||
</select>
|
||||
<button
|
||||
onClick={this.handleSubmit}
|
||||
type="submit">
|
||||
+
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -80,8 +80,8 @@ function Menu(args) {
|
||||
{instancePanels}
|
||||
</tbody>
|
||||
</table>
|
||||
{mmSet}
|
||||
<InstanceCreateForm />
|
||||
{mmSet}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user