From 1250aa666f1d29e80e15af040d30a5a5910ee981 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 11 Dec 2024 11:20:53 +0000 Subject: [PATCH] Fix scrollbar styles --- packages/bbui/src/Layout/Page.svelte | 3 +-- packages/builder/src/global.css | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/bbui/src/Layout/Page.svelte b/packages/bbui/src/Layout/Page.svelte index 62dd9cc909..e469927e60 100644 --- a/packages/bbui/src/Layout/Page.svelte +++ b/packages/bbui/src/Layout/Page.svelte @@ -43,12 +43,11 @@ flex-direction: row; justify-content: flex-start; align-items: stretch; - overflow-y: scroll !important; flex: 1 1 auto; overflow-x: hidden; } .main { - overflow: auto; + overflow-y: scroll; } .content { display: flex; diff --git a/packages/builder/src/global.css b/packages/builder/src/global.css index adf4a47070..a13d491416 100644 --- a/packages/builder/src/global.css +++ b/packages/builder/src/global.css @@ -61,7 +61,7 @@ a { height: 8px; } ::-webkit-scrollbar-track { - background: var(--spectrum-alias-background-color-default); + background: transparent; } ::-webkit-scrollbar-thumb { background-color: var(--spectrum-global-color-gray-400); @@ -71,6 +71,5 @@ a { background: var(--spectrum-alias-background-color-default); } html * { - scrollbar-color: var(--spectrum-global-color-gray-400) - var(--spectrum-alias-background-color-default); + scrollbar-color: var(--spectrum-global-color-gray-400) transparent; }