mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-02-04 09:25:16 +01:00
Update launch_args and fix login timeout to use the options OptionSection for better UX and easier for theming
This commit is contained in:
@@ -823,25 +823,32 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
<Tr text="components.delete" />
|
<Tr text="components.delete" />
|
||||||
</BigButton>
|
</BigButton>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="OptionSection" id="menuOptionsContainerLaunchArgs">
|
||||||
<div className="OptionLabel" id="menuOptionsLaunchArgs">
|
<div className="OptionLabel" id="menuOptionsLaunchArgs">
|
||||||
<Tr text="options.launch_args" />
|
<Tr text="options.launch_args" />
|
||||||
</div>
|
</div>
|
||||||
<TextInput
|
<div className="OptionValue" id="menuOptionsValueLaunchArgs">
|
||||||
id="launch_args"
|
<TextInput
|
||||||
key="launch_args"
|
id="launch_args"
|
||||||
placeholder={'-arg=value'}
|
key="launch_args"
|
||||||
onChange={this.setLaunchArgs}
|
placeholder={'-arg=value'}
|
||||||
value={this.state.launch_args}
|
onChange={this.setLaunchArgs}
|
||||||
/>
|
value={this.state.launch_args}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="OptionLabel" id="menuOptionsLabelFixRes">
|
<div className="OptionSection" id="menuOptionsContainerFixRes">
|
||||||
<Tr text="options.fix_res" />
|
<div className="OptionLabel" id="menuOptionsLabelFixRes">
|
||||||
</div>
|
<Tr text="options.fix_res" />
|
||||||
<div className="OptionValue" id="menuOptionsButtonfixRes">
|
</div>
|
||||||
<BigButton onClick={this.fixRes} id="fixRes">
|
<div className="OptionValue" id="menuOptionsButtonfixRes">
|
||||||
<Tr text="components.fix" />
|
<BigButton onClick={this.fixRes} id="fixRes">
|
||||||
</BigButton>
|
<Tr text="components.fix" />
|
||||||
|
</BigButton>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Menu>
|
</Menu>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user