We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1b429 commit 88c3a71Copy full SHA for 88c3a71
invokeai/frontend/web/src/features/ui/hooks/usePanel.ts
@@ -203,14 +203,14 @@ export const usePanel = (arg: UsePanelOptions): UsePanelReturn => {
203
204
const onDoubleClickHandle = useCallback(() => {
205
// If the panel is really super close to the min size, collapse it
206
- if (Math.abs((panelHandleRef.current?.getSize() ?? 0) - _minSize) < 0.01) {
+ if (Math.abs((panelHandleRef.current?.getSize() ?? 0) - _defaultSize) < 0.01) {
207
collapse();
208
return;
209
}
210
211
// Otherwise, resize to the min size
212
panelHandleRef.current?.resize(_defaultSize);
213
- }, [_defaultSize, _minSize, collapse]);
+ }, [_defaultSize, collapse]);
214
215
return {
216
ref: panelHandleRef,
0 commit comments