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.
|
||||
exe_path.pop();
|
||||
|
||||
println!("{}", exe_path.to_str().unwrap().to_string());
|
||||
|
||||
return exe_path.to_str().unwrap().to_string();
|
||||
}
|
||||
@@ -27,11 +27,8 @@ select:focus {
|
||||
}
|
||||
|
||||
.App {
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: contain !important;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.TopButton {
|
||||
|
||||
@@ -117,7 +117,7 @@ class App extends React.Component<IProps, IState> {
|
||||
return (
|
||||
<div className="App" style={
|
||||
this.state.bgFile ? {
|
||||
background: `url(${this.state.bgFile} fixed`,
|
||||
background: `url(${this.state.bgFile}) fixed`,
|
||||
} : {}
|
||||
}>
|
||||
<TopBar
|
||||
|
||||
Reference in New Issue
Block a user