mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Akshay Joshi
parent
faff8d1fb3
commit
c5ca394cec
@@ -155,6 +155,7 @@ export class LayoutHelper {
|
||||
return {
|
||||
cached: true,
|
||||
group: 'default',
|
||||
minWidth: 200,
|
||||
...attrs,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user