Use larger translation dialog for expanded widget

Closes #13987
This commit is contained in:
Cédric Krier committed 2025-04-28 22:12:01 +02:00
1 parent 56a3bd14d9
commit 30b867691a
1 file changed
+4 -3
+4 -3
View File
@@ -1423,7 +1423,8 @@ function eval_pyson(value){
class_: 'form',
init: function(languages, widget) {
var dialog = new Sao.Dialog(
Sao.i18n.gettext('Translate'), this.class_, 'md');
Sao.i18n.gettext('Translate'), this.class_,
widget.expand? 'lg' : 'md');
this.languages = languages;
this.read(widget, dialog);
jQuery('<button/>', {
@@ -1514,10 +1515,10 @@ function eval_pyson(value){
input.uniqueId();
row.append(jQuery('<label/>', {
'for': input.attr('id'),
'class': 'col-sm-3 control-label',
'class': 'col-sm-2 control-label',
}).append(' ' + lang.name));
row.append(jQuery('<div/>', {
'class': 'col-sm-9 input-group',
'class': 'col-sm-10 input-group',
}).append(input)
.append(jQuery('<span/>', {
'class': 'input-group-addon',