From 61b4814bb127e2c45048ad1b0ef8984bb4ca633e Mon Sep 17 00:00:00 2001 From: Anthony Dillon Date: Wed, 12 Jun 2024 16:54:45 +0100 Subject: [PATCH] Improve the interactions of the participant-table (#48) * Improve the interactions of the participant-table * Fix the sticky top on vertical scrolling --- .../static/css/_default/participant-list.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/indico_themes_canonical/static/css/_default/participant-list.css b/indico_themes_canonical/static/css/_default/participant-list.css index 97bd6f7..186acd8 100644 --- a/indico_themes_canonical/static/css/_default/participant-list.css +++ b/indico_themes_canonical/static/css/_default/participant-list.css @@ -21,4 +21,18 @@ display: block; overflow-x: auto; white-space: nowrap; + height: 65vh; +} + +table.i-table thead { + position: sticky; + top: 0; +} + +table thead th:first-child, +table tbody td:first-child { + position: sticky; + left: 0; + z-index: 2; + background: var(--brand-white); } \ No newline at end of file