From a4df1d4006da0a29864e49fa26d13e77449ae887 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Thu, 4 Feb 2021 13:33:43 +0000
Subject: [PATCH] erp5_web_renderjs_ui: fixup! do not expand every field's div

Ensure float/integer field can align right on the listbox
See https://lab.nexedi.com/nexedi/erp5/commit/cfbc621bf0c26d5fba96c6745df34ecb2204522a
---
 .../web_page_module/rjs_gadget_erp5_nojqm_css.css             | 3 +++
 .../web_page_module/rjs_gadget_erp5_nojqm_css.xml             | 4 ++--
 .../portal_skins/erp5_web_renderjs_ui/erp5css.less.txt        | 3 +++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
index 9489b416de..77cd66f4e8 100644
--- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
@@ -1608,6 +1608,9 @@ div.invisible_header .document_table .ui-table-header {
 div.invisible_footer .document_table nav {
   display: none;
 }
+.document_table tbody tr td div {
+  width: 100%;
+}
 .document_table tbody tr td:first-child input.hide_element[type="checkbox"] {
   display: none;
 }
diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
index 6d8914c3f3..99d9fb15f7 100644
--- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
@@ -246,7 +246,7 @@
                   </item>
                   <item>
                       <key> <string>serial</string> </key>
-                      <value> <string>989.27549.43950.31078</string> </value>
+                      <value> <string>989.49292.64608.7680</string> </value>
                   </item>
                   <item>
                       <key> <string>state</string> </key>
@@ -264,7 +264,7 @@
                           </tuple>
                           <state>
                             <tuple>
-                              <float>1611220748.32</float>
+                              <float>1612445457.98</float>
                               <string>UTC</string>
                             </tuple>
                           </state>
diff --git a/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt b/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
index 99f217b3aa..bb6a39eb05 100644
--- a/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
+++ b/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
@@ -1871,6 +1871,9 @@ div[data-gadget-scope='erp5_searchfield'] {
   tbody {
     tr {
       td {
+        div {
+          width: 100%
+        }
         // In select mode, hide the listbox line checkbox.
         // Instead, display an icon before the first label
         // (it is only to make the checkbox rendering nicer)
-- 
2.30.9