diff --git a/web/pgadmin/dashboard/static/js/Dashboard.jsx b/web/pgadmin/dashboard/static/js/Dashboard.jsx index 754f0cd99ae..de673617413 100644 --- a/web/pgadmin/dashboard/static/js/Dashboard.jsx +++ b/web/pgadmin/dashboard/static/js/Dashboard.jsx @@ -1064,7 +1064,7 @@ function Dashboard({ {!_.isUndefined(preferences) && preferences.show_activity && ( - + - + - + ({ }, })); -export default function SectionContainer({title, titleExtras, children, style}) { +export default function SectionContainer({title, titleExtras, children, style, resizable = false, defaultHeight = 200}) { + const content = ( + <> + +
{title}
+
+ {titleExtras} +
+
+ + {children} + + + ); + return ( - - -
{title}
-
- {titleExtras} -
-
- - {children} - -
+ {resizable ? ( + + {content} + + ) : ( + content + )}
); } @@ -70,4 +80,6 @@ SectionContainer.propTypes = { titleExtras: PropTypes.node, children: PropTypes.node.isRequired, style: PropTypes.object, + resizable: PropTypes.bool, + defaultHeight: PropTypes.number, };