-
Notifications
You must be signed in to change notification settings - Fork 30.3k
[IMP] website: allow parallax block overflow #218296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] website: allow parallax block overflow #218296
Conversation
55f2501 to
5fd57f9
Compare
5fd57f9 to
91e96e2
Compare
addons/website/static/src/builder/plugins/options/background_option.js
Outdated
Show resolved
Hide resolved
addons/website/static/src/builder/plugins/options/parallax_option_plugin.js
Outdated
Show resolved
Hide resolved
addons/website/static/src/builder/plugins/options/parallax_option_plugin.js
Outdated
Show resolved
Hide resolved
91e96e2 to
c45ff5d
Compare
addons/website/static/src/builder/plugins/options/background_option.js
Outdated
Show resolved
Hide resolved
8b1c1f0 to
fbd6c72
Compare
|
@qsm-odoo I made the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bvr-odoo Could you rebase the two PR here to be sure and check if there is no new occurence that appeared, then I'll merge it so we have this for 19.0 🙏
fbd6c72 to
ed39f42
Compare
ed39f42 to
fe329d3
Compare
I rebased both PRs onto 19.0 |
|
TODO: rebase on MASTER (too late for 19.0) |
fe329d3 to
bfb7c6b
Compare
bfb7c6b to
92f000f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message: missing "*: " before apps list
addons/html_builder/static/src/plugins/background_option/background_position_overlay.edit.scss
Outdated
Show resolved
Hide resolved
| @@ -34,7 +34,7 @@ export class BackgroundPositionOverlay extends Component { | |||
| // contains the background. Otherwise it's the section itself. | |||
| // And targetContainerEl should always be the section. | |||
| this.targetContainerEl = this.props.editingElement.classList.contains("s_parallax_bg") | |||
| ? this.props.editingElement.parentElement | |||
| ? this.props.editingElement.parentElement.parentElement | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we do need it.
addons/website/static/src/builder/plugins/options/parallax_option_plugin.js
Outdated
Show resolved
Hide resolved
*: html_builder, html_editor, website_forum, website_slides This commit refactors the Parallax effect to fix overflow-related issues. Parallax backgrounds are now wrapped in an additional element with "overflow: hidden", instead of applying the "overflow: hidden" rule directly on the section. This prevents issues such as dropdowns or animations being cut off when inside a block with a parallax background. Steps to reproduce the issue: - Drag and drop a "Cover" block. - Drag and drop a "Search bar" inside the Cover block. - Save the page. - Type a letter in the "Search bar" so that the dropdown with search results overflows the bottom of the Cover block. - Bug: The dropdown is cut off, its bottom part is not visible. task-4926420
92f000f to
2085d95
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robodoo r+
*: html_builder, html_editor, website_forum, website_slides This commit refactors the Parallax effect to fix overflow-related issues. Parallax backgrounds are now wrapped in an additional element with "overflow: hidden", instead of applying the "overflow: hidden" rule directly on the section. This prevents issues such as dropdowns or animations being cut off when inside a block with a parallax background. Steps to reproduce the issue: - Drag and drop a "Cover" block. - Drag and drop a "Search bar" inside the Cover block. - Save the page. - Type a letter in the "Search bar" so that the dropdown with search results overflows the bottom of the Cover block. - Bug: The dropdown is cut off, its bottom part is not visible. task-4926420 closes #218296 Related: odoo/design-themes#1114 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit adapts the themes to the new Parallax effect structure. We now wrap the parallax element in another element with "overflow: hidden" to avoid setting "overflow: hidden" on sections. That was causing elements like the dropdown of the search bar to be cut off and not fully visible. task-4926420 closes #1114 Related: odoo/odoo#218296 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>

This commit refactors the Parallax effect to fix overflow-related
issues. Parallax backgrounds are now wrapped in an additional element
with "overflow: hidden", instead of applying the "overflow: hidden" rule
directly on the section. This prevents issues such as dropdowns or
animations being cut off when inside a block with a parallax background.
Steps to reproduce the issue:
results overflows the bottom of the Cover block.
task-4926420