DataGrid footer overflows and clips pagination in narrow containers
I maintainer di solito rispondono entro 1 giorno
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
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 anHStackwithjustify="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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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 lablup/ui-common
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
lablup/ui-common#134 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di lablup/ui-common
Issue simili
-
Navbar avatar and name stay stale after saving profile changesForse già presa @alexechoi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
marmelab/atomic-crm#416 ·
I maintainer di solito rispondono entro 1 giorno
-
feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
bluesky-social/social-app#12343 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
lucide-icons/lucide#5165 ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature] Preferences - Keep the theme selection popover open after selection for quick previewAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
marktext/marktext#6033 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:desktop bug has repro platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
anthropics/claude-code#107903 ·