Search inputs: magnifying-glass icon overlaps placeholder text (Fristenrechner 'Akte suchen' + audit other search fields) #112
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
m's report (2026-05-25 16:40)
Scope
Search inputs with an absolute-positioned magnifying-glass icon at the left often need a corresponding
padding-lefton the<input>element to make room for the icon. Without it, the placeholder + typed text starts at x=0 and overlaps the icon.Fix the Fristenrechner 'Akte suchen' field first; audit other search fields in paliad with the same pattern + fix in the same commit.
Likely affected places to check:
What to do
.search-inputor.input-with-iconplus.icon--left/.icon--search.padding-left: 2.25rem(or whatever offset matches the icon's width + spacing) so the text starts after the icon.padding-inline-startinstead ofpadding-leftif other rules already do).Files most likely touched
frontend/src/styles/global.css— shared search-input classHard rules
go build ./... && go test ./internal/... && cd frontend && bun run buildclean.mai/<worker>/search-input-icon-padding.Out of scope
Reporting
mai report completedwith branch + SHAs + list of every search input fixed in this pass.Fixed — Fristenrechner Akte-Picker icon overlap
Root cause (
.fristen-step1-search-rowinfrontend/src/styles/global.css):The Step-1 Akte picker wraps its magnifying-glass icon + input in a flexbox row with
gap: 0.5rem, expecting the icon to participate in the flex layout. But the shared.fristen-search-iconrule (used by the B2 search input on the same page) setsposition: absolute; left: 0.875rem;. The step1-scoped override only tweakedcolor+flex-shrink: 0— it never resetposition. So the icon was absolutely-positioned out of the flex flow and overlapped the input text (since.fristen-akte-searchhas nopadding-left).Fix — one-line CSS, surgical:
This lets flexbox +
gaphandle icon-to-input spacing naturally — same pattern as.fristen-row-search-panel-input-wrap, which already worked.Audit of every other search input in paliad
Went through every search input with a leading magnifying-glass icon and confirmed they were either already correct or have no icon to overlap. No other surface is affected.
.fristen-step1-search-row+.fristen-akte-search.fristen-search-row+.fristen-search-inputposition: relative, input haspadding: 0.75rem 2.5rem 0.75rem 2.6rem.fristen-row-search-panel-input-wrap+.fristen-row-search-panel-inputgap, icon non-positioned.projects-search-wrap+.projects-search-inputposition: relative, input haspadding: 0.5rem 0.75rem 0.5rem 2.4rem.glossar-search-wrap+.glossar-searchpadding: 0.65rem 4.5rem 0.65rem 2.5rem.glossar-search-wrap+.glossar-search.glossar-search-wrap+.glossar-search.glossar-search-wrap+.glossar-search.glossar-search-wrap+.glossar-search.glossar-search-wrap+.glossar-search.sidebar-search+.sidebar-search-input.event-search-inputclient/event-types.ts).event-type-search.entity-form-inputThe
.glossar-searchclass is the de-facto shared search-input class for the knowledge-platform pages, and it's already correctly set up. Nothing to consolidate further — the Fristenrechner Akte picker just had a stray inherited rule.RTL note
In scope of the audit per the issue: the existing rules use
padding-left/left:(notpadding-inline-start/inset-inline-start:). Out of scope to refactor here, but worth flagging for a future i18n/RTL pass — every search input in the table above would need both axes flipped.Verification
cd frontend && bun run build→ clean (Build complete → dist/,i18n codegen: 2890 keys (unchanged))go build ./...→ clean (no output)go test ./internal/...→ all greenBranch:
mai/orpheus/gitster-search-inputCommit: https://mgit.msbls.de/m/paliad/commit/5348cb5
— mAi (orpheus)
Sweep verdict (2026-07-29): ALREADY DONE.
All three absolutely-positioned search icons now clear their input:
.fristen-search-iconleft 0.875rem /.fristen-search-inputpadding-left 2.6rem;.glossar-search-icon0.75rem /.glossar-search2.5rem;.projects-search-icon0.75rem /.projects-search-input2.4rem.The Fristenrechner field named in the report is now a flex row (
.fristen-row-search-panel-input-wrap,display:flex) where the icon takes its own slot, so the overlap class of bug cannot occur there at all.Full sweep:
docs/findings-issue-sweep-2026-07-29.md(commit4c39886).