Skip to content
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

[FW][FIX] website_blog: navigation filters dropdown on mobile #162726

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 20, 2024

The blogs filters in mobile is breaking the layout. This PR applies a dropdown instead which is displayed next to searchbar.

Additionally it adapts the spacing to make it even between the navigation component. A SCSS override is necessary to counter the pseudo elements introduced in portal.
This is fixed in 17.0 with this commit[1] but it was decided to not backport this fix and apply the override on
blog instead for 16.0 -> 16.4 to avoid breaking any website customization.

For >= 17 we might consider offcanvas instead (such as the event page).

[1] b6a7472

task-3315921


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #157757
Forward-Port-Of: #145547

The blogs filters in mobile is breaking the layout. This commit applies
a dropdown or an offcanvas instead which is displayed next to searchbar.

In this 17.0 fix, the dropdown becomes an
offcanvas if we have a sufficient amount of blogs which allows better
navigation on mobile and makes it consistent with other website modules.

Additionally it adapts the spacing to make it even between the
navigation component.

The `t-set="_classes"` is not removed in case of potential xpath in
production. Same goes for the `container` class on the div at line 9,
being overridden by it's t-attf-class counterpart.

task-3315921

X-original-commit: 5887847
@robodoo
Copy link
Contributor

robodoo commented Apr 20, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 20, 2024

This PR targets saas-17.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Apr 20, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 20, 2024
robodoo pushed a commit that referenced this pull request Apr 20, 2024
The blogs filters in mobile is breaking the layout. This commit applies
a dropdown or an offcanvas instead which is displayed next to searchbar.

In this 17.0 fix, the dropdown becomes an
offcanvas if we have a sufficient amount of blogs which allows better
navigation on mobile and makes it consistent with other website modules.

Additionally it adapts the spacing to make it even between the
navigation component.

The `t-set="_classes"` is not removed in case of potential xpath in
production. Same goes for the `container` class on the div at line 9,
being overridden by it's t-attf-class counterpart.

task-3315921

closes #162726

X-original-commit: 5887847
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
@robodoo robodoo closed this Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants