mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
fix background
This commit is contained in:
@@ -61,7 +61,5 @@ pub fn install_location() -> String {
|
|||||||
// Get the path to the executable.
|
// Get the path to the executable.
|
||||||
exe_path.pop();
|
exe_path.pop();
|
||||||
|
|
||||||
println!("{}", exe_path.to_str().unwrap().to_string());
|
|
||||||
|
|
||||||
return exe_path.to_str().unwrap().to_string();
|
return exe_path.to_str().unwrap().to_string();
|
||||||
}
|
}
|
||||||
@@ -27,11 +27,8 @@ select:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.App {
|
.App {
|
||||||
background-repeat: no-repeat;
|
background-size: contain !important;
|
||||||
background-size: cover;
|
background-position: center;
|
||||||
-webkit-background-size: cover;
|
|
||||||
-moz-background-size: cover;
|
|
||||||
-o-background-size: cover;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.TopButton {
|
.TopButton {
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class App extends React.Component<IProps, IState> {
|
|||||||
return (
|
return (
|
||||||
<div className="App" style={
|
<div className="App" style={
|
||||||
this.state.bgFile ? {
|
this.state.bgFile ? {
|
||||||
background: `url(${this.state.bgFile} fixed`,
|
background: `url(${this.state.bgFile}) fixed`,
|
||||||
} : {}
|
} : {}
|
||||||
}>
|
}>
|
||||||
<TopBar
|
<TopBar
|
||||||
|
|||||||
Reference in New Issue
Block a user