Skip to content

fix(DataTable): scroll wide tables inside the bordered container (#617) - #619

Draft
mathewtaylor wants to merge 1 commit into
v4.2.0from
foreman/ml-709
Draft

mathewtaylor wants to merge 1 commit into
v4.2.0from
foreman/ml-709

Conversation

@mathewtaylor

Copy link
Copy Markdown
Contributor

Part of #617.

Problem

BbDataTable wraps the table in a bordered box with no overflow handling. When the table is wider than its parent, the last columns spill past the border and the surrounding card. Seen in the Admin Site blueprint's Members and Projects tables in the embedded preview (1280px window, about 770px of content width).

Change

The table container now has relative w-full overflow-x-auto, the same as BbDataGrid's container. A wide table scrolls sideways inside its border. Tables that fit look and behave as before.

Tests

  • New: DataTableOverflowTests checks the bordered container scrolls horizontally.
  • Ran DataTableOverflowTests, ApiSurface and DataViewSelectionTests: 7 passed in about 3s. No public API change.
  • Checked visually in the website's Admin Site blueprint built against this branch: Members and Projects stay inside their borders in the preview, and the full-width demo is unchanged.

The other two overflows in #617 (Portfolio Budget and Choose Your Plan cards) are in the website repo and are fixed there separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant