Fix min card size

This commit is contained in:
Breno Andrade 2023-02-17 12:59:43 -03:00 committed by GitHub
parent 568e7bc002
commit 958405f4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ export const NitroCardView: FC<NitroCardViewProps> = props =>
const localStorage = GetLocalStorage<WindowSaveOptions>(`nitro.windows.${ uniqueKey }`); const localStorage = GetLocalStorage<WindowSaveOptions>(`nitro.windows.${ uniqueKey }`);
const element = elementRef.current; 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.width = `${ localStorage.size.width }px`;
element.style.height = `${ localStorage.size.height }px`; element.style.height = `${ localStorage.size.height }px`;