Show the breadcrumb in medium resolutions (700px)#15863
Show the breadcrumb in medium resolutions (700px)#15863andreslucena merged 3 commits intodecidim:developfrom
Conversation
6fef9eb to
5cd9ff3
Compare
There was a problem hiding this comment.
Pull request overview
This PR fixes breadcrumb visibility issues at certain screen resolutions (~700 pixels width) by adjusting responsive breakpoints and creating a dedicated mobile breadcrumb template. The changes shift the mobile/desktop transition point from the lg (1024px) and md (768px) breakpoints down to sm (640px) throughout the header styling.
Key Changes:
- Created new mobile-specific breadcrumb template (
_menu_breadcrumb_mobile.html.erb) to replace the previous mobile-tablet version - Updated CSS breakpoints from
lg:andmd:tosm:across header components for consistent mobile behavior at 640px - Modified JavaScript sticky header logic to use
mdbreakpoint instead ofsm
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
decidim-core/app/views/layouts/decidim/header/_menu_breadcrumb_mobile.html.erb |
New mobile breadcrumb template with back navigation and mobile action support |
decidim-core/app/views/layouts/decidim/header/_menu.html.erb |
Updated partial reference to use new mobile breadcrumb template |
decidim-core/app/packs/stylesheets/decidim/_header.scss |
Comprehensive breakpoint updates from lg:/md: to sm: for mobile menu, dropdown, and breadcrumb visibility |
decidim-core/app/packs/src/decidim/controllers/sticky_header/controller.js |
Changed screen size check from sm to md for sticky header margin calculation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
decidim-core/app/packs/src/decidim/controllers/sticky_header/controller.js
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughThis pull request adjusts responsive design breakpoints in the header layout to address a visibility issue at 700 pixels width. Changes include shifting the JavaScript sticky header margin calculation from small to medium screens, updating SCSS header styling from large to small breakpoints, and switching the mobile breadcrumb component rendered in the header template. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
|
Merging with the failure from the flaky introduced with #15881 |


🎩 What? Why?
In this PR i am fixing the position of the breacrumb in certain pages.
📌 Related Issues
Link your PR to an issue
Testing
📷 Screenshots
Please add screenshots of the changes you are proposing
Before
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.