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(core): unexpected history preview style (#6944)

JimmFlyf48cd0dfefc4
diff --git a/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts b/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts
index 8f781abd33..ffc8449ddf 100644
--- a/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts
+++ b/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts
@@ -67,7 +67,7 @@ export const previewContainer = style({
},
])
),
- '&[data-distance="> 20"]': {
+ '&[data-distance="20"],&[data-distance="> 20"]': {
transform: `scale(0) translateY(calc(${-8 * 20}px + ${previewTopOffset}))`,
opacity: 0,
zIndex: -20,