From df4eeeae6da453bcb46b77562ea6e68e1d040546 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 8 Aug 2024 13:40:24 +0700 Subject: [PATCH] no message --- .../02_users/views/permissionDetail.vue | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/modules/02_users/views/permissionDetail.vue b/src/modules/02_users/views/permissionDetail.vue index 10327662..eb9a4d96 100644 --- a/src/modules/02_users/views/permissionDetail.vue +++ b/src/modules/02_users/views/permissionDetail.vue @@ -259,6 +259,8 @@ onMounted(() => {
{ top: -2px; right: -2px; } + +.my-sticky-dynamic { + /* Large screens and up */ + + height: 65vh; + + .q-table__top, + .q-table__bottom, + thead tr:first-child th { + /* bg color is important for th; just specify one */ + background-color: #fff; /* Replace with your desired color */ + } + + thead tr th { + position: sticky; + z-index: 1; + top: 0; /* Default top position for all th elements */ + background-color: #fff; /* Replace with your desired color */ + } + + /* this will be the loading indicator */ + thead tr:last-child th { + /* height of all previous header rows */ + top: 48px; /* Adjust this value based on the cumulative height of previous header rows */ + } + + thead tr:first-child th { + top: 0; + } + + /* prevent scrolling behind sticky top row on focus */ + tbody { + /* height of all previous header rows */ + scroll-margin-top: 48px; /* Adjust this value based on the cumulative height of previous header rows */ + } +}