BottomBar elements now align to right

This commit is contained in:
Wehi
2023-05-10 03:15:48 +02:00
parent 9dcaea7e5b
commit c6abf53880
3 changed files with 57 additions and 29 deletions

View File

@@ -109,6 +109,11 @@ select:focus {
margin: 0;
text-align: right;
/* Gradient shadow */
-webkit-box-shadow: inset 0px -150px 96px -85px rgba(0,0,0,0.43);
-moz-box-shadow: inset 0px -150px 96px -85px rgba(0,0,0,0.43);
box-shadow: inset 0px -150px 96px -85px rgba(0,0,0,0.43);
}
@media (max-height: 580px) {

View File

@@ -25,8 +25,10 @@
#serverControls {
color: white;
text-shadow: 1px 1px 8px black;
align-self: flex-end;
margin-top: 10px;
margin-bottom: -10px;
}
.BottomSection .CheckboxDisplay {
@@ -55,8 +57,8 @@
.ServerConfig .Checkbox {
display: inline-grid;
vertical-align: middle;
margin-left: 8px;
margin-top: 10px;
}
.ServerLaunchButtons {
@@ -102,8 +104,24 @@
box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
}
.ServerConfig .TextInputWrapper {
display: inline-block;
.ServerConfig {
display: grid;
height: 100px;
grid-template-columns: 1;
grid-template-rows: repeat(2, 1fr);
justify-content: flex-end;
}
.ServerConfigGrid {
display: flex;
justify-content: flex-end;
align-items: center;
}
#ServerConfigCheckbox {
margin-bottom: -10px;
margin-top: 10px;
}
#ip {

View File

@@ -277,30 +277,34 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
{this.state.grasscutterEnabled && (
<div>
<div className="ServerConfig" id="serverConfigContainer">
<TextInput
id="ip"
key="ip"
placeholder={this.state.ipPlaceholder}
onChange={this.setIp}
initalValue={this.state.ip}
/>
<TextInput
style={{
width: '10%',
}}
id="port"
key="port"
placeholder={this.state.portPlaceholder}
onChange={this.setPort}
initalValue={this.state.port}
/>
<HelpButton contents={this.state.portHelpText} />
<Checkbox
id="httpsEnable"
label={this.state.httpsLabel}
onChange={this.toggleHttps}
checked={this.state.httpsEnabled}
/>
<div id="ServerConfigCheckbox">
<Checkbox
id="httpsEnable"
label={this.state.httpsLabel}
onChange={this.toggleHttps}
checked={this.state.httpsEnabled}
/>
</div>
<div className="ServerConfigGrid">
<TextInput
id="ip"
key="ip"
placeholder={this.state.ipPlaceholder}
onChange={this.setIp}
initalValue={this.state.ip}
/>
<TextInput
style={{
width: '10%',
}}
id="port"
key="port"
placeholder={this.state.portPlaceholder}
onChange={this.setPort}
initalValue={this.state.port}
/>
<HelpButton contents={this.state.portHelpText} />
</div>
</div>
</div>
)}
@@ -314,6 +318,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
<img className="ExtrasIcon" id="extrasIcon" src={Plus} />
</BigButton>
)}
<BigButton onClick={this.launchServer} id="serverLaunch">
<img className="ServerIcon" id="serverLaunchIcon" src={Server} />
</BigButton>