getgrav / getgrav/grav-plugin-breadcrumbs

Breadcrumbs on Mobile Fix

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
19
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hi I found out that (at least for iPhone 13 Pro) the Bredcrumbs will have a weird Line-Break due to the Viewport-Width.

So I have changed the CSS File "breadcrumbs.css" accordingly:

> #breadcrumbs {
line-height: 15px;
padding-inline-start: 3rem;
}
#breadcrumbs span {
display: inline-block;
padding: 0 1rem;
}
#breadcrumbs span:first-child {
padding-inline-start: 0;
}
#breadcrumbs i {
display: inline-block;
width: 20px;
text-align: center;
}
#breadcrumbs a {
padding: 0 !important;
}
#breadcrumbs span:not(:first-child) {
display: flex;
justify-content: space-between;
align-items: center;
}

With this change the handling of the Line-Breaks are smooth again, maybe we could get this into the plugin so I dont need to do it again on a Plugin Update.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting breadcrumbs.css and reproducing the wrapping at the iPhone 13 Pro viewport. Compare the existing rules with the CSS proposed in the issue and verify that breadcrumbs no longer develop awkward line breaks at narrow widths.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.