Name:
[IMP] viin_ai/viin_brain: Wave-1/2 residuals + Brain editor full-width + sidebar bind
State:
Failed
finished in 205m
PR State:
merged
PR Author:
David Tran
PR Author Email:
PR:
#76
Committer:
David Tran
Committer Email:
davidtran.hp@gmail.com
Commit:
04dac8330b6ce947032420e2750cc6b6a5e4c3c6
Description:
[FIX] viin_brain: 768px tablet context-pane horizontal-scroll defect
At 768px viewport the collapsed context pane (translateX(288px)) was
extending 288px beyond the viewport right edge. .o_brain_app_body clipped
it visually but document.documentElement.scrollWidth expanded to 1056px,
allowing real user scroll via window.scrollTo(288,0).
Root cause: .o_brain_app_body had no position:relative so the absolute
context pane's containing block was an outer Odoo ancestor wider than the
viewport; overflow-x:hidden on the app body did not clip the pane from the
document's scroll ancestor perspective.
Fix: add position:relative + overflow-x:hidden to .o_brain_app_body in the
tablet @media (min-width:768px) block. This makes the app body the containing
block for the pane (so translateX clips at the app body's 768px right edge)
and prevents the off-screen portion from contributing to document.scrollWidth.
The 2rem visible handle strip is still within bounds and remains clickable.
Also add defensive table { max-width:100% } inside .o_brain_editor_body_edit
for plain HTML tables (pasted content). Brain database blocks have their own
overflow-x:auto wrapper and are unaffected.
Branch:
17.0
Instance ID:
0
Age:
Up-time: