style: add scrollbar (#2826)

This commit is contained in:
JimmFly
2023-06-26 15:12:44 +08:00
committed by GitHub
parent 773d92760e
commit 002e64c819
11 changed files with 199 additions and 45 deletions

View File

@@ -187,14 +187,24 @@ input[type='number']::-webkit-outer-spin-button {
-ms-overflow-style: none; /* IE 10+ */
}
::-webkit-scrollbar {
display: none; /* Chrome Safari */
width: 0; /* Chrome Safari */
height: 0;
}
.affine-default-viewport::-webkit-scrollbar {
width: 8px; /* Chrome Safari */
}
.affine-default-viewport::-webkit-scrollbar-thumb {
border-radius: 4px;
}
.affine-default-viewport:hover::-webkit-scrollbar-thumb {
background-color: var(--affine-black-30);
}
.editor-wrapper {
position: relative;
width: 100%;
height: 100%;
padding: 0 2rem;
padding: 0 1rem;
padding-right: 8px;
}
/* issue: https://github.com/toeverything/AFFiNE/issues/2004 */