[Bug]: ListItemText does not truncate long text by default, causing hard clipping in constrained containers
@Utkarsh-Mauryaa ci sta già lavorando.
Dal 27/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
Environment
Browser: Google Chrome
Operating System: Linux
Contributor Guides and Resources
- 🛠 Meshery Build & Release Strategy
- 📚 Instructions for contributing to documentation
- 🎨 Wireframes and designs for Sistent site in Figma (open invite)
- 🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di layer5io/sistent
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
component/ui help wanted kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
ESM build is not loadable by Node: extensionless 'lodash/debounce' specifier in dist/index.mjs Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
kind/bug
Tutte le issue di layer5io/sistent
Issue simili
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Crush Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
ElementsProject/cln-application#167 · 1 commento · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Quantco/pnpm-licenses#17 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100