Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(component): retrieve lost scroll bars in editor (#6597)

JimmFly8b66c1d752d2
diff --git a/packages/frontend/component/src/theme/global.css b/packages/frontend/component/src/theme/global.css
index 5bbbb061dc..69c2e7738b 100644
--- a/packages/frontend/component/src/theme/global.css
+++ b/packages/frontend/component/src/theme/global.css
@@ -222,6 +222,15 @@ input[type='number']::-webkit-outer-spin-button {
height: 0;
}
+editor-host * {
+ scrollbar-width: auto;
+ -ms-overflow-style: -ms-autohiding-scrollbar;
+}
+editor-host *::-webkit-scrollbar {
+ width: auto;
+ height: auto;
+}
+
.editor-wrapper {
position: relative;
padding-right: 0;