refactor(core): use custom scrollbar for editor and adjust shared page style (#5752)

Close TOV-481
- Use a custom scrollbar component for editor
- Modified the header of the share page and added a new footer
This commit is contained in:
JimmFly
2024-02-26 08:54:52 +00:00
parent e9f9eea80c
commit 0be62d892d
26 changed files with 504 additions and 209 deletions

View File

@@ -222,30 +222,6 @@ input[type='number']::-webkit-outer-spin-button {
height: 0;
}
.affine-doc-viewport::-webkit-scrollbar {
width: 20px;
/* Chrome Safari */
height: 20px;
}
.affine-doc-viewport::-webkit-scrollbar-thumb {
border-radius: 12px;
background-clip: padding-box;
border-style: solid;
border-width: 7px;
border-color: transparent;
transition: all 0.2s;
}
.affine-doc-viewport:hover::-webkit-scrollbar-thumb {
background-color: var(--affine-divider-color);
}
.affine-doc-viewport:hover::-webkit-scrollbar-thumb:hover {
background-color: var(--affine-icon-color);
border-width: 5px;
}
.editor-wrapper {
position: relative;
padding-right: 0;
@@ -282,7 +258,6 @@ affine-block-hub {
.editor-wrapper {
width: 100%;
height: 100%;
}
/* issue: https://github.com/toeverything/AFFiNE/issues/2004 */