Skip to content

Polish DataView block layout#194

Merged
priethor merged 2 commits into
mainfrom
priethor/add/bulk-select-delete-v1
May 15, 2026
Merged

Polish DataView block layout#194
priethor merged 2 commits into
mainfrom
priethor/add/bulk-select-delete-v1

Conversation

@priethor

@priethor priethor commented May 15, 2026

Copy link
Copy Markdown
Collaborator

What

Polishes the embedded data-view block layout. Short tables now hug their content instead of sitting inside a fixed 640px box, and long tables can keep growing with the document. The block selection outline also stays visible around the table, pagination, and New row button.

This also tightens the actions column so it only takes the space needed for the kebab / + controls, and keeps shorter cells centered when another cell makes the row taller.

Why

Small embedded tables looked oddly tall, and the pagination footer could cut through Gutenberg's blue selection outline. The actions column had a similar polish issue: it inherited the generic table-cell width, which wasted space and could push real data under the sticky-right edge.

Testing Instructions

  1. Add or select a cortext/data-view block with a short collection.
  2. Check that the block height fits the visible rows without a large empty area.
  3. Select the block and check that the blue outline stays continuous around the table, pagination, and New row button.
  4. Check that the actions column is only wide enough for the kebab / + controls.
  5. Use a row with taller wrapped content and check that shorter cells and row controls stay vertically centered.
  6. Open a full collection view and check that the table still scrolls normally there.

Screenshots

Before After
image image
image image
image image

@priethor priethor changed the title Polish dataviews block style inconsistences Polish data-view block layout May 15, 2026
@priethor priethor marked this pull request as ready for review May 15, 2026 10:00
@priethor priethor changed the title Polish data-view block layout Polish DataView block layout May 15, 2026
@priethor priethor merged commit 6805d77 into main May 15, 2026
7 checks passed
@priethor priethor deleted the priethor/add/bulk-select-delete-v1 branch May 15, 2026 10:08
@priethor priethor added this to the 0.1.0 milestone May 28, 2026
@priethor priethor added type: enhancement Improvement to existing behavior. area: collections Fields, rows, views, DataViews, relations, rollups, formulas, and row properties. labels May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: collections Fields, rows, views, DataViews, relations, rollups, formulas, and row properties. type: enhancement Improvement to existing behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant