mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
Fix min card size
This commit is contained in:
parent
568e7bc002
commit
958405f4bf
@ -32,7 +32,7 @@ export const NitroCardView: FC<NitroCardViewProps> = props =>
|
||||
const localStorage = GetLocalStorage<WindowSaveOptions>(`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`;
|
||||
|
Loading…
Reference in New Issue
Block a user