mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix default panel width (#5403)
* fix default panel width * lint --------- Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
This commit is contained in:
parent
9e2e740033
commit
dd32c632cd
@ -125,9 +125,8 @@ export const usePanel = (arg: UsePanelOptions): UsePanelReturn => {
|
||||
|
||||
_setMinSize(minSizePct);
|
||||
|
||||
const currentSize = panelHandleRef.current.getSize();
|
||||
// Resize if the current size is smaller than the new min size - happens when the window is resized smaller
|
||||
if (currentSize && currentSize < minSizePct) {
|
||||
if (panelHandleRef.current.getSize() < minSizePct) {
|
||||
panelHandleRef.current.resize(minSizePct);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user