From 323d86850a4a85b7a27d9d76766449d5e5face83 Mon Sep 17 00:00:00 2001 From: Will Martin Date: Thu, 29 Feb 2024 11:35:13 -0500 Subject: [PATCH] [CL-203] fix select options position (#8151) * add relative to body * remove scrollbar positon hack --- apps/web/src/scss/base.scss | 1 + apps/web/src/scss/tailwind.css | 5 ----- libs/components/src/tw-theme.css | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/web/src/scss/base.scss b/apps/web/src/scss/base.scss index b02d413595..257662fd5b 100644 --- a/apps/web/src/scss/base.scss +++ b/apps/web/src/scss/base.scss @@ -4,6 +4,7 @@ html { body { min-width: 1010px; + position: relative; &.layout_frontend { @media (prefers-color-scheme: dark) { diff --git a/apps/web/src/scss/tailwind.css b/apps/web/src/scss/tailwind.css index 1e04904d9d..e58785aecb 100644 --- a/apps/web/src/scss/tailwind.css +++ b/apps/web/src/scss/tailwind.css @@ -3,8 +3,3 @@ @tailwind utilities; @import "../../../../libs/components/src/tw-theme.css"; - -/* Prevent page from jumping when showing scrollbar */ -html { - margin-right: calc(-100vw + 100%); -} diff --git a/libs/components/src/tw-theme.css b/libs/components/src/tw-theme.css index 21c9f345b7..75a8fa6380 100644 --- a/libs/components/src/tw-theme.css +++ b/libs/components/src/tw-theme.css @@ -202,7 +202,7 @@ summary.tw-list-none::-webkit-details-marker { } .cdk-global-scrollblock { - position: unset; + position: relative; height: 100%; overflow: hidden; }