Skip to content

Commit

Permalink
#Tsk3034: ширина на колона във форма
Browse files Browse the repository at this point in the history
  • Loading branch information
HeBuTy committed May 26, 2020
1 parent f310a65 commit d22bbf4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions css/Application.css
Expand Up @@ -1315,6 +1315,13 @@ a.tOld {
.typeTable td {
text-align: center;
font-size: 0.8em; }
.typeTable .batchNameTd input {
white-space: nowrap;
width: 100% !important; }
.typeTable .batchNameTd ~ td {
width: 120px; }
.typeTable .batchNameTd ~ td input {
max-width: 120px; }

/*
* стилове за документи
Expand Down
14 changes: 13 additions & 1 deletion css/Application.scss
Expand Up @@ -1514,7 +1514,7 @@ a.tOld {
/*край на стилове при тредове*/

.typeTable {
border:none !important;
border:none !important;
.formTypeTable {
text-align: center;
font-weight: bold;
Expand All @@ -1525,6 +1525,18 @@ a.tOld {
text-align: center;
font-size: 0.8em;
}
.batchNameTd {
input {
white-space: nowrap;
width: 100% !important;
}
~ td {
width: 120px;
input {
max-width: 120px;
}
}
}

}

Expand Down
3 changes: 3 additions & 0 deletions js/efCommon.js
Expand Up @@ -1793,6 +1793,9 @@ function setFormElementsWidth() {
$(this).attr('title', $(this).text());
}
});
if ($('.typeTable .batchNameTd').length) {
$('.typeTable').width("100%");
}
}
}

Expand Down

0 comments on commit d22bbf4

Please sign in to comment.