From 35a3af89c0655ee1984f0edf23f82919807ea4d7 Mon Sep 17 00:00:00 2001 From: Jean Cavallo Date: Tue, 8 Oct 2024 21:41:32 +0200 Subject: [PATCH] sao: Remove padding for XXX2Many all alone in a page [CUSTOM] Issue link: [https://coopengo.atlassian.net/browse/PCLAS-1250](https://coopengo.atlassian.net/browse/PCLAS-1250) Fix PCLAS-1250 --- sao/src/theme/coog/sao.less | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/sao/src/theme/coog/sao.less b/sao/src/theme/coog/sao.less index 53b08c11ea4..8b9d2663f9c 100644 --- a/sao/src/theme/coog/sao.less +++ b/sao/src/theme/coog/sao.less @@ -670,6 +670,28 @@ div.form-boolean > input[type=checkbox].input-checkbox.form-control[readonly] { } } } + +// Use all space for XXX2Many which are the sole item in a notebook page +.tab-pane.active > div.form-container:has(> div.form-one2many:only-child) { + > div.form-item.form-one2many { + padding-top: 0px; + > div.form-one2many.panel { + margin-left: 0px; + margin-right: 0px; + } + } +} +.tab-pane.active > div.form-container:has(> div.form-many2many:only-child) { + > div.form-item.form-many2many { + padding-top: 0px; + > div.form-many2many.panel { + margin-left: 0px; + margin-right: 0px; + } + } +} + + /////////////////////////////////////////////////////////////////////////////// // Rule engine ///////////////////////////////////////////////////////////////////////////////