mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Handle text wrapping in alertify dialog only when it is required. Regression of #3695
This commit is contained in:
committed by
Akshay Joshi
parent
69f6895224
commit
06ae799d02
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user