fix(settings): fix mobile scrollbar padding

This commit is contained in:
Paul Makles 2022-01-04 23:11:58 +00:00
parent cad1c2fc3a
commit 2edf122b34
2 changed files with 7 additions and 18 deletions

View file

@ -38,14 +38,6 @@
flex-direction: column; flex-direction: column;
background: var(--primary-header); background: var(--primary-header);
::-webkit-scrollbar-thumb {
min-height: 100px;
width: 4px;
background-clip: content-box;
border-top: var(--header-height) solid transparent;
border-bottom: var(--bottom-navigation-height) solid transparent;
}
.sidebar, .sidebar,
.content { .content {
background: var(--primary-background); background: var(--primary-background);
@ -56,7 +48,7 @@
overflow-y: auto; overflow-y: auto;
.container { .container {
padding: 20px 10px 80px; padding: 12px 10px 80px;
min-width: 218px; min-width: 218px;
} }
@ -97,6 +89,11 @@
&.closing { &.closing {
animation: close 0.18s ease-in; animation: close 0.18s ease-in;
} }
.scrollbox::-webkit-scrollbar-thumb {
background-clip: content-box;
border-top: 80px solid transparent;
}
} }
.settings { .settings {
@ -119,14 +116,6 @@
visibility: visible; visibility: visible;
} }
// All children receive custom scrollbar.
> * > ::-webkit-scrollbar-thumb {
min-height: 100px;
width: 4px;
background-clip: content-box;
border-top: 80px solid transparent;
}
.sidebar { .sidebar {
flex: 1 0 218px; flex: 1 0 218px;
display: flex; display: flex;

View file

@ -13,8 +13,8 @@
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
min-height: 30px;
min-width: 30px; min-width: 30px;
min-height: 30px;
background-clip: content-box; background-clip: content-box;
background: var(--scrollbar-thumb); background: var(--scrollbar-thumb);