Skip to content

Commit a898024

Browse files
committed
[FIX] to_backend_theme: Fix pad UI goes wrong
- Currently in Chrome, parent-flex not having a true value so when flex-basis apply, the child don't know what size to compute when size of parent changed. It makes the editor shrink to much and user can not use this editor This PR will fix this problem.
1 parent 4c6fa01 commit a898024

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

to_backend_theme/static/src/scss/style.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ body {
7070
}
7171
}
7272

73+
// Avoid avatar image strech
7374
.o_Follower{
7475
a{
7576
.o_Follower_avatar{
@@ -78,6 +79,26 @@ body {
7879
}
7980
}
8081

82+
// Fix chrome not filling percentage% height of flex parent
83+
.o_note_form_view.o_form_view {
84+
.o_form_sheet_bg {
85+
// Odoo try to set a child height with true value (500px) but the correctly way is set true value for parent-flex
86+
// currently Odoo set .oe_pad .oe_pad_content.oe_editing {height:500px; ...}
87+
height: 500px;
88+
.o_form_sheet {
89+
.oe_pad {
90+
.oe_pad_content {
91+
display: flex;
92+
}
93+
}
94+
}
95+
}
96+
}
97+
.oe_pad .oe_pad_content.oe_editing{
98+
display: flex;
99+
flex: 1;
100+
}
101+
81102
.o_control_panel {
82103
.o_cp_right {
83104
.btn-secondary {

0 commit comments

Comments
 (0)