DataGrid footer overflows and clips pagination in narrow containers

Aperta
#129 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@lablup-octodog ci sta già lavorando.

Dal 4/11/2026.

  • #130 di @lablup-octodog — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
css, react, typescript
Ambito
design, frontend

Direzione di ricerca

Start with the footer layout in src/components/DataGrid/DataGrid.tsx and its styles in DataGrid.css; inspect how HStack and Pagination handle narrow widths. Reproduce the clipping in a 360–480px container with overflow: hidden, then check the footer at narrow and wide widths. Done when its controls remain accessible inside the container; pull request #130 is already open for this issue.

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

Descrizione

Summary

DataGrid's footer (uic-data-grid__footer) lays out the range text, the Pagination page buttons, the page-size selector and the settings / export buttons on one right-aligned row with no wrapping and no shrinking. In a narrow container the row overflows its parent, and inside a card that clips its content the page buttons and the page-size selector are cut off.

Where

  • src/components/DataGrid/DataGrid.tsx: the footer is an HStack with justify="end", gap={2}; nothing lets it wrap.
  • DataGrid.css: .uic-data-grid__footer { margin-top: var(--spacing-3) } only.

Reproduce

Render a paginated DataGrid (pagination with totalItems large enough for 5+ pages and pageSizeOptions) inside a container about 360-480px wide with overflow: hidden. The page-size selector and the last page buttons are clipped. Seen in Backend.AI WebUI's dashboard cards (a 2-column-wide board card with a scheduling history table).

Expected

The footer stays inside its container at any width, for example:

  • the row wraps (flex-wrap: wrap, keeping the end alignment), so the range text moves to its own line first; and/or
  • below a container width, the range text hides or the pagination switches to a compact variant (fewer page buttons / previous-next only).

A container query on the grid would let it adapt to the card width rather than the viewport.

Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
1g 1h
PR unite (30g)
35

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 lablup/ui-common

Tutte le issue di lablup/ui-common

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.