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

@@ -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;