mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
handle deepLink from score saber AND try fix white border
This commit is contained in:
@@ -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"}),
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user