diff --git a/invokeai/frontend/web/src/features/ui/hooks/usePanel.ts b/invokeai/frontend/web/src/features/ui/hooks/usePanel.ts index 7b748e79a06..871bd931352 100644 --- a/invokeai/frontend/web/src/features/ui/hooks/usePanel.ts +++ b/invokeai/frontend/web/src/features/ui/hooks/usePanel.ts @@ -250,5 +250,5 @@ const getSizeAsPercentage = ( }); // The final value is a percentage of the available space - return (sizeInPixels / availableSpace) * 100; + return Math.min((sizeInPixels / availableSpace) * 100, 100); };