handle deepLink from score saber AND try fix white border

This commit is contained in:
MathieuG-P
2022-12-19 01:55:20 +01:00
parent a786be653c
commit 714837286f
7 changed files with 37 additions and 27 deletions
@@ -16,10 +16,11 @@ export const BsmImage = forwardRef(({className, image, errorImage, placeholder,
const [isLoaded, setIsLoaded] = useState(false);
const styles: CSSProperties = (() => {
return {
return placeholder && {
...style,
...(!isLoaded && {backgroundImage: `url(${placeholder})`}),
...(!isLoaded && {backgroundSize: "cover"})
...(!isLoaded && {backgroundSize: "cover"}),
...(!isLoaded && {backgroundPosition: "center"}),
}
})();