Handle text wrapping in alertify dialog only when it is required. Regression of #3695

This commit is contained in:
Aditya Toshniwal 2019-01-18 17:54:49 +05:30 committed by Akshay Joshi
parent 69f6895224
commit 06ae799d02
3 changed files with 6 additions and 4 deletions

View File

@ -375,9 +375,9 @@ define('pgadmin.preferences', [
dialogContentCleanup();
$container.append(
'<div class=\'pg-el-3 preferences_tree aciTree\'></div>'
'<div class=\'pg-el-sm-3 preferences_tree aciTree\'></div>'
).append(
'<div class=\'pg-el-9 preferences_content\'>' +
'<div class=\'pg-el-sm-9 preferences_content\'>' +
gettext('Category is not selected.') +
'</div>'
);

View File

@ -430,6 +430,7 @@ define([
onshow:function() {
$(this.elements.commands.close).attr('title', gettext('Close'));
$(this.elements.commands.maximize).attr('title', gettext('Maximize'));
$(this.elements.content).addClass('ajs-wrap-text');
},
reverseButtons: true,
});

View File

@ -53,10 +53,11 @@
}
.ajs-body .ajs-content {
bottom: $footer-height-calc !important;
word-break: break-word;
}
.ajs-wrap-text {
word-break: break-all;
word-wrap: break-word;
}
/* Removes padding from alertify footer */
.ajs-footer {
padding: 0;