Rearrange tools menu on the basis of usability and form groups of similar sub-menus.

This commit is contained in:
Akshay Joshi
2021-12-16 18:29:44 +05:30
parent 8cfdfd898d
commit 92a997b16a
16 changed files with 77 additions and 64 deletions

View File

@@ -498,7 +498,7 @@ define('pgadmin.browser.node', [
return null;
},
addUtilityPanel: function() {
addUtilityPanel: function(width, height) {
var body = window.document.body,
el = document.createElement('div');
@@ -506,10 +506,10 @@ define('pgadmin.browser.node', [
var new_panel = pgBrowser.docker.addPanel(
'utility_props', window.wcDocker.DOCK.FLOAT, undefined, {
w: (screen.width < 700 ?
screen.width * 0.95 : screen.width * 0.5),
h: (screen.height < 500 ?
screen.height * 0.95 : screen.height * 0.5),
w: (!_.isUndefined(width) && !_.isNull(width)) ? width :
(screen.width < 700 ? screen.width * 0.95 : screen.width * 0.5),
h: (!_.isUndefined(height) && !_.isNull(height)) ? height :
(screen.height < 500 ? screen.height * 0.95 : screen.height * 0.5),
x: (screen.width < 700 ? '2%' : '25%'),
y: (screen.height < 500 ? '2%' : '25%'),
}