From 67fc3b1e4a4318834671c92026132a905e40b546 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 16 Oct 2024 16:02:32 +0200 Subject: [PATCH] feat: refs #8110 #8110 sticky header class --- src/css/app.scss | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/css/app.scss b/src/css/app.scss index 905934d4c..ada5556e2 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -288,3 +288,27 @@ input::-webkit-inner-spin-button { color: $info; } } + +.table-header-sticky { + max-height: 90vh; + + .q-table__top, + .q-table__bottom, + thead { + tr th { + position: sticky; + z-index: 1; + } + tr:last-child th { + top: 48px; + } + tr:first-child th { + background-color: var(--vn-section-color); + top: 0; + } + } + + tbody { + scroll-margin-top: 48px; + } +}