mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-07 11:45:07 -05:00
Fixed controls alignment responsiveness to docker size change.
This commit is contained in:
committed by
Akshay Joshi
parent
f779378e8a
commit
48660508ce
@@ -147,27 +147,28 @@ define(
|
||||
}
|
||||
p.pgResizeTimeout = setTimeout(
|
||||
function() {
|
||||
var w = p.width();
|
||||
var w = p.width(),
|
||||
elAttr = 'xs';
|
||||
p.pgResizeTimeout = null;
|
||||
|
||||
/** Calculations based on https://getbootstrap.com/docs/4.1/layout/grid/#grid-options **/
|
||||
if (w < 480) {
|
||||
w = 'xs';
|
||||
elAttr = 'xs';
|
||||
}
|
||||
if (w >= 480) {
|
||||
w = 'sm';
|
||||
elAttr = 'sm';
|
||||
}
|
||||
if (w >= 768) {
|
||||
w = 'md';
|
||||
elAttr = 'md';
|
||||
}
|
||||
if (w >= 992) {
|
||||
w = 'lg';
|
||||
elAttr = 'lg';
|
||||
}
|
||||
if (w >=1200) {
|
||||
w = 'xl';
|
||||
elAttr = 'xl';
|
||||
}
|
||||
|
||||
p.pgElContainer.attr('el', w);
|
||||
p.pgElContainer.attr('el', elAttr);
|
||||
},
|
||||
100
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user