Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: ListItemText does not truncate long text by default, causing hard clipping in constrained containers

Aperta
#1,744 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@Utkarsh-Mauryaa ci sta già lavorando.

Dal 27/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

kind/bug
Current Behavior
  • ListItemText does not apply any text truncation styling by default. When its content is longer than the available width and it's rendered inside a container that constrains width and sets overflow: hidden (a standard pattern for fixed-width sidebars, drawers, and similar layouts), the text is hard-clipped mid-character instead of degrading gracefully.
  • This happens because ListItemText/its inner Typography doesn't set white-space: nowrap, overflow: hidden, or text-overflow: ellipsis by default, so there's no ellipsis to signal that content has been cut off, text is simply cut wherever the ancestor's overflow boundary happens to fall.
Expected Behavior
  • ListItemText should truncate overflowing text gracefully with an ellipsis (…) instead of hard-clipping it, when rendered inside a width-constrained container.
  • Applying noWrap to the underlying Typography (e.g. via slotProps={{primary: { noWrap: true}}}) resolves this correctly, it sets white-space: nowrap; overflow: hidden; text-overflow: ellipsis, and since overflow: hidden is present, the flexbox automatic-minimum-size algorithm resolves the item's minimum width to 0 as a spec-defined side effect, allowing it to shrink and truncate properly. No additional min-width override is needed.
Screenshots/Logs
Image
Environment

Browser: Google Chrome
Operating System: Linux


Contributor Guides and Resources
Lingua principale
TypeScript
Stelle
137
Fork
239
Merge medio
4g 14h
PR unite (30g)
5

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di layer5io/sistent

Tutte le issue di layer5io/sistent

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.