fix: playground parameters area resizable
This commit is contained in:
@@ -81,8 +81,13 @@ const TextToImages: React.FC = () => {
|
||||
}, [modelList]);
|
||||
|
||||
useEffect(() => {
|
||||
if (size.width < breakpoints.lg && !groundTabRef1.current?.collapse) {
|
||||
groundTabRef1.current?.setCollapse?.();
|
||||
if (size.width < breakpoints.lg) {
|
||||
if (!groundTabRef1.current?.collapse) {
|
||||
groundTabRef1.current?.setCollapse?.();
|
||||
}
|
||||
if (!groundTabRef2.current?.collapse) {
|
||||
groundTabRef2.current?.setCollapse?.();
|
||||
}
|
||||
}
|
||||
}, [size.width]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user