Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion sao/src/theme/coog/sao.less
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,29 @@ div.form-item.form-group_:has(> fieldset.form-group_ > legend) {
margin-bottom: 5px;
padding: 2px 7px 2px 7px;
}

// Better space usage if there is only one item in the group
&:has(> div.form-container > div.form-text:only-child) {
padding-bottom: 0px;
> legend {
margin-bottom: 0px;
}
> div.form-container > div.form-text {
padding: 0px;
> div.form-text {
padding: 5px;
padding-bottom: 1px;
}
}
}
}
}

// Improve vertical usage of groups with only one item
div.form-item.form-group_:not(.yfill):has(> *:only-child), div.form-item.form-dict {
align-items: start;
> * {
height: auto;
}
}

Expand Down Expand Up @@ -621,7 +644,7 @@ div.form-text {
padding: 3px 10px 3px 10px;
textarea.form-control {
min-height: inherit !important;
max-height: 300px;
max-height: 500px;
border: 1px solid rgba(@color-lighter-grey, @coog-box-opacity);
box-shadow: 0 1px 4px rgba(@color-black, @coog-box-opacity);
padding: 5px;
Expand Down
3 changes: 3 additions & 0 deletions sao/src/view/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,9 @@ function hide_x2m_body(widget) {
Sao.i18n.BC47(record.expr_eval(this.attributes.spell)));
this.input.attr('spellcheck', 'true');
}
if (this.attributes.yexpand) {
this.input.css('height', value.split('\n').length * 2.5 + 2 + "ex");
}
} else {
this.input.val('');
}
Expand Down