From 958405f4bf19e81a1d3d03876b6d6754b5c084e8 Mon Sep 17 00:00:00 2001 From: Breno Andrade Date: Fri, 17 Feb 2023 12:59:43 -0300 Subject: [PATCH] Fix min card size --- src/common/card/NitroCardView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/card/NitroCardView.tsx b/src/common/card/NitroCardView.tsx index 236f615f..e787781f 100644 --- a/src/common/card/NitroCardView.tsx +++ b/src/common/card/NitroCardView.tsx @@ -32,7 +32,7 @@ export const NitroCardView: FC = props => const localStorage = GetLocalStorage(`nitro.windows.${ uniqueKey }`); const element = elementRef.current; - if(localStorage && localStorage.size) + if(localStorage && localStorage.size && localStorage.size.width > 0 && localStorage.size.height > 0) { element.style.width = `${ localStorage.size.width }px`; element.style.height = `${ localStorage.size.height }px`;