Skip to content

fix(search): keep the global search icon from overlapping text in compact density - #70

Open
ndandan wants to merge 1 commit into
Shoshuo:mainfrom
ndandan:fix/search-input-compact-density
Open

fix(search): keep the global search icon from overlapping text in compact density#70
ndandan wants to merge 1 commit into
Shoshuo:mainfrom
ndandan:fix/search-input-compact-density

Conversation

@ndandan

@ndandan ndandan commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

What

In compact density, the global top-bar search input's placeholder text slides underneath its magnifying-glass icon.

Why

The search input reserves padding-left: 2.75rem for its absolutely-positioned icon (.prismarr-search-input). But the compact-density rule

body.density-compact .form-control,
body.density-compact .form-select { padding: .35rem .55rem; }

has higher specificity (body.density-compact .form-control = 0,2,1 vs .prismarr-search-input = 0,1,0), so in compact mode it overrides the reserved padding down to .55rem and the placeholder renders on top of the icon. (Comfortable density is unaffected — there the input's own rule wins by source order.)

Fix

Exempt the search input from the compact shrink so its fixed icon padding always applies:

body.density-compact .form-control:not(.prismarr-search-input),
body.density-compact .form-select { padding: .35rem .55rem; }

One-line CSS change in base.html.twig — no JS/PHP/Twig logic touched.

Verified

Confirmed in-browser in compact density: computed padding-left goes 8.8px44px (2.75rem), leaving an ~11.6px gap between the icon and the text. No regression in comfortable density.

🤖 Generated with Claude Code

The global search input reserves left padding (2.75rem) for its
absolutely-positioned magnifying-glass icon. In compact density the
generic `.form-control` shrink rule (higher specificity) collapsed
that padding to .55rem, sliding the placeholder under the icon.
Exempt the search input from the compact shrink so its own padding
always wins.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ndandan added a commit to ndandan/Prismarr that referenced this pull request Jul 11, 2026
…worker mode

- Fork-only: document opt-in PRISMARR_WORKER worker mode with homelab
  benchmark figures (health poll ~15x, Films render ~10x; Discover unchanged)
- Add open upstream PR Shoshuo#70 (search-icon compact-density fix) to pending list
- Tech stack: note worker mode is optional/off by default, not always on

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant