1. Add min width to panels.

2. Fix issues related to New connection in query tool. Also fixed some existing bugs related to this.

refs #6131
This commit is contained in:
Aditya Toshniwal
2022-04-22 18:17:01 +05:30
committed by Akshay Joshi
parent faff8d1fb3
commit c5ca394cec
4 changed files with 130 additions and 66 deletions

View File

@@ -155,6 +155,7 @@ export class LayoutHelper {
return {
cached: true,
group: 'default',
minWidth: 200,
...attrs,
};
}

View File

@@ -242,10 +242,15 @@ export const useModalStyles = makeStyles((theme) => ({
}
}));
function ModalContainer({ id, title, content, dialogHeight, dialogWidth, fullScreen = false, isFullWidth = false, showFullScreen = false, isResizeable = false }) {
function ModalContainer({ id, title, content, dialogHeight, dialogWidth, onClose, fullScreen = false, isFullWidth = false, showFullScreen = false, isResizeable = false }) {
let useModalRef = useModal();
const classes = useModalStyles();
let closeModal = () => useModalRef.closeModal(id);
let closeModal = (_e, reason) => {
useModalRef.closeModal(id);
if(reason == 'escapeKeyDown') {
onClose?.();
}
};
const [isfullScreen, setIsFullScreen] = useState(fullScreen);
return (
@@ -292,4 +297,5 @@ ModalContainer.propTypes = {
isResizeable: PropTypes.bool,
dialogHeight: PropTypes.number,
dialogWidth: PropTypes.number,
onClose: PropTypes.func,
};