Skip to content

Commit

Permalink
Make table scrollable for a sticky header/footer
Browse files Browse the repository at this point in the history
  • Loading branch information
micsucmed committed Apr 5, 2024
1 parent 2852231 commit 770524a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion newdle/client/src/components/GridCommon.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,24 @@
.answer-grid {
overflow-x: auto;
max-width: max-content;
max-height: 580px;

thead tr > th {
position: sticky !important;
top: 0;
z-index: 1;
}

tfoot tr > th {
position: sticky !important;
bottom: 0;
z-index: 1;
}

th:first-child {
position: sticky !important;
left: 0;
z-index: 1;
z-index: 2;
}

tr:not(.spacer) td:first-child {
Expand Down

0 comments on commit 770524a

Please sign in to comment.