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

[Bug] Taxonomy page: a long tag name joined with underscores or without spaces does not wrap and overflows the tag list

Aperta
#869 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
css, typescript
Ambito
frontend

Direzione di ricerca

The tag name cell is rendered in src/taxonomy/tag-list/tagColumns.tsx, where a span sits inside a d-flex align-items-center gap-2 span. The issue names this file, but it was filed on openedx-core while the code is in frontend-app-authoring, so confirm the repository first. Import the attached CSV at a 1366 px width and check whether long underscore or unspaced names wrap. Done when they wrap inside the column without overlapping the menu button or the details panel, and without a page scrollbar.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Environment: Master Sandbox, https://apps.master.openedx.io/
Steps to reproduce

  1. Download the taxonomy export file QA758 Closed Taxonomy 13.10 (1).csv.
  2. In Studio, go to Taxonomies and import the file as a new taxonomy with Tags taxonomy type.
  3. Open the imported taxonomy. It contains two 235-character tags made of the same 20 words: one joined with underscores (Competency_Framework_Assessment_..._Strategic_Technical) and one joined with hyphens (Competency-Framework-Assessment-...-Strategic-Technical). The other tags in the file come from other test scenarios. The two names that start with 255 A characters overflow too, because they contain no separator at all, which is not a realistic case.

Actual result

  • The hyphen-joined name wraps at the hyphens and fits inside the Tag name column (7 lines at a column width of 358 px).
  • The underscore-joined name and name without spaces stay on a single line about 1,650 px wide. It overlaps the tag's action menu button (⋮) and runs underneath the Taxonomy details panel.
  • At a 1366 px window width, the underscore-joined name and name without spaces also adds a horizontal scrollbar to the whole page (page width 1696 px, visible width 1351 px).
Image

Expected result

A long tag name wraps inside the Tag name column regardless of which separator it uses, so that it does not overlap the action menu button or the Taxonomy details panel, and does not cause horizontal page scrolling. Names that use underscores are realistic in imported frameworks, where tags often mirror snake_case codes or identifiers.

Technical notes

  • The tag name is rendered in src/taxonomy/tag-list/tagColumns.tsx as a <span> inside <span className="d-flex align-items-center gap-2">. This markup was introduced in frontend-app-authoring PR #2872.
  • The table cell already has overflow-wrap: break-word, but the text does not break. A likely cause is that the inner <span> is a flex item, and a flex item defaults to min-width: auto, so it cannot shrink below the width of its longest unbreakable word. Browsers treat a hyphen as a line-break opportunity, but not an underscore. Adding min-width: 0 to that <span>, or using overflow-wrap: anywhere, would probably fix it. This cause has not been confirmed in code.
  • The issue was found during QA of #758, but it is not caused by #758, which changes no frontend code.
Lingua principale
Python
Stelle
10
Fork
33
Merge medio
2g 10h
PR unite (30g)
17

Preparare l'ambiente

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 openedx/openedx-core

Tutte le issue di openedx/openedx-core

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.