Commit 6091dd23 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: do not expand every field's div

Some fields may use div element without expecting 100% width.
Example: formbox and diff gadget.
parent d5906ad4
Pipeline #12364 failed with stage
in 0 seconds
...@@ -1077,7 +1077,7 @@ div[data-gadget-scope='header'] .ui-header ul { ...@@ -1077,7 +1077,7 @@ div[data-gadget-scope='header'] .ui-header ul {
.gadget-content .field_container > div > div > div.ui-field-contain { .gadget-content .field_container > div > div > div.ui-field-contain {
padding: 3pt 0; padding: 3pt 0;
} }
.gadget-content .field_container > div > div > div.ui-field-contain div { .gadget-content .field_container > div > div > div.ui-field-contain > div {
width: 100%; width: 100%;
} }
.gadget-content .field_container > div > div.horizontal_align_form_box > .ui-field-contain { .gadget-content .field_container > div > div.horizontal_align_form_box > .ui-field-contain {
...@@ -1281,6 +1281,7 @@ div[data-gadget-scope='header'] .ui-header ul { ...@@ -1281,6 +1281,7 @@ div[data-gadget-scope='header'] .ui-header ul {
} }
.relation-input div { .relation-input div {
position: relative; position: relative;
width: 100%;
} }
.relation-input ul { .relation-input ul {
position: absolute; position: absolute;
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>georgios.dagkakis</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>980.28021.30830.63778</string> </value> <value> <string>988.2056.8848.16469</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,8 +262,8 @@ ...@@ -262,8 +262,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1602657030.85</float> <float>1605606512.05</float>
<string>GMT+2</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
...@@ -1237,7 +1237,9 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1237,7 +1237,9 @@ div[data-gadget-scope='header'] .ui-header {
.field_container > div > div > div.ui-field-contain { .field_container > div > div > div.ui-field-contain {
padding: @half-margin-size 0; padding: @half-margin-size 0;
div { & > div {
// Do not expand every div, as some gadget fields
// may use div element which should have a more contrained size
width: 100%; width: 100%;
} }
} }
...@@ -1499,6 +1501,7 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1499,6 +1501,7 @@ div[data-gadget-scope='header'] .ui-header {
div { div {
position: relative; position: relative;
width: 100%;
} }
ul { ul {
position: absolute; position: absolute;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment