Skip to content

Commit 2878f30

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. closes #2224 X-original-commit: a689ea2 Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
1 parent 4c4b81b commit 2878f30

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
@@ -638,10 +638,18 @@ header {
638638
font-family: var(--bs-font-monospace);
639639
}
640640

641-
.field-list {
641+
dl.field-list {
642642
@include font-size($font-size-secondary);
643643
padding: .5rem;
644644
border: 1px solid $gray-light;
645+
@include media-breakpoint-down(lg) {
646+
display: block;
647+
}
648+
649+
> dt, > dd {
650+
padding-left: 0;
651+
padding-right: 0;
652+
}
645653

646654
ul {
647655
list-style: none;

0 commit comments

Comments
 (0)