From 2d2bf5c50462f7e05717d5e8da90c8b260451a11 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 14 Jan 2023 19:34:12 +0100 Subject: [PATCH] fix: permissions table on mobile is unusable (#3722) --- framework/core/less/admin/PermissionsPage.less | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/framework/core/less/admin/PermissionsPage.less b/framework/core/less/admin/PermissionsPage.less index f318f8d58..514028d22 100644 --- a/framework/core/less/admin/PermissionsPage.less +++ b/framework/core/less/admin/PermissionsPage.less @@ -50,7 +50,6 @@ color: var(--muted-color); } thead th { - position: -webkit-sticky; position: sticky; top: 0; padding-bottom: 10px; @@ -63,9 +62,12 @@ z-index: 1; &:first-child { - left: 0; z-index: 3; background: var(--body-bg); + + @media @tablet-up { + left: 0; + } } &:not(:hover) .PermissionGrid-removeScope { @@ -74,13 +76,15 @@ } tbody { th { - position: -webkit-sticky; - position: sticky; - left: 0; padding-right: 50px; z-index: 4; background: inherit; + @media @tablet-up { + position: sticky; + left: 0; + } + .icon { margin-right: 5px; font-size: 14px;