From d22bbf4f2ec3176eb73fd0644c7f1d646b96fee6 Mon Sep 17 00:00:00 2001 From: HeBuTy Date: Tue, 26 May 2020 14:20:53 +0300 Subject: [PATCH] =?UTF-8?q?#Tsk3034:=20=D1=88=D0=B8=D1=80=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BB=D0=BE=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B2=D1=8A=D0=B2=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/Application.css | 7 +++++++ css/Application.scss | 14 +++++++++++++- js/efCommon.js | 3 +++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/css/Application.css b/css/Application.css index 1a8fd2c64c4..593a3964f5c 100644 --- a/css/Application.css +++ b/css/Application.css @@ -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; } /* * стилове за документи diff --git a/css/Application.scss b/css/Application.scss index a23a57a0fbd..193b851897f 100644 --- a/css/Application.scss +++ b/css/Application.scss @@ -1514,7 +1514,7 @@ a.tOld { /*край на стилове при тредове*/ .typeTable { - border:none !important; + border:none !important; .formTypeTable { text-align: center; font-weight: bold; @@ -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; + } + } + } } diff --git a/js/efCommon.js b/js/efCommon.js index 01354629f03..996ad41221d 100644 --- a/js/efCommon.js +++ b/js/efCommon.js @@ -1793,6 +1793,9 @@ function setFormElementsWidth() { $(this).attr('title', $(this).text()); } }); + if ($('.typeTable .batchNameTd').length) { + $('.typeTable').width("100%"); + } } }