Skip to content

Commit dcb0b44

Browse files
edi-odooAntoineVDV
authored andcommitted
[FIX] odoo_theme: fix highlight blocks in field-list items
On pages such as /developer/reference/backend/orm.html#fields, the highlight blocks inside `dl.field-list` items were pushing the width of the page to go outside the screen on mobile. This is fixed by changing the `.field-list`'s `display: grid` into `block` on mobile.
1 parent 343decf commit dcb0b44

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

extensions/odoo_theme/static/style.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,18 @@ header.o_main_header {
644644
font-family: var(--bs-font-monospace);
645645
}
646646

647-
.field-list {
647+
dl.field-list {
648648
@include font-size($font-size-secondary);
649649
padding: .5rem;
650650
border: 1px solid $gray-light;
651+
@include media-breakpoint-down(lg) {
652+
display: block;
653+
}
654+
655+
> dt, > dd {
656+
padding-left: 0;
657+
padding-right: 0;
658+
}
651659

652660
ul {
653661
list-style: none;

0 commit comments

Comments
 (0)