fix background

This commit is contained in:
SpikeHD
2022-06-01 17:44:53 -07:00
parent ecd4bff882
commit 7d0326dcdf
3 changed files with 3 additions and 8 deletions

View File

@@ -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();
}

View File

@@ -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 {

View File

@@ -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