Skip to content

ui: Fix datagrid layout#2123

Merged
stevegolton merged 1 commit intomainfrom
dev/sg/datagrid-layout
Jul 11, 2025
Merged

ui: Fix datagrid layout#2123
stevegolton merged 1 commit intomainfrom
dev/sg/datagrid-layout

Conversation

@stevegolton
Copy link
Member

@stevegolton stevegolton commented Jul 10, 2025

Fixed the datagrid's css so that the table scrolls, not the toolbar when space is limited, which means the toolbar / paging controls stay put and the table header stays pinned to the top when scrolling large pages.

Also fixed the widget layout to hide the overflow, limiting the size of widgets so that they get a chance to overflow and demonstrate scrolling.

Tested in the following places:

  • Aggregation panels
  • Query page
  • Queries in the tab drawer
  • Widgets page
  • Explore page

Demo - notice the paging controls stay put while scrolling the table, and the table header sticks to the top when scrolling vertically, but says aligned with the columns when scrolling horizontally.

e4c3f120-663d-4f3c-80f2-b79a45a1928f.webm

Scroll the table not the toolbar, which means the paging controls stay put when scrolling large tables, and the table header stays pinned to the top.

Also fixed the widget layout to hide the overflow, limiting the size of widgets so that they get a chance to overflow and demonstrate scrolling.

Tested in the following places:
- Aggregation panels
- Query page
- Queries in the tab drawer
- Widgets page
- Explore page

Change-Id: I467a25ad2c061fca7dad1510d733cc87285f5f5a
@stevegolton stevegolton requested a review from aMayzner July 10, 2025 16:36
@stevegolton stevegolton requested a review from a team as a code owner July 10, 2025 16:36
@stevegolton stevegolton requested a review from LalitMaganti July 10, 2025 20:46
@stevegolton stevegolton merged commit d2fef45 into main Jul 11, 2025
21 checks passed
@stevegolton stevegolton deleted the dev/sg/datagrid-layout branch July 11, 2025 09:17
olehkuznetsov pushed a commit to olehkuznetsov/perfetto that referenced this pull request Mar 12, 2026
Fixed the datagrid's css so that the table scrolls, not the toolbar when
space is limited, which means the toolbar / paging controls stay put and
the table header stays pinned to the top when scrolling large pages.

Also fixed the widget layout to hide the overflow, limiting the size of
widgets so that they get a chance to overflow and demonstrate scrolling.

Tested in the following places:
- Aggregation panels
- Query page
- Queries in the tab drawer
- Widgets page
- Explore page

Demo - notice the paging controls stay put while scrolling the table,
and the table header sticks to the top when scrolling vertically, but
says aligned with the columns when scrolling horizontally.


[e4c3f120-663d-4f3c-80f2-b79a45a1928f.webm](https://github.com/user-attachments/assets/30e445fe-4677-46a4-ab7e-c471d41e080e)
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.

2 participants