Fix hidden scrollbar for electron 25

- Newer chromium versions do not support scrollbar overlay css
This commit is contained in:
jeffvli 2023-07-16 23:48:44 -07:00
parent be37dada13
commit 1de89071e8
2 changed files with 111 additions and 124 deletions

View file

@ -30,7 +30,7 @@ const StyledScrollArea = styled(MantineScrollArea)`
const StyledNativeScrollArea = styled.div<{ scrollBarOffset?: string; windowBarStyle?: Platform }>` const StyledNativeScrollArea = styled.div<{ scrollBarOffset?: string; windowBarStyle?: Platform }>`
height: 100%; height: 100%;
overflow-y: overlay !important; overflow-y: auto;
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
margin-top: ${(props) => margin-top: ${(props) =>

View file

@ -74,19 +74,9 @@ button {
-webkit-app-region: no-drag; -webkit-app-region: no-drag;
} }
.overlay-scrollbar {
overflow-y: overlay !important;
overflow-x: overlay !important;
}
.hide-scrollbar { .hide-scrollbar {
scrollbar-width: thin;
scrollbar-color: transparent transparent; scrollbar-color: transparent transparent;
&::-webkit-scrollbar {
width: 1px;
}
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
background: transparent; background: transparent;
} }
@ -96,10 +86,6 @@ button {
} }
} }
.hide-scrollbar::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
@keyframes fadeIn { @keyframes fadeIn {
from { from {
opacity: 0; opacity: 0;
@ -223,6 +209,7 @@ button {
@font-face { @font-face {
font-family: 'DroidSerif'; font-family: 'DroidSerif';
src: url('https://fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Regular.woff2') format('truetype'); src: url('https://fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Regular.woff2')
format('truetype');
unicode-range: U+3000-9FFF, U+ff??; /* Japanese glyphs */ unicode-range: U+3000-9FFF, U+ff??; /* Japanese glyphs */
} }