[5.x]: Header section layout on smaller devices looks broken
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
The layout of the header sections on mobile or smaller tablets looks broken with how the layout has been styled. See here:
Steps to reproduce
- Create an entry type
- Create an entry
- View on smaller viewports
Expected behavior
I'd expect the buttons and title to stack much smarter than they currently do. I have achieved this by editing the markup in the Inspector by just using the three-dots "more" button to hide more of the options, as these buttons are utility actions that could be hidden at this size, but also aligning the actions to the left to match the title.
One of the problematic elements is the .activity-container div which throws extra gap spacing in at the start when it's empty.
Actual behavior
As per the screenshot in the Description.
Craft CMS version
5.6.0.2
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the header layout by creating an entry type and entry, then viewing them on smaller mobile and tablet viewports. Inspect the header sections and the .activity-container behavior when it is empty, using the screenshots as the target. Done means the title and actions stack cleanly, utility actions can be handled appropriately at narrow widths, and the empty container adds no unwanted gap.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- design, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100