Skip to content

fix(web): end a search placeholder too long for its box with an ellipsis - #5470

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
rangoDJ:fix/5059-search-placeholder-ellipsis
Nov 30, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
rangoDJ:fix/5059-search-placeholder-ellipsis

Conversation

@rangoDJ

@rangoDJ rangoDJ commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Depends on: none. Merge order: none. Follows #5057 (merged), which fixed the four diagnostics filters the same way.

Problem

Closes #5059
Related issue: #5057
Validation tasks: none

Other clients: none. Web only.

On a phone in a longer language, the web app's search boxes cut their placeholder off mid-word with no ellipsis, so nothing shows that text is missing. In German at 393 px, the Admin Users search read "Nach Benutzername oder E-Mail such". The shared Input (web/src/components/ui/input.tsx) sets no text-overflow, so any input whose placeholder overflows clips it. #5057 fixed only the diagnostics filters.

Approach

  • The shared Input gets placeholder-shown:text-ellipsis: text-overflow: ellipsis while its placeholder shows. Chromium, WebKit and Firefox draw the ellipsis on the placeholder when the input itself has it; setting it on ::placeholder alone works only in Firefox, as the issue notes.
  • This covers every search box the issue lists that uses Input. The one raw <input> it names, the Watch Together browse shelf (BrowseShelf.tsx), gets the same class.
  • Only while the placeholder shows, as the issue suggests: a typed value in other Input fields keeps the browser's plain clip instead of ending in "…" while unfocused.
  • fix(web): end cut-off diagnostics filter placeholders in an ellipsis #5057's diagnostics filters keep their own text-ellipsis, which also covers typed text there.

Validation

  • In headless Edge at 393×852 with mobile emulation, German, on Admin › Users: on main, the search box's computed text-overflow is clip and its placeholder stops at "…E-Mail such"; with this change it's ellipsis and the placeholder ends "su…". Screenshots are below.
  • pnpm exec vitest run src/components/ui src/pages/AdminUsers src/pages/watchtogether: 21 passed. tsc -b --noEmit, eslint (no new findings) and prettier on the changed files: clean.
  • Not tested: the other listed search boxes one by one (they use the same Input), Safari and Firefox (the issue reports their behaviour), and a typed value in a browser (placeholder-shown doesn't match once a value is typed).

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-5470/ (before/after screenshots of the Admin Users search in German at phone width)

Admin › Users search, German, phone width (393×852)

Before (main): the placeholder stops at "Nach Benutzername oder E-Mail such", with no sign that text is missing.

After: it ends "Nach Benutzername oder E-Mail su…".

Risks

  • Every Input with a placeholder now ends an overflowing placeholder in "…". That's the intended change. A field whose placeholder fits looks the same.
  • No API, schema or config change.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code in the Claude desktop app
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, not yet human verified
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Add placeholder text-overflow ellipsis to Input and browse search field

Adds a placeholder-only text-overflow utility to the shared Input component in input.tsx so overflowing placeholder text ends with an ellipsis. Applies it to the watch-together browse search field in BrowseShelf.tsx. Entered values keep the browser's default clipping behavior.

Macroscope summarized 6f34003.

On a phone in a longer language, search boxes cut their placeholder off
mid-word with no ellipsis: in German at 393 px the Admin Users search read
"Nach Benutzername oder E-Mail such". The shared Input set no
text-overflow, and only Silo-Server#5057's diagnostics filters had one.

The shared Input now sets text-overflow: ellipsis while its placeholder
shows (placeholder-shown:text-ellipsis), which covers every search box
built on it, and the raw input of the Watch Together browse shelf gets the
same class. A typed value is unaffected, so a long path or URL keeps its
end visible.

Closes Silo-Server#5059

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 27, 2026
@silo-kody

silo-kody Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 27, 2026
@silo-triage

silo-triage Bot commented Nov 27, 2026

Copy link
Copy Markdown

The Evidence section covers phone-width web, but this changes the shared Input and Watch Together search without a mobile-only restriction. Please add before-and-after desktop web captures with an overflowing placeholder, naming the builds, or explain why desktop is unaffected. The repository treats desktop and mobile web as separate evidence surfaces.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The shared Input and the Watch Together browse search input now apply text ellipsis while the placeholder is shown. The shared input also includes comments about placeholder and typed-text behavior.

Changes: Placeholder ellipsis

Layer / File(s) Summary
Apply ellipsis to placeholders
web/src/components/ui/input.tsx, web/src/pages/watchtogether/room/browse/BrowseShelf.tsx
Both inputs add placeholder-shown:text-ellipsis. The shared Input includes comments describing the intended behavior for placeholders and typed text.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: quick104

Merge Risk: Minimal · up to d691f

This change makes long placeholder text in search fields end with an ellipsis instead of being clipped, and typed text is unchanged. The change is small, web-only, and easy to revert, so it is ready to merge.

Security architecture risk: Minimal · up to d691f

Long placeholders can now end with an ellipsis. The change does not alter what users can enter, search for, or access.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the search placeholder that overflows its box now ends with an ellipsis. It matches the raw summary, which adds placeholder-shown:text-ellipsis to the shared Input and…
Linked Issues check Passed Issue #5059 asks that a placeholder too long for its box end in "…" in every language, covering the search inputs it lists. The reviewed head adds placeholder-shown:text-ellipsis to the shared `Inpu…
Out of Scope Changes check Passed The whole-PR diff against the merge base changes two files. input.tsx adds one Tailwind variant class and a comment. BrowseShelf.tsx adds the same variant class to its raw search <input>. Both c…
Description check Passed The description passes. It states the problem (search placeholders clipped without an ellipsis on narrow phone widths, shown with German on Admin Users at 393 px), the approach (adding placeholder-sho…
Full details: Title check

Explanation

The title names the main change: the search placeholder that overflows its box now ends with an ellipsis. It matches the raw summary, which adds placeholder-shown:text-ellipsis to the shared Input and to the Watch Together browse shelf input. The 'fix(web)' prefix is a conventional commit style that adds no noise.

Full details: Linked Issues check

Explanation

Issue #5059 asks that a placeholder too long for its box end in "…" in every language, covering the search inputs it lists. The reviewed head adds placeholder-shown:text-ellipsis to the shared Input (web/src/components/ui/input.tsx). This applies to every Input caller, including the listed Admin Users, DeviceList, and similar search fields that use Input. The raw &lt;input&gt; in web/src/pages/watchtogether/room/browse/BrowseShelf.tsx, which the issue names, gets the same class. The class applies only while the placeholder shows, which matches the issue's concern that typed paths and URLs must keep their end visible. The issue's requirements are coding requirements, and the diff implements them. The PR's screenshots and manual Edge run are non-coding evidence and were not assessed as requirements. No automated test was required by the issue. Remaining uncertainty: the diff does not show per-field rendering at phone width. The other listed search boxes were not checked individually, so their rendering is inferred from the shared class. The diff alone establishes the class is applied to them.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff against the merge base changes two files. input.tsx adds one Tailwind variant class and a comment. BrowseShelf.tsx adds the same variant class to its raw search &lt;input&gt;. Both changes directly implement issue #5059. The PR adds no API, schema, config, or unrelated refactoring. The PR description's validation and evidence sections are supporting material for the same change and are not out-of-scope code.

Full details: Description check

Explanation

The description passes. It states the problem (search placeholders clipped without an ellipsis on narrow phone widths, shown with German on Admin Users at 393 px), the approach (adding placeholder-shown:text-ellipsis to the shared Input and to the raw input in BrowseShelf.tsx), the validation performed, the untested items, and the risks. This matches the files in the raw summary.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 24af8836-216a-4f74-9486-efdb73b1f8f8
Commits

Reviewing files that changed from the base of the PR and between 0a631fb and d691fe6.

Files selected for processing: 2

  • web/src/components/ui/input.tsx
  • web/src/pages/watchtogether/room/browse/BrowseShelf.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

A blurred typed value shows its start and clips its end with or without
the ellipsis, so the comment's claim that a typed path keeps its end
visible was wrong. Say instead that typed values keep the plain clip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Claude Code (claude-opus-5-5)

The change works. I built the web bundle at the base and at this head and rendered the Admin › Users search and the Watch Together search with each build's compiled CSS and the German strings. In Chromium, WebKit and Firefox, the base stops the placeholder mid-word and this head ends it in "…". Typed values look the same before and after. I could not use a signed-in dev sandbox for this check, so these are fixture renders rather than captures of the running app.

One inline finding, about the new comment. I'm fixing it in a commit on this branch, so there's no need to change it yourself.

Two browser facts for the maintainers, neither caused by this PR:

  • Chromium and WebKit drop a placeholder's ellipsis while the empty field has focus, and Firefox keeps it. After someone taps into a search box on a phone, the placeholder is clipped again until they type. No CSS on the input or on ::placeholder changes that.
  • The Ctrl/Cmd-K search dialog (GlobalSearch.tsx) uses a raw <input>, so this PR doesn't reach it. Its request-mode placeholder still stops mid-word at narrow widths in most languages other than English. That input has autoFocus, so adding the same class there would only help Firefox. I've left that as a maintainer decision.

Comment thread web/src/components/ui/input.tsx Resolved
@silo-kody

silo-kody Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104

Copy link
Copy Markdown
Contributor

🤖 Claude Code (claude-opus-5-5)

Review summary

Reviewed head: 6f34003e0a (the contributor's d691fe6426 plus one comment fix).

The PR does what it says. On the base, an overflowing placeholder on the shared Input and on the Watch Together search stops mid-word. With this change, it ends in "…" in Chromium, WebKit and Firefox. Typed values look the same before and after.

How it was checked

  • I couldn't create a signed-in dev sandbox, so I verified with fixtures instead.
  • I built the web bundle at the base (0a631fb9) and at the head. The head CSS has .placeholder-shown\:text-ellipsis:placeholder-shown{text-overflow:ellipsis}, and the base CSS has no such rule.
  • I rendered the Admin › Users search, the same search with a long typed value, the Watch Together search, and the Ctrl/Cmd-K search. Each used its build's compiled CSS, its file's exact class strings and the German strings.
  • Sizes: phone, tablet and desktop widths in Chromium, plus phone width in WebKit and Firefox.
  • At tablet and desktop widths, nothing changes because the German placeholders fit. That answers the earlier request for desktop captures.
  • The PR adds no tests, so there was nothing to run against the base.

Evidence: https://evidence.siloserver.org/r/silo-server/pr-5470-review/

Addressed

  • The new comment in input.tsx said a typed path or URL keeps its end visible. That isn't true: a blurred value shows its start, with or without this class. I fixed the comment in 6f34003e0a and corrected the matching line in the PR body.

Left for the maintainers

  • Ctrl/Cmd-K search (maintainer decision). This dialog uses a raw <input>, so the PR doesn't reach it. At narrow widths, its request-mode placeholder still stops mid-word in German, French, Polish, Spanish, Dutch, Italian and Russian. The input has autoFocus, and Chromium and WebKit hide a placeholder's ellipsis while the field has focus. Adding the same class there would only help Firefox. The options:
    • Leave it out of this PR.
    • Add the class there for Firefox.
    • Shorten that placeholder in the translation catalog, which fixes it in every browser.
  • Focused fields. After someone taps into a search box on a phone, Chromium and WebKit show the placeholder clipped again until they type. No CSS changes that, and this PR doesn't cause it.
  • AdminDevices.tsx and the diagnostics filters still pass their own plain text-ellipsis, which also puts an ellipsis on typed values there. That was true before this PR, and nothing breaks.

Validated features: I checked the passed v1.0 cases. None depends on how an overflowing placeholder looks. Validation tasks: none is correct.

User manual: unaffected. No setting, label or step changes.

Other clients: Web only. The Apple and Android apps draw their own search fields.

Council review (one combined code and visual round, on d691fe6426)

Member Code Visual
Sol (gpt-6.2-sol, medium) 8/10 better, 8/10
Opus (claude-opus-5-5, medium) 8/10 better, 8/10
Gemini (gemini-4-neon, medium) 7/10 better, 7/10

All three flagged the inaccurate comment, which is now fixed. They also flagged the Ctrl/Cmd-K search: Gemini wanted the class added there, and Opus judged it fine to leave out because the input autofocuses. That is the maintainer decision above.

Fit: 9/10 · Readiness: 8/10, conditional (assuming CI is green)

  • Fit: it fixes a real display bug in longer languages, in the shared component that every caller uses, without adding new surface.
  • Readiness: the code is correct and verified in three browser engines. It loses a point because the check used fixture renders, not the signed-in app.

@Quick104
Quick104 merged commit 66665a8 into Silo-Server:main Nov 30, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Search box placeholders stop mid-word on phones in longer languages

2 participants