DataGrid footer overflows and clips pagination in narrow containers

オープン
#129 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@lablup-octodog がすでに取り組んでいます。

2026年11月4日 から。

  • #130 @lablup-octodog による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
css, react, typescript
領域
design, frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
2
フォーク
0
平均マージ
1日 1時間
マージ済み PR(30日)
35

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lablup/ui-common のほかの issue

lablup/ui-common の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。