[FIX] web: support column in report footer
Report body size was too narrow to render bootstrap .col as column, the media query consider the report as a mobile view. We unlock this limitation to let customer add column in the footer. Task-3145445 X-original-commit: 3631e51e224e843cf6b6cd1da82592be4cb9397f Part-of: odoo/odoo#136534
This commit is contained in:
@@ -178,6 +178,31 @@ ul.o_checklist {
|
||||
-webkit-box-flex: 1 !important;
|
||||
}
|
||||
|
||||
// Report footer need to support bootstrap columns (2, 3 and 4 columns)
|
||||
// Even if the width is smaller than the media querry limit from bootstrap.
|
||||
// This need come from the footer being editable via the Odoo editor.
|
||||
|
||||
.footer {
|
||||
.row {
|
||||
-webkit-box-flex: 1 !important;
|
||||
}
|
||||
.col-lg-3 {
|
||||
flex: 0 0 auto;
|
||||
-webkit-box-flex: 1 !important;
|
||||
width: 25%;
|
||||
}
|
||||
.col-lg-4 {
|
||||
flex: 0 0 auto;
|
||||
-webkit-box-flex: 1 !important;
|
||||
width: 33.33333333%;
|
||||
}
|
||||
.col-lg-6 {
|
||||
flex: 0 0 auto;
|
||||
-webkit-box-flex: 1 !important;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
// Boostrap 5 introduces variable paddings for container which wkhtmltopdf doesn't seem to process, so we restore Boostrap 4's paddings for PDFs
|
||||
.container {
|
||||
padding-right: $container-padding-x;
|
||||
|
||||
Reference in New Issue
Block a user