Search input in the content header stays 300px wide; the rest of the row (~816px) is an unclickable dead zone
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 90/100
Research direction
Inspect assets/css/easyadmin-theme/content-search.css, especially the .content-top .content-search .content-search-label rules and the input.is-blank sizing. The issue identifies the cause and offers two CSS approaches; choose the one consistent with the intended header layout, then verify the search field fills .content-search and that clicking its remaining area focuses the input.
Written by the indexing model from the issue text.
Description
Environment
- EasyAdminBundle 5.6.1 (Symfony 7.4, PHP 8.4)
- Chrome 155, Linux, no custom application CSS
Steps to reproduce
- Open any CRUD index page (
/admin/bookmarks,/admin/settings, ...). - Look at the search input in the top-right of the content header.
- Widen the window to 1600px and click in the empty area to the right of the input.
Expected
The search input fills the width of its container .content-top .content-search, which spans the whole header row (its flex: 1).
Actual
The input is always exactly 300px, so a large part of the row looks like it belongs to the search field but is dead. Measured with getBoundingClientRect():
| viewport | .content-search container |
input | dead zone |
|---|---|---|---|
| 1600 | 1137px | 300px | 816px |
| 1400 | 937px | 300px | 616px |
| 1280 | 817px | 300px | 496px |
| 1100 | 637px | 300px | 316px |
| 1024 | 561px | 300px | 240px |
| 900 | 853px | 300px | 535px |
| 768 | 721px | 300px | 403px |
| 480 | 433px | 300px | 115px |
Clicking that area focuses <body>, not the input — the click is simply ignored.
Cause
assets/css/easyadmin-theme/content-search.css:
@media (min-width: 992px) {
.content-top .content-search .content-search-label {
max-inline-size: 600px;
}
}
.content-top .content-search .content-search-label input.is-blank {
min-inline-size: 300px;
}
.content-search-label is an inline-grid that grows with the value (the ::after pseudo-element mirrors data-value — the "auto-growing input" technique). The input itself is max-inline-size: unset, so the cap comes from the label wrapper, not from the input. The field is therefore between 300px and 600px wide inside a container stretched to the full row.
Suggested fix
Either:
- Drop/raise the
max-inline-size: 600pxon.content-search-label(or usewidth: 100%) so the field fills the container. - Or don't stretch
.content-searchto the full row (remove itsflex: 1), so the container matches the field and the dead zone isn't styled as part of it.
[ctx_shell: bare cat redirected to ctx_read for inline delivery. Use ctx_read(path="/tmp/opencode/ea-searchfield-issue-en.md") directly next time.]
- Dominant language
- PHP
- Stars
- 4.3k
- Forks
- 1.1k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 28
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from EasyCorp/EasyAdminBundle
-
design
Difficulty 2/5 Under an hour Newbie friendliness 88/100
EasyCorp/EasyAdminBundle#7879 ·
Maintainers usually reply within 1 day
-
Form stays unsubmitted when fields are disabled and boolean toggles are uncheckedPossibly taken @Amoifr claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
EasyCorp/EasyAdminBundle#7819 · 6 comments ·
Maintainers usually reply within 1 day
-
design
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
EasyCorp/EasyAdminBundle#7761 ·
Maintainers usually reply within 1 day
-
Override a template at runtime, for the current requestPossibly taken @phcorp claimed this 3 days ago. Openfeature
Difficulty 3/5 1-2 days Newbie friendliness 25/100
EasyCorp/EasyAdminBundle#7897 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
EasyCorp/EasyAdminBundle#7884 ·
Maintainers usually reply within 1 day
All issues in EasyCorp/EasyAdminBundle
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
yiisoft/yii2-docker#193 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
doctrine/migrations#1605 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Spomky-Labs/pwa-bundle#480 ·