mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
fix gc checkbox with new element
This commit is contained in:
BIN
grasscutter.zip
Normal file
BIN
grasscutter.zip
Normal file
Binary file not shown.
16
src/ui/components/ServerLaunchSection.css
Normal file
16
src/ui/components/ServerLaunchSection.css
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#serverControls .CheckboxDisplay {
|
||||||
|
border-color: #fff;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#serverControls .Checkbox {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#serverControls .CheckboxDisplay {
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#serverControls .Checkbox label {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
@@ -4,6 +4,8 @@ import BigButton from './common/BigButton'
|
|||||||
import { getConfig, saveConfig } from '../../utils/configuration'
|
import { getConfig, saveConfig } from '../../utils/configuration'
|
||||||
import { invoke } from '@tauri-apps/api/tauri'
|
import { invoke } from '@tauri-apps/api/tauri'
|
||||||
|
|
||||||
|
import './ServerLaunchSection.css'
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
[key: string]: any
|
[key: string]: any
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,4 +18,9 @@
|
|||||||
.CheckboxDisplay img {
|
.CheckboxDisplay img {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
/* filter: invert(78%) sepia(91%) saturate(923%) hue-rotate(334deg) brightness(106%) contrast(102%); */
|
/* filter: invert(78%) sepia(91%) saturate(923%) hue-rotate(334deg) brightness(106%) contrast(102%); */
|
||||||
|
}
|
||||||
|
|
||||||
|
.Checkbox label {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
@@ -36,6 +36,7 @@ export default class Checkbox extends React.Component<IProps, IState> {
|
|||||||
<div className="CheckboxDisplay">
|
<div className="CheckboxDisplay">
|
||||||
{this.state.checked ? <img src={checkmark} alt='Checkmark' /> : null}
|
{this.state.checked ? <img src={checkmark} alt='Checkmark' /> : null}
|
||||||
</div>
|
</div>
|
||||||
|
<span>{this.props.label}</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user