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

View File

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

View File

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