mirror of https://github.com/portainer/portainer
EE-1892 Centralize prompt dialog (#6903)
parent
dc98850489
commit
ca30efeca7
|
@ -28,10 +28,6 @@ export function confirmButtons(options: ButtonsOptions) {
|
||||||
|
|
||||||
export function applyBoxCSS(box: JQuery<HTMLElement>) {
|
export function applyBoxCSS(box: JQuery<HTMLElement>) {
|
||||||
box.css({
|
box.css({
|
||||||
top: '50%',
|
'vertical-align': 'middle',
|
||||||
'margin-top': function marginTop() {
|
|
||||||
const height = box.height() || 0;
|
|
||||||
return -(height / 2);
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue