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
@@ -375,9 +375,9 @@ define('pgadmin.preferences', [
dialogContentCleanup(); dialogContentCleanup();
$container.append( $container.append(
'<div class=\'pg-el-3 preferences_tree aciTree\'></div>' '<div class=\'pg-el-sm-3 preferences_tree aciTree\'></div>'
).append( ).append(
'<div class=\'pg-el-9 preferences_content\'>' + '<div class=\'pg-el-sm-9 preferences_content\'>' +
gettext('Category is not selected.') + gettext('Category is not selected.') +
'</div>' '</div>'
); );
@@ -430,6 +430,7 @@ define([
onshow:function() { onshow:function() {
$(this.elements.commands.close).attr('title', gettext('Close')); $(this.elements.commands.close).attr('title', gettext('Close'));
$(this.elements.commands.maximize).attr('title', gettext('Maximize')); $(this.elements.commands.maximize).attr('title', gettext('Maximize'));
$(this.elements.content).addClass('ajs-wrap-text');
}, },
reverseButtons: true, reverseButtons: true,
}); });
@@ -53,10 +53,11 @@
} }
.ajs-body .ajs-content { .ajs-body .ajs-content {
bottom: $footer-height-calc !important; bottom: $footer-height-calc !important;
word-break: break-word; }
.ajs-wrap-text {
word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
} }
/* Removes padding from alertify footer */ /* Removes padding from alertify footer */
.ajs-footer { .ajs-footer {
padding: 0; padding: 0;